Renamed some resources for naming consistency
This commit is contained in:
parent
36a15a745c
commit
64747478fe
7 changed files with 774 additions and 774 deletions
|
@ -1,6 +1,6 @@
|
||||||
info face="Noto Serif CJK JP" size=-16 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=2,2 outline=1
|
info face="Noto Serif CJK JP" size=-16 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=2,2 outline=1
|
||||||
common lineHeight=23 base=18 scaleW=512 scaleH=512 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
|
common lineHeight=23 base=18 scaleW=512 scaleH=512 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
|
||||||
page id=0 file="notoCJK.png"
|
page id=0 file="noto_cjk.png"
|
||||||
chars count=576
|
chars count=576
|
||||||
char id=32 x=507 y=185 width=3 height=3 xoffset=-1 yoffset=-1 xadvance=4 page=0 chnl=15
|
char id=32 x=507 y=185 width=3 height=3 xoffset=-1 yoffset=-1 xadvance=4 page=0 chnl=15
|
||||||
char id=33 x=449 y=285 width=5 height=14 xoffset=0 yoffset=5 xadvance=5 page=0 chnl=15
|
char id=33 x=449 y=285 width=5 height=14 xoffset=0 yoffset=5 xadvance=5 page=0 chnl=15
|
Binary file not shown.
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
@ -1,6 +1,6 @@
|
||||||
info face="Symbola" size=-64 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=2,2 outline=2
|
info face="Symbola" size=-64 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=2,2 outline=2
|
||||||
common lineHeight=81 base=59 scaleW=1024 scaleH=1024 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
|
common lineHeight=81 base=59 scaleW=1024 scaleH=1024 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
|
||||||
page id=0 file="emoji.png"
|
page id=0 file="symbola.png"
|
||||||
chars count=187
|
chars count=187
|
||||||
char id=9749 x=135 y=333 width=63 height=61 xoffset=1 yoffset=9 xadvance=65 page=0 chnl=15
|
char id=9749 x=135 y=333 width=63 height=61 xoffset=1 yoffset=9 xadvance=65 page=0 chnl=15
|
||||||
char id=9752 x=366 y=396 width=57 height=59 xoffset=0 yoffset=10 xadvance=58 page=0 chnl=15
|
char id=9752 x=366 y=396 width=57 height=59 xoffset=0 yoffset=10 xadvance=58 page=0 chnl=15
|
Binary file not shown.
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 239 KiB |
|
@ -37,7 +37,7 @@ int main(void)
|
||||||
fontDefault.baseSize = 16;
|
fontDefault.baseSize = 16;
|
||||||
fontDefault.charsCount = 95;
|
fontDefault.charsCount = 95;
|
||||||
// Parameters > font size: 16, no chars array provided (0), chars count: 95 (autogenerate chars array)
|
// Parameters > font size: 16, no chars array provided (0), chars count: 95 (autogenerate chars array)
|
||||||
fontDefault.chars = LoadFontData("resources/AnonymousPro-Bold.ttf", 16, 0, 95, FONT_DEFAULT);
|
fontDefault.chars = LoadFontData("resources/anonymous_pro_bold.ttf", 16, 0, 95, FONT_DEFAULT);
|
||||||
// Parameters > chars count: 95, font size: 16, chars padding in image: 4 px, pack method: 0 (default)
|
// Parameters > chars count: 95, font size: 16, chars padding in image: 4 px, pack method: 0 (default)
|
||||||
Image atlas = GenImageFontAtlas(fontDefault.chars, &fontDefault.recs, 95, 16, 4, 0);
|
Image atlas = GenImageFontAtlas(fontDefault.chars, &fontDefault.recs, 95, 16, 4, 0);
|
||||||
fontDefault.texture = LoadTextureFromImage(atlas);
|
fontDefault.texture = LoadTextureFromImage(atlas);
|
||||||
|
|
|
@ -159,8 +159,8 @@ int main(int argc, char **argv)
|
||||||
// NOTE: fontAsian is for asian languages,
|
// NOTE: fontAsian is for asian languages,
|
||||||
// fontEmoji is the emojis and fontDefault is used for everything else
|
// fontEmoji is the emojis and fontDefault is used for everything else
|
||||||
Font fontDefault = LoadFont("resources/dejavu.fnt");
|
Font fontDefault = LoadFont("resources/dejavu.fnt");
|
||||||
Font fontAsian = LoadFont("resources/notoCJK.fnt");
|
Font fontAsian = LoadFont("resources/noto_cjk.fnt");
|
||||||
Font fontEmoji = LoadFont("resources/emoji.fnt");
|
Font fontEmoji = LoadFont("resources/symbola.fnt");
|
||||||
|
|
||||||
Vector2 hoveredPos = { 0.0f, 0.0f };
|
Vector2 hoveredPos = { 0.0f, 0.0f };
|
||||||
Vector2 selectedPos = { 0.0f, 0.0f };
|
Vector2 selectedPos = { 0.0f, 0.0f };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue