Read special characters
#4

i dont remember who posted this, so can't give credits, but if you want to compile for usa and still use characters like ç, ä, ö, ü, ß etc, you can do the following:

 

1. you must add german font in your local folder to your wanted font

2. in source client engine  engine/interface/UItexturemanager.cpp line 103

 

replace USA code by your german code (but dont remove "case USA:")

 

case USA:
        {
            m_nLanguage = FONT_GERMAN;

            for( iTex = 0; iTex < TEXCT_FONT_GERMAN; iTex++ )
            {
                strFileName.PrintF( "FontGerman%d.tex", iTex );
                strFullPath = strDirectory + strFileName;
                m_aptdFont[iTex] = _pTextureStock->Obtain_t( strFullPath );
            }

            m_nFontTextureCount = TEXCT_FONT_GERMAN;
            m_nFontSpacing = 0;
            m_nLineSpacing = 2;
        }
        break;

3. engine/interface/UiEditBox.cpp line 819 & 1515 add || g_iCountry == USA to the list to enable 2 byte characters (ß, ä, ö, ü etc)

4. line 1190 
void CUIEditBox:Big GrineleteChar( int nDeletePos )
{
    // If current character is 2 byte character
//    if(Is2ByteChar(nDeletePos))
    // connie [2009/9/11] - 

there u need add && (g_iCountry != USA) too then is this fixed with delete

 



Messages In This Thread
[No subject] - by kranzo - 07-09-2021, 04:34 AM
[No subject] - by Scura - 07-09-2021, 10:07 AM
[No subject] - by rondo157 - 07-09-2021, 07:25 PM
[No subject] - by Desarija - 07-12-2021, 11:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)