v0.4.3a: space saving improvements to rendered font files
This commit is contained in:
parent
e524a0c486
commit
2478f9311c
|
@ -239,7 +239,8 @@ public class RenderedText extends Image {
|
|||
}
|
||||
|
||||
public static void setFont(String asset){
|
||||
font = Typeface.createFromAsset(Game.instance.getAssets(), asset);
|
||||
if (asset == null) font = null;
|
||||
else font = Typeface.createFromAsset(Game.instance.getAssets(), asset);
|
||||
clearCache();
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -243,7 +243,7 @@ public class ShatteredPixelDungeon extends Game {
|
|||
if (classicFont()) {
|
||||
RenderedText.setFont("pixelfont.ttf");
|
||||
} else {
|
||||
RenderedText.setFont("font.ttf");
|
||||
RenderedText.setFont( null );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -484,7 +484,7 @@ public class ShatteredPixelDungeon extends Game {
|
|||
if (classic) {
|
||||
RenderedText.setFont("pixelfont.ttf");
|
||||
} else {
|
||||
RenderedText.setFont("font.ttf");
|
||||
RenderedText.setFont( null );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ public class WndSettings extends WndTabbed {
|
|||
slots.setRect(0, chkFlipTags.bottom() + GAP_TINY, WIDTH, SLIDER_HEIGHT);
|
||||
add(slots);
|
||||
|
||||
CheckBox chkFont = new CheckBox(Messages.get(this, "smooth_font")){
|
||||
CheckBox chkFont = new CheckBox(Messages.get(this, "system_font")){
|
||||
@Override
|
||||
protected void onClick() {
|
||||
super.onClick();
|
||||
|
|
|
@ -101,7 +101,7 @@ windows.wndsettings$uitab.center=Center
|
|||
windows.wndsettings$uitab.flip_toolbar=Flip Toolbar
|
||||
windows.wndsettings$uitab.flip_indicators=Flip Indicators
|
||||
windows.wndsettings$uitab.quickslots=Quickslots
|
||||
windows.wndsettings$uitab.smooth_font=Smooth Font
|
||||
windows.wndsettings$uitab.system_font=System Font
|
||||
windows.wndsettings$audiotab.music_vol=Music Volume
|
||||
windows.wndsettings$audiotab.music_mute=Mute Music
|
||||
windows.wndsettings$audiotab.sfx_vol=SFX Volume
|
||||
|
|
Loading…
Reference in New Issue
Block a user