Skip to main content

Module glyph

Module glyph 

Source
Expand description

Glyph bitmap blitting — replaces Splash::fillGlyph2.

A glyph bitmap is either:

  • AA (aa = true): one byte per pixel, containing a coverage value 0–255.
  • Mono (aa = false): 1-bit-per-pixel, MSB-first packed, ceil(w/8) bytes per row.

The blit clips to the destination bitmap bounds and optionally to the Clip region.

§C++ equivalent

Splash::fillGlyph2.

Structs§

GlyphBitmap
A rasterized glyph bitmap as produced by a font renderer.

Functions§

blit_glyph
Blit a glyph at pen position (pen_x, pen_y) (device pixel coordinates).
fill_glyph
Clip-test a glyph bbox and blit it.