, Wingdings -Unicode. Unicode, . . @Adrian McCarthy, , .
. : http://www.fileformat.info/info/unicode/font/wingdings
: http://www.alanwood.net/demos/wingdings.html
, , ? :
1.
API API ANSI, @user1793036:
TextOutA(hdc, 10, 10, "\x7d\x7e\x81\xfc");
2.
Unicode F0 ( ) ASCII. Wingdings:
TextOutW(hdc, 10, 10, L"\xf07d\xf07e\xf081\xf0fc");
, , , . dp4
3. ,
, , ? - , :
void TextOutByGlyphs(HDC hdc, int x, int y, const CStringW& text)
{
CStringW glyphs;
GCP_RESULTSW gcpRes = {0};
gcpRes.lStructSize = sizeof(GCP_RESULTS);
gcpRes.lpGlyphs = glyphs.GetBuffer(text.GetLength());
gcpRes.nGlyphs = text.GetLength();
const DWORD flags = GetFontLanguageInfo(hdc) & FLI_MASK;
GetCharacterPlacementW(hdc, text.GetString(), text.GetLength(), 0,
&gcpRes, flags);
glyphs.ReleaseBuffer(gcpRes.nGlyphs);
ExtTextOutW(hdc, x, y, ETO_GLYPH_INDEX, NULL, glyphs.GetString(),
glyphs.GetLength(), NULL);
}
TextOutByGlyphs(hdc, 10, 10, L"\x7d\x7e\x81\xfc");
GetCharacterPlacementW() . - GetGlyphIndicesW() "" > 127.