FONT_HEADER Structure

Microchip Graphics Library

Microchip Graphics Library
FONT_HEADER Structure
C
typedef struct {
  BYTE fontID;
  BYTE extendedGlyphEntry : 1;
  BYTE res1 : 1;
  BYTE bpp : 2;
  BYTE orientation : 2;
  BYTE res2 : 2;
  WORD firstChar;
  WORD lastChar;
  WORD height;
} FONT_HEADER;
Overview

Structure describing the font header.

Members
Members 
Description 
BYTE fontID; 
User assigned value 
BYTE extendedGlyphEntry : 1; 
Extended Glyph entry flag. When set font has extended glyph feature enabled. 
BYTE res1 : 1; 
Reserved for future use (must be set to 0) 
BYTE bpp : 2; 
Actual BPP = 2bpp
  • 0 - 1 BPP
  • 1 - 2 BPP
  • 2 - 4 BPP
  • 3 - 8 BPP
 
BYTE orientation : 2; 
Orientation of the character glyphs (0,90,180,270 degrees)
  • 00 - Normal
  • 01 - Characters rotated 270 degrees clockwise
  • 10 - Characters rotated 180 degrees
  • 11 - Characters rotated 90 degrees clockwise
 
BYTE res2 : 2; 
Reserved for future use (must be set to 0). 
WORD firstChar; 
Character code of first character (e.g. 32). 
WORD lastChar; 
Character code of last character in font (e.g. 3006). 
WORD height; 
Font characters height in pixels. 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved