Chinese characters in DFKai-SB render incorrectly (too large, garbled)
Migrated from: https://bugs.launchpad.net/inkscape/+bug/1654904
Summary:
There is a glitch or error involving the font “DFKai-SB”, otherwise known as “標階體” in Chinese or its file name in Windows “kaiu.ttf” (official Microsoft description: https://docs.microsoft.com/en-gb/typography/font-list/dfkai-sb), which has been supplied with “Traditional Chinese Versions” of Windows internally since “Windows NT 3.51” and “Windows 95”.
Steps to reproduce:
- Open Inkscape
- Type any Chinese Character
- Apply the “DFKai-SB” font onto the Character
What happened?
When using the “DFKai-SB” font in Inkscape, typing non-Chinese Characters (such as numbers and symbols) is perfectly fine; but all Chinese Characters using “DFKai-SB” will be stretched into enormous shapes, so big and wide that only the first Character is displayed. Using other fonts which are able to handle Chinese Characters such as the default “sans-serif” will display everything correctly. As “DFKai-SB” is an official Windows internal font, the issue should be related to Inkscape rather than the font file itself.
What should have happened?
All Chinese Characters using the “DFKai-SB” font should be displayed correctly instead of being stretched into enormous shapes.
There may also be other non-Chinese Characters displayed incorrectly, so the entire font should be checked.
Sample attachments:
Version info
- Inkscape Version 1.1.1 on Win10/11 (64 bit), Win8.1 and Linux Mint 20.