"Walter Wang [MSFT]" wrote:
> Hi Dave,
>
> What you needed is the character set information of the font:
>
> #LOGFONT
>
http://msdn2.microsoft.com/en-us/library/ms533931.aspx > lfCharSet
> Specifies the character set. The following values are predefined.
>
> ANSI_CHARSET
> BALTIC_CHARSET
> CHINESEBIG5_CHARSET
> DEFAULT_CHARSET
> EASTEUROPE_CHARSET
> GB2312_CHARSET
> GREEK_CHARSET
> HANGUL_CHARSET
> MAC_CHARSET
> OEM_CHARSET
> RUSSIAN_CHARSET
> SHIFTJIS_CHARSET
> SYMBOL_CHARSET
> TURKISH_CHARSET
> VIETNAMESE_CHARSET
>
> (You can find these CHARSET value in WinGDI.h)
>
> In your case, you need to determine if the charset set to SYMBOL_CHARSET:
>
> [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
> class LOGFONT
> {
> public int lfHeight;
> public int lfWidth;
> public int lfEscapement;
> public int lfOrientation;
> public int lfWeight;
> public byte lfItalic;
> public byte lfUnderline;
> public byte lfStrikeOut;
> public byte lfCharSet;
> public byte lfOutPrecision;
> public byte lfClipPrecision;
> public byte lfQuality;
> public byte lfPitchAndFamily;
> [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
> public string lfFaceName;
> }
>
>
>
> LOGFONT lf = new LOGFONT();
> label1.Font.ToLogFont(lf);
> if (lf.lfCharSet == 2)
> {
> MessageBox.Show("This is a symbol font");
> }
>
>
>
> #Determining the Character Set Used by a Font
>
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraskdr/h
> tml/askgui12302003.asp
>
>
>
> Hope this helps.
>
>
> Regards,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>