pyhershey.show¶
Module Contents¶
Functions¶
|
Plots a |
|
Displays a |
|
Displays shaped glyphs returned by the |
-
pyhershey.show.plot_glyph(glyph: pyhershey.glyph_view.GlyphView, ax: matplotlib.axes.Axes, with_marks: bool = True, pos: Optional[Tuple[float, float]] = None) → None[source]¶ Plots a
Glyphto matplotlib axis object.- Parameters
glyph (
Glyph) –Glyphto be plottedax (
matplotlib.axes.Axes) – matplotlibmatplotlib.axes.Axesobject to be plotted onwith_marks (bool) – print marks with baseline and left and right advance
- Returns
None
-
pyhershey.show.show_glyph(glyph: pyhershey.glyph_view.GlyphView, with_marks: bool = True) → None[source]¶ Displays a
Glyphwith matplotlib.- Parameters
glyph (Glyph) – glyph to be displayed
with_marks (bool) – print marks with baseline and left and right advance
-
pyhershey.show.show_shaped_glyphs(shaped_text: List[Dict])[source]¶ Displays shaped glyphs returned by the
shape_text()function.