Skip to main content

svg_icons_to_font 1.0.0 copy "svg_icons_to_font: ^1.0.0" to clipboard
svg_icons_to_font: ^1.0.0 copied to clipboard

A pure Dart package and CLI tool that converts a folder of SVG icons into an OpenType (.otf) font file and generates a corresponding Flutter IconData Dart class.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate svg_icons_to_font

Use it

The package has the following executables:

$ svg_icons_to_font

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add svg_icons_to_font

With Flutter:

 $ flutter pub add svg_icons_to_font

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  svg_icons_to_font: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:svg_icons_to_font/svg_icons_to_font.dart';
0
likes
150
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A pure Dart package and CLI tool that converts a folder of SVG icons into an OpenType (.otf) font file and generates a corresponding Flutter IconData Dart class.

Repository (GitHub)
View/report issues

Topics

#svg #icons #font #otf #flutter

License

MIT (license)

Dependencies

args, path, xml

More

Packages that depend on svg_icons_to_font