You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FT_Render_Glyph with FT_RENDER_MODE_NORMAL will not always return a bitmap using FT_PIXEL_MODE_GRAY, since some TTF fonts have built-in mono bitmaps. Such fonts includes PMingLiU (新細明體) that bundled with Windows XP (Traditional Chinese version) at size 11, and AR PL New Sung (http://www.wazu.jp/gallery/views/View_ARPLNewSung.html) at size 11. Treat mono bitmaps with grayscale algorithm will produce garbage result, even crash OpenTTD.
The patch attached will check the pixel mode of rendered glyph, and correctly convert them into sprites.
Tiberius opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/2152
The text was updated successfully, but these errors were encountered: