Skip to content

Commit

Permalink
Change Hangeul(Korean alphabet) font
Browse files Browse the repository at this point in the history
- Remove 갈무리, Add 함초롬돋움
- Copyright information can be found on license/font_함초롬돋움.txt
  • Loading branch information
copyrat90 committed May 23, 2021
1 parent e071de6 commit 2edd00b
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 101 deletions.
Binary file removed graphics/font_galmuri15.aseprite
Binary file not shown.
Binary file removed graphics/font_galmuri15.bmp
Binary file not shown.
Binary file added graphics/font_hamchorom.aseprite
Binary file not shown.
Binary file added graphics/font_hamchorom.bmp
Binary file not shown.
File renamed without changes.
9 changes: 5 additions & 4 deletions include/font_galmuri15.h → include/font_hamchorom.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#include <bn_sprite_font.h>

#include "bn_sprite_items_font_galmuri15.h"
#include "bn_sprite_items_font_hamchorom.h"

namespace sym::font
{

constexpr bn::string_view fixed_16x16_galmuri_utf8_chars[] = {
constexpr bn::string_view fixed_16x16_hamchorom_utf8_chars[] = {
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
Expand Down Expand Up @@ -131,8 +131,9 @@ constexpr bn::string_view fixed_16x16_galmuri_utf8_chars[] = {
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
""};

constexpr bn::sprite_font fixed_16x16_galmuri(bn::sprite_items::font_galmuri15, fixed_16x16_galmuri_utf8_chars);
constexpr bn::sprite_font fixed_16x16_hamchorom(bn::sprite_items::font_hamchorom, fixed_16x16_hamchorom_utf8_chars);

} // namespace sym::font
2 changes: 1 addition & 1 deletion include/scene_Title.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Title final : public Scene
effect::Transition fadeOut_;

static constexpr bn::string_view MENU_STRINGS[LANG_TOTAL_COUNT][MENU_OPTION_TOTAL_COUNT] = {
{"Start", "언 어 : English", "Credit"}, {"시작", "Lang:한국어", "크레딧"}};
{"Start", "언 어 : English", "Credit"}, {"시작", "뷁웱:한국어", "크레딧"}};
static constexpr bn::fixed_point MENU_STRING_POS[LANG_TOTAL_COUNT][MENU_OPTION_TOTAL_COUNT] = {
{{0, 0}, {0, 20}, {0, 40}}, {{0, 0}, {0, 20}, {0, 40}}};
static constexpr bn::fixed_point CURSOR_OFFSET[LANG_TOTAL_COUNT] = {{-13, -2}, {-13, -1}};
Expand Down
94 changes: 0 additions & 94 deletions license/font_galmuri_OFL.txt

This file was deleted.

7 changes: 7 additions & 0 deletions license/font_함초롬돋움.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Font Name : 함초롬돋움
Copyright holder : 한글과컴퓨터
Link : https://www.hancom.com/board/noticeView.do?board_seq=3&artcl_seq=6124


본 프로그램(sym_merged)은 함초롬돋음 한글 서체를
비트맵 이미지(font_hamchorom.bmp)로 만들어 임베딩하였음을 밝힙니다.
4 changes: 2 additions & 2 deletions src/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "constant.h"

#include "font_galmuri15.h"
#include "font_hamchorom.h"
#include "font_m6x11.h"

namespace sym::global
Expand Down Expand Up @@ -114,7 +114,7 @@ struct TextGenManager
}
if (!hangeul)
{
hangeul = new bn::sprite_text_generator(font::fixed_16x16_galmuri);
hangeul = new bn::sprite_text_generator(font::fixed_16x16_hamchorom);
hangeul->set_alignment(constant::DEFAULT_TEXT_GEN_ALIGN);
}
break;
Expand Down

0 comments on commit 2edd00b

Please sign in to comment.