Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
/ glifpathlen Public archive

Quick script to print length of all <contour> elements in a UFO glyph

License

Notifications You must be signed in to change notification settings

ctrlcctrlv/glifpathlen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glifpathlen

This program is deprecated and its function has been assumed by MFEKmetadata, where it is called glyphpathlen.

There are many automated operations for which knowing the length of the contours inside a UFO .glif file can come in handy.

Raph Levien wrote a nice blog post about his implementation of path length functions in kurbo: How long is that Bézier? (2018).

However, he didn't provide an implementation of a script to use his work…so I wrote this one.

Usage

cargo run -- ~/Workspace/FRBAmericanCursive/FRBAmericanCursive-SOURCE.ufo/glyphs/numbersign.glif

Output:

308.9999084472656
309
597.2795966745455
597.2795966745455

One output line per <contour> element in .glif <outline>. :-)

About

Quick script to print length of all <contour> elements in a UFO glyph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages