vibesketch.render.fonts¶
The reviewed Roboto font shared by publication SVG, PNG and PDF.
Module Attributes
points in font units, each with whether it is on the curve. |
Functions
|
The width of one line of |
|
|
|
Make SVG annotations portable without relying on the viewer's fonts. |
|
The glyph of |
|
The contours of |
- vibesketch.render.fonts.advance(text)[source]¶
The width of one line of
textin the publication font, in ems.Advance widths only, without kerning; a character the font lacks counts as a full em, as the renderer’s own bounds do.
- vibesketch.render.fonts.embed_font(svg)[source]¶
Make SVG annotations portable without relying on the viewer’s fonts.
- vibesketch.render.fonts.Contour¶
points in font units, each with whether it is on the curve.
- Type:
A glyph contour
- vibesketch.render.fonts.outline(glyph)[source]¶
The contours of
glyphin font units, composite glyphs resolved.TrueType
glyf/locaas the OpenType specification gives them: https://learn.microsoft.com/en-us/typography/opentype/spec/glyf and …/loca. Off-curve points are quadratic B-spline controls; two in a row imply an on-curve point midway.