"Aric Stewart" aric@codeweavers.com wrote:
Corrects a large number of font issues with east asian programs.
if(csi.fs.fsCsb[0] & (face->fs.fsCsb[0] | face->fs_links.fsCsb[0])) {
if((csi.fs.fsCsb[0] & (face->fs.fsCsb[0] | face->fs_links.fsCsb[0])) && (face->fs.fsCsb[0] & FS_LATIN1))
{
Certainly this is a not acceptable hack. What if the app doesn't need latin glyphs at all? Say it needs only cyrillic or symbol ones?
Ok maybe you could help me brainstorm a better fix.
The issue I am seeing is that this application is a chinese application and it is asking for Tahoma for GB2312_CHARSET. The Tahoma in the system does not have GB2312_CHARSET. So we end up falling all the way back to the last resort selection.
It ends up looking for a font that supports FS_CHINESESIMP and the first one on my (an most any mac) is Al Bayan, an arabic font with no latin characters. As a result everything it tries to print in latin characters are boxes.
I thought of putting in an exception for Tahoma but that seemed too hackish.
-aric
Dmitry Timoshkov wrote:
"Aric Stewart" aric@codeweavers.com wrote:
Corrects a large number of font issues with east asian programs.
if(csi.fs.fsCsb[0] & (face->fs.fsCsb[0] |
face->fs_links.fsCsb[0])) {
if((csi.fs.fsCsb[0] & (face->fs.fsCsb[0] |
face->fs_links.fsCsb[0])) && (face->fs.fsCsb[0] & FS_LATIN1)) {
Certainly this is a not acceptable hack. What if the app doesn't need latin glyphs at all? Say it needs only cyrillic or symbol ones?
"Aric Stewart" aric@codeweavers.com wrote:
Ok maybe you could help me brainstorm a better fix.
The issue I am seeing is that this application is a chinese application and it is asking for Tahoma for GB2312_CHARSET. The Tahoma in the system does not have GB2312_CHARSET. So we end up falling all the way back to the last resort selection.
It ends up looking for a font that supports FS_CHINESESIMP and the first one on my (an most any mac) is Al Bayan, an arabic font with no latin characters. As a result everything it tries to print in latin characters are boxes.
I thought of putting in an exception for Tahoma but that seemed too hackish.
Do you have a font link with an appropriate font file?
The problem with font linking is that it is hard to generalize. unless wine installs the font we cannot guarantee that the font is present on the users system and that is worrisome to me.
I have seen this issue a lot in my working with asian games ported to english locales in a variety of fonts. It would be nice to have a more general fix.
-aric
Dmitry Timoshkov wrote:
"Aric Stewart" aric@codeweavers.com wrote:
Ok maybe you could help me brainstorm a better fix.
The issue I am seeing is that this application is a chinese application and it is asking for Tahoma for GB2312_CHARSET. The Tahoma in the system does not have GB2312_CHARSET. So we end up falling all the way back to the last resort selection.
It ends up looking for a font that supports FS_CHINESESIMP and the first one on my (an most any mac) is Al Bayan, an arabic font with no latin characters. As a result everything it tries to print in latin characters are boxes.
I thought of putting in an exception for Tahoma but that seemed too hackish.
Do you have a font link with an appropriate font file?
"Aric Stewart" aric@codeweavers.com wrote:
The problem with font linking is that it is hard to generalize. unless wine installs the font we cannot guarantee that the font is present on the users system and that is worrisome to me.
I have seen this issue a lot in my working with asian games ported to english locales in a variety of fonts. It would be nice to have a more general fix.
See the bugs http://bugs.winehq.org/show_bug.cgi?id=13829 http://bugs.winehq.org/show_bug.cgi?id=16325
A more general fix is to add appropriate CJK fonts to Wine. Until that all you need is just setup font replacements to point to existing font links. Font links in the registry already exist and match what Windows has.