[Bug 33117] Can't load Bach41.ttf with CreateFontIndirect under Wine - this works fine in Windows

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Mar 4 05:56:14 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=33117

--- Comment #6 from Robert Walker <forums at robertinventor.com> 2013-03-04 05:56:14 CST ---
That's true. I've changed the status back to unconfirmed. 

Also, sorry, back again, spoke too soon. But this may give more information to
help with understanding what is different.

It works fine under Wine with the ANSI_CHARSET.

But Windows requires the SYMBOL_CHARSET for this font. When I set it to
ANSI_CHARSET in Windows it returns the wrong font.

With the code I posted above, I tried:

 SpecialDebugLogLine("\n\nUsing SYMBOL_CHARSET for Bach\n\n");
 TestCreateFontIndirectFor("Bach",SYMBOL_CHARSET);
 SpecialDebugLogLine("\n\nUsing ANSI_CHARSET for Bach\n\n");
 TestCreateFontIndirectFor("Bach",ANSI_CHARSET);

This is the output in Windows:

"
Using SYMBOL_CHARSET for Bach

***Test of CreateFontIndirect for Bach***
Font found: Bach

Using ANSI_CHARSET for Bach

***Test of CreateFontIndirect for Bach***
Font found: Small Fonts
"

For now I've fixed it for my program by using
lfFont.lfCharSet=is_Wine?ANSI_CHARSET:SYMBOL_CHARSET;

Any ideas why Windows would see it
as a symbol font while Wine sees it as an Ansi font?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list