Skip to main content

Module fontpreview

Module fontpreview 

Source
Expand description

Font specimens: the 600×600 picture Eagle renders as a font item’s thumbnail (see the Thumbnails chapter of the docs), drawn with resvg using only the font itself.

Enums§

Specimen
Which specimen to draw, chosen from the font’s script support the way Eagle chooses it.

Constants§

SIZE
Size of the specimen, which Eagle also records as the item’s size.

Functions§

render
Renders the specimen of a font file (ttf, otf, ttc face 0, woff): dark grey lines on white, left-aligned in a block centred on the canvas.