1
General Discussion / Font L2 format
« on: January 20, 2022, 03:58:15 pm »
Hello;
I'm trying to develop a utility to preview custom fonts for my FT813 display.
Currently I have bought 4 displays 800x480.
When I open a L2 *.raw font file to parse the byte content:
i.e: myfont1.raw
Format: 17 (0x11)
Stride: 44 (0x2C)
Widht: 176 (0xB0)
Height: 282 (0x11A)
If I plot the pixels all the width long (176) by all the height (282) what I can see is the character repeated 4 times.
Reading the documentation I can see the L2 format has 4 pixels data. Is this the reason it plot 4 times the data with slightly different values...?
This mean data is Alpha, R, G, B for each line...?
Someone knows how structured are the bytes on a .raw L2 uncompressed font file...?
I appreciate some deeper help on this topic.
I'm trying to develop a utility to preview custom fonts for my FT813 display.
Currently I have bought 4 displays 800x480.
When I open a L2 *.raw font file to parse the byte content:
i.e: myfont1.raw
Format: 17 (0x11)
Stride: 44 (0x2C)
Widht: 176 (0xB0)
Height: 282 (0x11A)
If I plot the pixels all the width long (176) by all the height (282) what I can see is the character repeated 4 times.
Reading the documentation I can see the L2 format has 4 pixels data. Is this the reason it plot 4 times the data with slightly different values...?
This mean data is Alpha, R, G, B for each line...?
Someone knows how structured are the bytes on a .raw L2 uncompressed font file...?
I appreciate some deeper help on this topic.