ex_paint v0.2.4 ExPaint.Font View Source

Link to this section Summary

Functions

Returns the (fixed) size of a glyph. Our underlying font library only seems to care about cap height, and so doesn't take into account descenders. We add a descender height to the returned size as passed in, defaulting to 0.3 of cap height

Link to this section Functions

Link to this function

size(font, descender_height \\ 0.3)

View Source

Returns the (fixed) size of a glyph. Our underlying font library only seems to care about cap height, and so doesn't take into account descenders. We add a descender height to the returned size as passed in, defaulting to 0.3 of cap height