mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-05 15:48:19 +00:00
Switch to Source Han Sans font
This commit is contained in:
parent
446526486d
commit
178d864ec9
|
@ -1010,9 +1010,9 @@ set(EXPECTED_DATA
|
|||
editor/winter_main.rules
|
||||
emoticons.png
|
||||
file_icons.png
|
||||
fonts/DejaVuSansCJKName.ttf
|
||||
fonts/DejaVuSans.ttf
|
||||
fonts/Icons.ttf
|
||||
fonts/WenQuanYiMicroHei.ttf
|
||||
fonts/SourceHanSansSC-Regular.otf
|
||||
game.png
|
||||
gui_buttons.png
|
||||
gui_cursor.png
|
||||
|
@ -1255,7 +1255,7 @@ set(EXPECTED_DATA
|
|||
wordlist.txt
|
||||
)
|
||||
|
||||
set_glob(DATA GLOB_RECURSE "frag;json;map;pem;png;rules;ttf;txt;vert;wv" data ${EXPECTED_DATA})
|
||||
set_glob(DATA GLOB_RECURSE "frag;json;map;otf;png;rules;ttf;txt;vert;wv" data ${EXPECTED_DATA})
|
||||
|
||||
########################################################################
|
||||
# COPY DATA AND DLLS
|
||||
|
|
BIN
data/fonts/SourceHanSansSC-Regular.otf
Normal file
BIN
data/fonts/SourceHanSansSC-Regular.otf
Normal file
Binary file not shown.
Binary file not shown.
|
@ -3839,8 +3839,8 @@ void CClient::LoadFont()
|
|||
static CFont *pDefaultFont = 0;
|
||||
static CFont *pFallbackFont = 0;
|
||||
char aFilename[512];
|
||||
const char *pFontFile = "fonts/DejaVuSansCJKName.ttf";
|
||||
const char *pFallbackFontFile = "fonts/WenQuanYiMicroHei.ttf";
|
||||
const char *pFontFile = "fonts/DejaVuSans.ttf";
|
||||
const char *pFallbackFontFile = "fonts/SourceHanSansSC-Regular.otf";
|
||||
IOHANDLE File = Storage()->OpenFile(pFontFile, IOFLAG_READ, IStorage::TYPE_ALL, aFilename, sizeof(aFilename));
|
||||
if(File)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue