Character Sets
Objective Grid has support for different SetFaceName()
.
SetFaceName("Arial"); // Default charset will be used
SetFaceName("Arial (Western)"); // Western charset will be used
SetFaceName("Arial (Cyrillic)"); // Cyrillic charset will be used
You can also specify if the character set should be displayed in the font page of the stylesheet by setting
GXGetAppData()->m_bDisplayFontCharset = TRUE;
The default is FALSE
(character sets will not be displayed in the font page).
Enabling Japanese in ANSI-DBCS
Grid build types using the Japanese locale may require following workaround:
LOGFONT logFont;
SystemParametersInfo(SPI_GETICONTITLELOGFONT,sizeof(logFont),&logFont,0);
CGXFont gxFont(logFont);
CGXFontInfo* pFontInfo = GXGetFontState()->GetFontInfo(gxFont.GetFaceNameId());
pFontInfo->nCharSet = logFont.lfCharSet;
pFontInfo->lfPitchAndFamily = logFont.lfPitchAndFamily;
gxFont.SetSize(12);
gxFont.SetBold(TRUE);
SetStyleRange( CGXRange(1,1), CGXStyle().SetFont(CGXFont(gxFont)));