Skip to content

Commit

Permalink
Use Torus font for UI
Browse files Browse the repository at this point in the history
  • Loading branch information
CloneWith committed Jan 3, 2025
1 parent f92c6e0 commit 49ae098
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
3 changes: 0 additions & 3 deletions res/Exo2-Bold.ttf

This file was deleted.

3 changes: 0 additions & 3 deletions res/Exo2-Regular.ttf

This file was deleted.

Binary file added res/Torus-Regular.otf
Binary file not shown.
Binary file added res/Torus-SemiBold.otf
Binary file not shown.
7 changes: 3 additions & 4 deletions src/itdelatrisu/opsu/options/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public class Options {
public static final File TEMP_DIR = new File(CACHE_DIR, "Temp/");

/** Main font file name. */
public static final String FONT_MAIN = "Exo2-Regular.ttf";
public static final String FONT_MAIN = "Torus-Regular.otf";

/** Bold font file name. */
public static final String FONT_BOLD = "Exo2-Bold.ttf";
public static final String FONT_BOLD = "Torus-SemiBold.otf";

/** CJK font file name. */
public static final String FONT_CJK = "DroidSansFallback.ttf";
Expand Down Expand Up @@ -301,11 +301,10 @@ public String write() {

@Override
public void read(String s) {
String oldThemeString = themeString;
themeString = s;
Beatmap beatmap = getThemeBeatmap();
if (beatmap == null) {
Log.warn(String.format("The theme song \"%s\" data is invaild.", s));
Log.warn(String.format("The theme song \"%s\" data is invalid.", s));
} else if (!beatmap.audioFilename.isFile()
&& !ResourceLoader.resourceExists(beatmap.audioFilename.getName())) {
Log.warn(String.format("Cannot find theme song [%s].", beatmap.audioFilename.getAbsolutePath()));
Expand Down

0 comments on commit 49ae098

Please sign in to comment.