Skip to content

Commit

Permalink
change font
Browse files Browse the repository at this point in the history
  • Loading branch information
liqMix committed Jul 13, 2022
1 parent 124a586 commit 29a1db2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file added pkg/data/assets/fonts/x12y16pxMaruMonica.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/data/assets/lang/ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generic
back: "戻る"
cancel: "キャンセル"
exit: "出るる"
exit: "出る"
start_game: "始まる"
leave_game: "出る"
map: "地図"
Expand Down
8 changes: 4 additions & 4 deletions pkg/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func LoadData() error {
EmptyImage.Fill(color.White)

// Load the fonts.
d, err := ReadFile("fonts/LanaPixel.ttf")
d, err := ReadFile("fonts/x12y16pxMaruMonica.ttf")
if err != nil {
return err
}
Expand All @@ -85,13 +85,13 @@ func LoadData() error {
return err
}
if NormalFace, err = opentype.NewFace(tt, &opentype.FaceOptions{
Size: 11,
Size: 16,
DPI: 72,
Hinting: font.HintingFull,
}); err != nil {
return err
}
d, err = ReadFile("fonts/LanaPixel.ttf")
d, err = ReadFile("fonts/x12y16pxMaruMonica.ttf")
if err != nil {
return err
}
Expand All @@ -100,7 +100,7 @@ func LoadData() error {
return err
}
if BoldFace, err = opentype.NewFace(tt, &opentype.FaceOptions{
Size: 11,
Size: 16,
DPI: 72,
Hinting: font.HintingFull,
}); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/game/state_menu_music.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *MusicMenuState) Init() error {
backButton := data.NewButton(
15,
10,
"Back",
lang.Back,
func() {
s.game.SetState(&MenuState{
game: s.game,
Expand Down

0 comments on commit 29a1db2

Please sign in to comment.