Advertisement

BM Font : Incomplete Unicode range

Started by March 17, 2020 01:16 AM
4 comments, last by metameta 4 years, 8 months ago

Hi,

I noticed the Bitmap font Generator application is pointing to an incomplete range of character sets for Ethiopic.

The unicode website shows Ethiopic Range: 1200–137F
https://www.unicode.org/charts/PDF/U1200.pdf

However, on the source code it's only pointing to 0x1200 , 0x12BF
http://svn.code.sf.net/p/bmfont/code/trunk/source/unicode.cpp

As a result it's missing almost half of the Ethiopic characters.

Thanks

Thanks, for letting me know.

It's been a while since I updated the code with the latest definitions from Unicode.org.

The last time I updated the ranges the standard was still on version 8.0, now it is at 13.0.

None of the characters are missing though. BMFont, still shows all the characters available in the true type font, it will just show the ranges without a name.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I see, ok. I updated the range on the source code locally on my PC and this is the outcome (Number of chars goes from 174 to 345) :

Font Settings (Windows default Ethiopic font) :

Original code :

Code with Updated range :

You're right.

I see a bug in fontget.cpp where it skips the ranges that have not been named, so it will indeed not show all the characters for Ethiopan without the changes you did.

I'll need to fix this.

BTW. What font are you using? I'd like to use it myself to test the changes.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I'm using a font called “Nyala” it comes preinsalled on most Windows OS (https://docs.microsoft.com/en-us/typography/font-list/nyala)

If it's not already in your system fonts you can download it from here https://fontzone.net/font-details/nyala

This topic is closed to new replies.

Advertisement