I'm using VS2005 / MFC in a MBCS build. For some of the buttons on my
dialog I am using characters from the Webdings font and setting the button
font like this (in OnInitDialog()):
if(m_pfntMonotype == NULL)<br />
m_pfntMonotype = new CFont;<br />
LOGFONT lf;<br />
CFont* pFont=((CButton*)GetDlgItem(IDC_UP_BUTTON))->GetFont();<br />
strcpy(lf.lfFaceName, "Webdings");<br />
This works fine, except for some (but not all) XP Themes that I have
downloaded, where the characters on my buttons show the character "8"
instead of the equivalent Webdings character for character code 56. (Ditto
for other characters (of course), not just 56!)
If I obtain the LOGFONT from m_pfntMonotype it is identical when the
Webdings character is correctly rendered (in Luna, etc.) and incorrectly
Therefore, I am guessing the font mapper is incorrectly mapping the font.
Is there any way to guarantee that the Webdings characters are used on all
themes, or am I using the font inappropriately? Advice appreciated!