public final Typeface getTypeFaceFromAsset(String assetName) { try { return Typeface.createFromAsset(this.getResources().getAssets(), assetName); } catch (Throwable e) { } return null; }
public final Typeface getTypeFaceFromByteArray(byte[] data) { try { File f = getDataCacheFile(data); if (f != null) return Typeface.createFromFile(f); } catch (Exception e) { Log.e("JUCE", e.toString()); } return null; }