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

Safe static TTF and OTF glyph outline adapter for Meld.

meld_font #

pub package CI MIT license

Optional pure Dart adapter that turns caller-owned static TrueType glyph outlines into Meld geometry. It resolves Unicode cmap entries, expands simple and composite glyf contours, and converts quadratic segments to cubic paths without bundling a font.

Install #

dependencies:
  meld_font: ^1.0.0
import 'dart:typed_data';
import 'package:meld_core/meld_core.dart';
import 'package:meld_font/meld_font.dart';

MeldSource loadGlyph(Uint8List fontBytes) {
  return fontGlyphToSource(
    FontGlyphRef(
      fontBytes: fontBytes,
      codePoint: 0x2302,
      fontFamily: 'Your licensed font',
    ),
  );
}

The adapter rejects unsupported CFF, color, and variable outlines with a diagnostic MeldException. Supply a static TTF/OTF file your application is licensed to distribute, then pass the returned MeldSource to MeldIcon or MeldEngine.

1
likes
140
points
104
downloads

Documentation

API reference

Publisher

verified publisherfluttercandies.com

Weekly Downloads

Safe static TTF and OTF glyph outline adapter for Meld.

Repository (GitHub)
View/report issues
Contributing

Topics

#animation #fonts #geometry #icons

License

MIT (license)

Dependencies

meld_core

More

Packages that depend on meld_font