After searching a while in internet i found that i can open the string table and put a L in front of the string to declare a unicode string. To input special characters i can write L"\x65F5". But when i run the program i only see a small square instead of the expected character. I asume, that the selected font doesn't hold the character.
My question: How can i register additional fonts with NetDCU ?
-
-
Before you can use a font you havce to register it. The following function registers all TrueType fonts in directory \FFSDISK.
Code- // ----------------------------------------------------------------------------
- // RegisterFonts
- // ----------------------------------------------------------------------------
- // Alle Zeichensätze im FFSDISK-Verzeichnis registrieren void RegisterFonts( CLog cLog ) {
- HANDLE hSearch;
- WIN32_FIND_DATA FileData;
- BOOL bFinished = false;
- TCHAR szFileName[MAX_PATH];
- // Alle dateien mit der Endung TTF werden registriert
- hSearch = FindFirstFile( _T("\\ffsdisk\\*.ttf"), &FileData);
- if(hSearch != INVALID_HANDLE_VALUE)
- {
- do
- {
- swprintf( szFileName, _T("\\ffsdisk\\%s"), FileData.cFileName );
- if(! AddFontResource(szFileName) )
- cLog.Log( LOG_WARNING,8, szLOG_25508,szFileName);
- }
- while( FindNextFile (hSearch, &FileData) );
- // Search Handle schließen
- CloseHandle( hSearch );
- hSearch=NULL;
- }
- }