glyph_path 2.0.0
glyph_path: ^2.0.0 copied to clipboard
A pure Dart OpenType/TrueType parser and text-to-path converter.
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.