coldtype.text.reader.StyledString¶
-
class
StyledString(text: str, style: coldtype.text.reader.Style)¶ Lowest-level vectorized typesetting class
-
fit(width)¶ Use various methods (tracking, wdth axis, etc. — properties specified in the Style object) to fit a piece of text horizontally to a given width (warning: not very fast)
-
pen(frame=True) → coldtype.pens.datpen.DATPen¶ Vectorize all text into single
DATPen
-
pens(frame=True) → coldtype.pens.datpen.DATPens¶ Vectorize text into a
DATPens, such that each glyph (or ligature) is represented by a single DATPen (or aDATPensin the case of a color font, which will then nest a DATPen for each layer of that color glyph)
-