Skip to main content
jimmii
Senior II
Feb 12, 2020 4:54 PM UTC
Solved

Generated Font Naming

Hi,

Follwing Font cpp files are being generated:

Font_Ubunut_light_10_4bpp_0.cpp

Font_Ubunut_light_10_4bpp_4.cpp

Font_Ubunut_light_16_4bpp_0.cpp

Font_Ubunut_light_16_4bpp_4.cpp

My question: What does the _4 (in bold) mean? Why are there different font with the same size(16)?

Thanks for your help.

/jimmii

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Feb 17, 2020 9:47 AM UTC

It's just a postfix that indicates which unicode ranges are in those files. As you can see, you don't have 0,1,2,3,4, but simply 0 and 4. You could have 0 and a much higher number like 28 if you were using something like arabic unicodes.

I'm not sure what you meant by your last question "Why are there different font with the same size(16)?"

/Martin

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Feb 17, 2020 9:47 AM UTC

It's just a postfix that indicates which unicode ranges are in those files. As you can see, you don't have 0,1,2,3,4, but simply 0 and 4. You could have 0 and a much higher number like 28 if you were using something like arabic unicodes.

I'm not sure what you meant by your last question "Why are there different font with the same size(16)?"

/Martin

jimmii
jimmiiAuthor
Senior II
Feb 17, 2020 9:49 AM UTC

Thanks @Martin KJELDSEN​ , this answers my question.

Cheers