The 8bit JControl Font Definition Format (JCFD) ----------------------------------------------- :=
------------
:= "JCFD" := 0x0002 (16bit) := font height in pixels <=8 (16bit) := 0x0000 (16bit) := 0x0010 (16bit) := 0x0080 (16bit) number of normal characters, this should always be 128 := number of special chars that come after 0x0080, like ä,ö,ü. (16bit) ------------ The lookup table includes the width and the start index for every character in this font. := [] := {}+ ( times) := {}+ ( times) := the character width in pixels (8bit) := the start index for the characters pixel data (16 bit) := the unicode for this character (16bit) ------------ := {}+ := {}+ ( times) := pixels are stored in a byte, one upon the other, LSB first (8bit each) Example : font size = 8, character width = 7 ....... ..XXX.. .X...X. XX...XX XX...XX XXXXXXX XX...XX XX...XX LSB . . . . . . . . . X X X . . . X . . . X . X X . . . X X X X . . . X X X X X X X X X X X . . . X X MSB X X . . . X X F8 FC 22 22 22 FC F8 The pixel data for this character would be stored this way: F8 FC 22 22 22 FC F8 **************************************************************************************** The 16bit JControl Font Definition Format (JCFD) ------------------------------------------------ ****************** *** DEPRECATED *** ****************** :=
------------
:= "JCFD" := 0x0001 (16bit) := font height in pixels (16bit) := 0x0000 (16bit) := 0x0008 (16bit) := 0x0080 (16bit) number of normal characters, this should always be 128 := number of special chars that come after 0x80, like ä,ö,ü. (16bit) ------------ The lookup table includes the width and the start index for every character in this font. := [] := {}+ ( times) := {}+ ( times) := the character width in pixels (16bit) := the start index for the characters pixel data (16 bit) := the unicode for this character (16bit) ------------ := {}+ := {}+ ( times) := {}+ ( if is more than 16, more shorts are needed) := pixels are stored in a short, one upon the other, LSB first (16bit each) Example : font size = 20, character width = 13 ............. ............. ............. .....XXX..... .....X.X..... ....XX.XX.... ....XX.XX.... ....X...X.... ...XX...XX... ...XX...XX... ..XX.....XX.. ..XX.....XX.. .XXXXXXXXXXX. .XX.......XX. .XX.......XX. XX.........XX XX.........XX ............. ............. ............. LSB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X X X . . . . . . . . . . X . X . . . . . . . . . X X . X X . . . . . . . . X X . X X . . . . . . . . X . . . X . . . . . . . X X . . . X X . . . . . . X X . . . X X . . . . . X X . . . . . X X . . . . X X . . . . . X X . . . X X X X X X X X X X X . . X X . . . . . . . X X . . X X . . . . . . . X X . MSB X X . . . . . . . . . X X 8000 f000 7c00 1f00 13e0 1078 1008 1078 13e0 1f00 7c00 f000 8000 LSB X X . . . . . . . . . X X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0001 0001 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0001 The pixel data for this character would be stored this way: 80 00 00 01 f0 00 00 01 7c 00 00 00 1f 00 00 00 13 e0 00 00 10 78 00 00 10 08 00 00 10 78 00 00 13 e0 00 00 1f 00 00 00 7c 00 00 00 f0 00 00 01 80 00 00 01 ************************************************************************************** The NEW 16bit JControl Font Definition Format V.2(JCFD) ------------------------------------------------------- :=
------------
:= "JCFD"