pyhershey.show

Module Contents

Functions

plot_glyph(glyph: pyhershey.glyph_view.GlyphView, ax: matplotlib.axes.Axes, with_marks: bool = True, pos: Optional[Tuple[float, float]] = None) → None

Plots a Glyph to matplotlib axis object.

show_glyph(glyph: pyhershey.glyph_view.GlyphView, with_marks: bool = True) → None

Displays a Glyph with matplotlib.

show_shaped_glyphs(shaped_text: List[Dict])

Displays shaped glyphs returned by the shape_text() function.

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 Glyph to matplotlib axis object.

Parameters
  • glyph (Glyph) – Glyph to be plotted

  • ax (matplotlib.axes.Axes) – matplotlib matplotlib.axes.Axes object to be plotted on

  • with_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 Glyph with 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.