void CSchemeVisualizer::AddFontsToList() { #ifdef POSIX const char strOAccent[] = { 0xc3, 0x93, 0x00 }; // UTF-8 for U+00D3 (LATIN CAPITAL LETTER O WITH ACUTE) #else const uint8 strOAccent[] = { 0xd3, 0x00 }; #endif // Stick an intl character in here to test accents (O') CFmtStr fmtText( "ABCDEFGHIJKLMN%sPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz0123456789!@#$%%^&*()-_=+", strOAccent ); const int nFontCount = m_pViewScheme->GetFontCount(); for ( int i = 0; i < nFontCount; ++i ) { HFont hCurFont = m_pViewScheme->GetFontAtIndex( i ); const char *pCurFontName = m_pViewScheme->GetFontName( hCurFont ); CFmtStr fmtName( "FontPanel_%s", pCurFontName ); Label *pNewFontLabel = new Label( m_pList, fmtName.Access(), fmtText.Access() ); pNewFontLabel->SetFont( hCurFont ); pNewFontLabel->SizeToContents(); pNewFontLabel->SetWide( m_pList->GetWide() ); m_pList->AddItem( new Label( NULL, "Label", pCurFontName ), pNewFontLabel ); } }