Page MenuHome

Failed to choose Interface font from path containing non-ascii characters
Closed, ResolvedPublic

Description

System Information
Win8 64bit | GTX680

Blender Version
Broken: 2.72 a1d80b9

Short description of error
When choosing font from path or the font file name itself contains non-ascii characters (CJK characters for example, like "D:\folder\中文路径\fontname.ttf"), it would fail to load or display somehow.

Exact steps for others to reproduce the error


Event Timeline

Leon Cheung (leon_cheung) raised the priority of this task from to 90.
Leon Cheung (leon_cheung) updated the task description. (Show Details)
Leon Cheung (leon_cheung) edited a custom field.
Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.

Campbell, think you did some related fix recently, mind having a look at that one too?

Suspect this is an issue opening files using char *, since we're using FT_New_Face.

Probably the fix for windows is not to use regular file open, and call BLI_fopen, read the data, then call FT_New_Memory_Face.

Needs to be tested though.

Campbell Barton (campbellbarton) triaged this task as Low priority.Nov 10 2014, 4:43 PM