glyph_path 2.0.0 copy "glyph_path: ^2.0.0" to clipboard
glyph_path: ^2.0.0 copied to clipboard

A pure Dart OpenType/TrueType parser and text-to-path converter.

example/example.md

Examples #

Here are several examples demonstrating how to use the glyph_path package.

  • 01 Basic Usage - Demonstrates the fundamental usage of retrieving glyph paths for a string of text.
  • 02 SVG Export - Shows how to export glyph paths as SVG files, including Latin and CJK fonts.
  • 03 PDF Content Stream - Explains how to generate a PDF content stream from glyph paths.
  • 04 Multiline Layout - Demonstrates laying out wrapped, multiline text and exporting it to SVG.
  • 05 JSON Export - Shows how to export path data to JSON format.

Examples 01-05 can be run directly with dart run example/<file>.dart, passing one or more font file paths as arguments (02 takes two: a Latin font and a CJK font). See the usage message printed by each file for the exact arguments it expects.

0
likes
160
points
249
downloads

Documentation

API reference

Publisher

verified publishercrossapplication.members.co.jp

Weekly Downloads

A pure Dart OpenType/TrueType parser and text-to-path converter.

Repository (GitHub)
View/report issues

Topics

#font #text #svg #opentype #truetype

License

BSD-3-Clause (license)

Dependencies

cacherine, meta

More

Packages that depend on glyph_path