if ("SYSTEM".equals(fontName)) {\r
typeface = Typeface.DEFAULT;\r
} else {\r
- typeface = Typeface.createFromAsset(getAssets(), fontName);\r
+ try {\r
+ typeface = Typeface.createFromAsset(getAssets(), fontName);\r
+ } catch (Exception e) {\r
+ Log.w(LOG, "Exception trying to use typeface, using default.", e);\r
+ Toast.makeText(this, getString(R.string.fontFailure, e.getLocalizedMessage()), Toast.LENGTH_LONG).show();\r
+ }\r
}\r
if (typeface == null) {\r
Log.w(LOG, "Unable to create typeface, using default.");\r