Skip to main content
Tuoman
Senior II
February 11, 2021
Question

How TouchGFX fonts are encoded?

  • February 11, 2021
  • 1 reply
  • 687 views

Small generated fonts are not pixel perfect (in fact 70% are incorrect), and I want to fix them by hand.

My generated font data looks like this (10px source sans, 1bpp):

 // Unicode: [0x0030, zero]
 0x96, 0x99, 0x99, 0x06,
 // Unicode: [0x0031, one]
 0x93, 0x24, 0x1D,
 // Unicode: [0x0032, two]
 0x96, 0x48, 0x24, 0x0F,
 // Unicode: [0x0033, three]
 0x87, 0x68, 0x98, 0x06,
 // Unicode: [0x0034, four]
 0x8C, 0xA9, 0xF4, 0x11, 0x02,
 // Unicode: [0x0035, five]
 0x1E, 0x71, 0x88, 0x07,

How this encoding works, so that I can edit it?

This topic has been closed for replies.

1 reply

MM..1
Super User
February 12, 2021

You need check table and font cpp. Here is data you need, and you ask for you writed info, CODE IS 1bpp mean one bit per pixel.

Maybe this little font will better show, when you set 4bpp format .