LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
LCD_font_t Struct Reference

Describes properties of the font to be drawn on LCD display. More...

#include <lcd_font.h>

Data Fields

const uint16_t width
 
const uint16_t height
 
const char firstCharacter
 
const uint16_t characters
 
const uint8_t * pixelMap
 
const uint16_t lines
 
const uint16_t fullLines
 
const uint16_t lastLine
 

Detailed Description

Describes properties of the font to be drawn on LCD display.

Note
An example of structure initialization for the basic font can be seen in the lcd_basic_file.h file.

Field Documentation

◆ characters

const uint16_t characters

Number of characters contained in the font

◆ firstCharacter

const char firstCharacter

First character contained in the pixel map

◆ fullLines

const uint16_t fullLines

Number of the full horizontal pixel map lines (all bits of the line are interpretable) of the single character

◆ height

const uint16_t height

Height of the single font character in pixels

◆ lastLine

const uint16_t lastLine

Number of interpretable bits in the last horizontal line of the single character

◆ lines

const uint16_t lines

Number of pixel map lines horizontally per single character

◆ pixelMap

const uint8_t* pixelMap

Pointer to array of pixel font map. The single element of the array is interpreted as a pixel map line - each bit in the line determines whether pixel exists (1 - pixel, 0 - no pixel). Consecutive font characters have to be arranged linearly in the array (representing a 2-D array in one dimension) and ordered according to the ASCII table. Order of the pixel map lines for a character should be kept horizontally from the left top corner to the right bottom corner.

◆ width

const uint16_t width

Width of the single font character in pixels


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