Skip to main content

font_subset 0.2.1 copy "font_subset: ^0.2.1" to clipboard
font_subset: ^0.2.1 copied to clipboard

Builds or fetches the Flutter font-subset binary for Linux, macOS, and Windows and provides a Dart API for subsetting TTF/OTF fonts.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add font_subset

With Flutter:

 $ flutter pub add font_subset

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

dependencies:
  font_subset: ^0.2.1

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:font_subset/font_subset.dart';
1
likes
150
points
118
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Builds or fetches the Flutter font-subset binary for Linux, macOS, and Windows and provides a Dart API for subsetting TTF/OTF fonts.

Repository (GitHub)
View/report issues

Topics

#fonts #flutter #hooks

License

BSD-3-Clause (license)

Dependencies

code_assets, crypto, data_assets, hooks, mime

More

Packages that depend on font_subset