> @xueyeyu these fonts (such as Ubuntu Mono and Fira Code) can be displayed > normally in other editors (such as atom vscode), and these fonts also support > multiple languages.
Fira Code does not contain Chinese characters. This is quite clear even from just looking at the file sizes. There are many more Chinese characters than Roman characters and each takes up room in font files. A CJK font like Yu Gothic Regular `YuGothR.ttc` is 13 MB but Fira Code Regular `FiraCode-Regular.otf` is 120 KB. Open the fonts up in a font editor like FontForge and Fira Code includes 1353 characters whereas Yu Gothic includes 15622 characters with 12469 in the CJK Unified Ideographs range. When an application asks for Fira Code, a graphics stack component called a 'font mapper' determines how to implement that request. The requested font name is matched to a file. If there isn't a matching file then a default is used. That file is opened and its supported character ranges checked. Where there are gaps, other font files are used for characters in those gaps - maybe Yu Gothic is used for Chinese characters and EmojiOne Color Regular is used for emoji. It is the font mapper component that seems to be behaving poorly or is misconfigured. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3862#issuecomment-2094478059 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/issues/3862/[email protected]>
