Skip to main content

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

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

package:font_subset #

Bundles the Flutter font-subset executable for linux-x64, linux-arm64, darwin-x64, darwin-arm64, windows-x64, and windows-arm64, and provides a Dart API to subset TTF/OTF fonts (for example from a hook/link.dart).

Usage #

import 'dart:io';
import 'package:font_subset/font_subset.dart';

Future<void> main() async {
  final result = await subsetFont(
    input: File('fonts/MyIcons.otf'),
    output: File('build/MyIcons.subset.otf'),
    codePoints: const [0xe047],
    optionalCodePoints: const [32],
  );
  print(result.summaryMessage);
}
1
likes
0
points
118
downloads

Publisher

unverified uploader

Weekly Downloads

Bundles 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

License

unknown (license)

Dependencies

mime

More

Packages that depend on font_subset