Click here to Skip to main content
14,926,139 members
Articles / Multimedia / GDI+
Tip/Trick
Posted 29 Jan 2018

Stats

6.5K views

Fixing Inconsistent Stroke Width of Chinese Characters

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
29 Jan 2018CPOL
Fixing Inconsistent Stroke Width of Chinese Characters

Windows has problems displaying Chinese font since Windows 98. And this inconsistent stroke width problem persists even today on Windows 10! Anyone using GDI/GDI+ technologies to display Chinese font, is likely to encounter this problem. I have seen this problem on posters and movie subtitles. This problem comes about using non-Chinese font such as Arial to display Chinese font. When the underlying font does not contain the glyph, Windows Uniscribe use a fallback mechanism to find the glyph from other font. Underneath, GDI/GDI+ make use of Uniscribe to display font. This may not be a problem on Chinese OS where the default font is Chinese type. The screenshot of Notepad reveals the problem.

Image 1

The fix is to select a proper Chinese font to match language (Simplified/Traditional) to display Chinese characters. After changing to SimHei font, the stroke width is consistent.

Image 2

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Shao Voon Wong
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. CodeProject awarded him a MVP in recognition of his article contributions in 2019. In his spare time, he prefers to writing applications based on 3rd party libraries than rolling out his own. His interest lies primarily in computer graphics, software optimization, concurrency, security and Agile methodologies.

You can reach him by sending a message on CodeProject or at his Coding Tidbit Blog!

Comments and Discussions

 
-- There are no messages in this forum --