v0.7.5b: slightly renamed pixel_font and added many currency symbols

This commit is contained in:
Evan Debenham 2019-10-12 17:13:25 -04:00
parent ccd5a108e9
commit 0f52c38e7a
4 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@ -212,8 +212,9 @@ public class AndroidPlatformSupport extends PlatformSupport {
if (systemfont){ if (systemfont){
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/DroidSans.ttf")); basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/DroidSans.ttf"));
} else { } else {
//FIXME need to add currency symbols //FIXME should probably add more latin/cyrillic glyphs to this
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixelfont.ttf")); //and go over translations
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixel_font.ttf"));
} }
//android 7.0+. Finally back to normalcy, everything nicely in one .ttc //android 7.0+. Finally back to normalcy, everything nicely in one .ttc

View File

@ -98,7 +98,7 @@ public class WndAndroidTextInput extends Window {
textInput = new EditText((AndroidApplication)Gdx.app); textInput = new EditText((AndroidApplication)Gdx.app);
textInput.setText( initialValue ); textInput.setText( initialValue );
if (!SPDSettings.systemFont()){ if (!SPDSettings.systemFont()){
textInput.setTypeface( Typeface.createFromAsset(AndroidLauncher.instance.getAssets(), "pixelfont.ttf") ); textInput.setTypeface( Typeface.createFromAsset(AndroidLauncher.instance.getAssets(), "pixel_font.ttf") );
} }
textInput.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength)}); textInput.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength)});
textInput.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES ); textInput.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES );