Kezarus
Endless Game Maker
Hello everyone! I am trying to add language support to my Framework for others to use and I bumped in a characters range issue.
I plan to add cyrillic, japanese and chinese from Noto Sans Fonts.
For cyrillic I added the range 1025 to 1105.
For japanese I added 12352 to 12543 for hiragana and katakana (I followed the answer of @FrostyCat from this post )
For chinese... I am clueless.
The questions are:
1 - Is this the best way to add language support? Add a font for each language family supported?
2 - Should I add them dinamically using add_font (I read that this is kinda slow)?
3 - Are the ranges correct? Which should I use?
4 - And... err... kanjis...? There are thousands of them and I don't know if it's better to left them out and let the user add them on demand.
I will still add a dictionary structure and simple functions for the developer just add another language file and BAM magic happens. The framework will read a file and get the correct font and set the correct texts by a key/value pair that will be stored in memory. But I stumbled in this add font range issue. If anyone could help it will be awesome!
Cheers!
Kezarus
I plan to add cyrillic, japanese and chinese from Noto Sans Fonts.
For cyrillic I added the range 1025 to 1105.
For japanese I added 12352 to 12543 for hiragana and katakana (I followed the answer of @FrostyCat from this post )
For chinese... I am clueless.
The questions are:
1 - Is this the best way to add language support? Add a font for each language family supported?
2 - Should I add them dinamically using add_font (I read that this is kinda slow)?
3 - Are the ranges correct? Which should I use?
4 - And... err... kanjis...? There are thousands of them and I don't know if it's better to left them out and let the user add them on demand.
I will still add a dictionary structure and simple functions for the developer just add another language file and BAM magic happens. The framework will read a file and get the correct font and set the correct texts by a key/value pair that will be stored in memory. But I stumbled in this add font range issue. If anyone could help it will be awesome!
Cheers!
Kezarus