Just a "fuller" version of ImFontAtlas::GetGlyphRangesChineseFull() #6693
OKOKDragon
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment
-
This topic helped me safe some time. Lot of hours spent with why my Czech language chars are represented like question marks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Well, I am a Chinese user. Although
GetGlyphRangesChineseFull()
can cover a majority of Chinese characters, there are still some symbols which I think every user may need but not loaded by default. For example, I want tabs like'│'
and'─'
, and I hate to simply replace them with'|'
and'—'
. There are complex Chinese characters like'﨔'
and'凞'
, which may not be used in modern daily life, but are commonly seen in ancient Chinese master pieces of literature. So I read the complete utf-8 character list and make a conclusion of everything a Chinese user might need.This is a long list and, of course, makes your program much slower when it starts. There are ways to make it faster to load your fonts, and I recommend this:
write every character you need in a
.txt
file, and add following codes.This method is originally written by "bianruifeng". Read the original article for more details.
Besides, for Chinese users new to fonts and characters in computers, mind this:
never use fonts whose name contains "GB", which refers to "国标". For example, GB2312 defines only 6763 very common characters, and you will never complete an article with any terminology using them.
Beta Was this translation helpful? Give feedback.
All reactions