mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-05 15:48:19 +00:00
Merge DejaVuSansCJKName with DejavuWenQuanYiMicroHei and use it for all (fixes #2593)
got them merged with fontforge, finally looks good. allows reading CJK for everyone independent of language chosen. Hopefully the lags are gone.
This commit is contained in:
parent
4611c8f101
commit
1394ac0fc4
|
@ -1010,7 +1010,6 @@ set(EXPECTED_DATA
|
|||
editor/winter_main.rules
|
||||
emoticons.png
|
||||
file_icons.png
|
||||
fonts/DejaVuSansCJKName.ttf
|
||||
fonts/DejavuWenQuanYiMicroHei.ttf
|
||||
fonts/Icons.ttf
|
||||
game.png
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -3838,10 +3838,7 @@ void CClient::LoadFont()
|
|||
{
|
||||
static CFont *pDefaultFont = 0;
|
||||
char aFilename[512];
|
||||
const char *pFontFile = "fonts/DejaVuSansCJKName.ttf";
|
||||
if(str_find(g_Config.m_ClLanguagefile, "chinese") != NULL || str_find(g_Config.m_ClLanguagefile, "japanese") != NULL ||
|
||||
str_find(g_Config.m_ClLanguagefile, "korean") != NULL)
|
||||
pFontFile = "fonts/DejavuWenQuanYiMicroHei.ttf";
|
||||
const char *pFontFile = "fonts/DejavuWenQuanYiMicroHei.ttf";
|
||||
IOHANDLE File = Storage()->OpenFile(pFontFile, IOFLAG_READ, IStorage::TYPE_ALL, aFilename, sizeof(aFilename));
|
||||
if(File)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue