Pervasive Displays Library Suite - Basic edition 8.0.1
Library for Pervasive Displays e-paper screens and EXT3 extension board
Loading...
Searching...
No Matches
font_s Struct Reference

Structure for font. More...

#include <hV_Font.h>

Data Fields

uint8_t kind
 font description
 
uint8_t height
 general height in pixels
 
uint8_t maxWidth
 maximum width in pixels from *width array
 
uint8_t first
 number of first character, usually 32
 
uint8_t number
 number of characters, usually 96 or 224
 

Detailed Description

Structure for font.

Fonts read from header file in internal MCU Flash

Note
  • Kind of font: see details below
  • Height: set during font generation
  • Width: *width array: characters index and length
  • maxWidth: to be calculated
  • Bytes per character: see *width array
  • Character definition: see *table array


Font kind

  • 0x4-..0x1- 0b7654
    • b7 = 0x8- = high definition, 2 bits per pixel
    • b6 = 0x4- = Monospace
    • b5 = 0x2- = Sans Serif
    • b4 = 0x1- = Serif
  • 0x-1..0x-f 0b3210
    • b3 = 0x-8 = d8 = italic
    • b2 = 0x-4 = d4 = bold
    • b10 = 0x-0..0x-3 = d0..d3 = variant number
Warning
font_s.table needs to be uint8_t instead of unsigned short
Otherwise on TM4C129, font_s.table written as uint16_t

The documentation for this struct was generated from the following file: