Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
font_s Struct Reference

Structure for font. More...

#include <hV_Font.h>

Collaboration diagram for font_s:

Public Attributes

uint8_t startSector
 0 = end
 
uint8_t sizeSector
 number of sectors, sector=4096 bytes, 0 = end
 
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
 
uint8_t dummy
 unused byte, needed for 16-bit alignment
 
const width_swidth
 characters widths and relative addresses
 
const uint8_t * table
 characters definitions
 

Detailed Description

Structure for font.

Fonts to be read from external SPI Flash

Note
  • Sector 0 lists all the fonts
  • Then, for each font:
    • First 1024 bytes: *width array: characters index and length
    • Onwards bytes: *table array: characters definition


Font kind

  • 0x4-..0x1- 0b-654
    • 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
Warning
font_s.table needs to be uint8_t instead of unsigned short
Otherwise on TM4C129, font_s.table written as uint16_t

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 files: