.fontpixelpacking R/O Property

Function:

Indicates how pixels are packed into bytes in a currently selected font.

Type:

Enum (ver_hor, byte)

Value Range:

0 — PL_VERTICAL: Several vertically adjacent pixels are packed into each byte of character bitmaps.

1 — PL_HORIZONTAL: Several horizontally adjacent pixels are packed into each byte of character bitmaps.

See Also:

Working With Text, lcd.fontheight


Details

Display controllers/panels can have vertical or horizontal pixel packing (see lcd.pixelpacking). The speed at which you can output text onto the screen is improved when lcd.pixelpacking and lcd.fontpixelpacking have the same value (i.e., controller memory pixels and font encoding are "aligned"). Our font files are typically available both in vertical and horizontal pixel packing. Pick the right file for your controller/panel.

This property will only return meaningful data after you select a font using the lcd.setfont method.


.fontpixelpacking R/O Property

Details