v0.8.1: refactored the location of all asset files
This commit is contained in:
@@ -54,7 +54,7 @@ public class AndroidLauncher extends Activity {
|
||||
e.getMessage());
|
||||
text.setTextSize(16);
|
||||
text.setTextColor(0xFFFFFFFF);
|
||||
text.setTypeface(Typeface.createFromAsset(getAssets(), "pixel_font.ttf"));
|
||||
text.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/pixel_font.ttf"));
|
||||
text.setGravity(Gravity.CENTER_VERTICAL);
|
||||
text.setPadding(10, 10, 10, 10);
|
||||
setContentView(text);
|
||||
|
||||
@@ -240,7 +240,7 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||
} else if (systemfont && Gdx.files.absolute("/system/fonts/DroidSans.ttf").exists()){
|
||||
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/DroidSans.ttf"));
|
||||
} else {
|
||||
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixel_font.ttf"));
|
||||
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("fonts/pixel_font.ttf"));
|
||||
}
|
||||
|
||||
//android 7.0+. all asian fonts are nicely contained in one spot
|
||||
|
||||
@@ -120,7 +120,7 @@ public class WndAndroidTextInput extends Window {
|
||||
textInput = new EditText((AndroidApplication)Gdx.app);
|
||||
textInput.setText( initialValue );
|
||||
if (!SPDSettings.systemFont()){
|
||||
textInput.setTypeface( Typeface.createFromAsset(AndroidGame.instance.getAssets(), "pixel_font.ttf") );
|
||||
textInput.setTypeface( Typeface.createFromAsset(AndroidGame.instance.getAssets(), "fonts/pixel_font.ttf") );
|
||||
}
|
||||
textInput.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength)});
|
||||
textInput.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES );
|
||||
|
||||
Reference in New Issue
Block a user