Skip to main content
jimmii
Senior II
February 12, 2020
Solved

Generated Font Naming

  • February 12, 2020
  • 1 reply
  • 816 views

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.
Best answer by Martin KJELDSEN

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

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
February 17, 2020

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
February 17, 2020

Thanks @Martin KJELDSEN​ , this answers my question.

Cheers