Skip to content

Glyph SVG Reference

What: Compare local SVG reference artwork with the current glyph outline. How: Read the current-master outline and load the whole SVG into a native vector scene item. Fit and center it, or keep SVG user coordinates in font units. Draw the glyph in blue above the translucent reference. No SVG bytes are changed. Why: Compare silhouettes without rasterizing the reference or changing the font. Usage: Open a glyph. Enter an absolute SVG path and click Compare. Opacity updates the loaded reference. Compare again after font changes. Benefit: See proportion differences while designing a glyph in FontLab. Fit mode normalizes silhouettes. Font units mode keeps SVG user coordinates: x increases right, y increases downward, and the glyph baseline is y=0. Neither mode checks imported font metrics. Animated SVG is refused. Rendering uses the SVG features supported by host Qt. Setup: FontLab 9, Python 3.11, Fly, fontlabapp and QtSvg.QGraphicsSvgItem. Independent rewrite of the Qt svgviewer example idea (Qt/Nokia, Riverbank). Based on the author's own FontLab sample, Apache-2.0. No upstream code or assets copied.

Run Drawing > Glyph SVG Reference from FontLab's Scripts menu.

Read collections and contributing before use.

Source identity

SHA256: 08591b11c41e702a69e3ae51f3bd091e42b47f5625b7d5283b2f853063ce9bf1

Python source at e5f81a257324