Show Japanese text and close the gap in the top bar
Godot's built-in font has no Japanese, so kanji in song names showed as boxes. The theme now sets Godot's own Open Sans SemiBold as its default font, with Noto Sans JP Medium as fallback. The Noto file's line metrics are set to Open Sans's, so line heights stay the same and every other screen is pixel-identical; fonts/README.md explains how to redo it. Search and Sync move right to where the Statistics button was.
This commit is contained in:
1 parent
a21b6e9b22
commit
b40b160fde
13 files changed
+325
-15
No files matched your search
@@ -28,6 +28,11 @@ const SYNC_RESULT: Dictionary = {
|
||||
"total_time": "00:00:03",
|
||||
}
|
||||
|
||||
## Song names of the first soundtrack in the statistics, to show Japanese text.
|
||||
const JAPANESE_SONGS: Array[String] = [
|
||||
"時の回廊", "カエルのテーマ", "風の憧憬", "魔王決戦", "遥かなる時の彼方へ",
|
||||
]
|
||||
|
||||
## The character pictures the fake server hands out.
|
||||
const CHARACTERS_DIR: String = "res://characters"
|
||||
|
||||
@@ -84,7 +89,7 @@ static func soundtrack_statistics() -> Array[Dictionary]:
|
||||
"song_uuid": "song-%d-%d" % [i, song],
|
||||
"soundtrack_uuid": "soundtrack-%d" % i,
|
||||
"soundtrack_name": SOUNDTRACKS[i],
|
||||
"song_name": "Track %d" % (song + 1),
|
||||
"song_name": JAPANESE_SONGS[song] if i == 0 else "Track %d" % (song + 1),
|
||||
"times_played": maxi(0, played - song * 2),
|
||||
})
|
||||
var soundtrack: Dictionary = {
|
||||
|
||||
Reference in new issue
Block a user