monospace

This commit is contained in:
Riko Sakurauchi 2019-12-14 17:14:11 +08:00
parent 653f34a853
commit 652fc22cd9
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF
1 changed files with 3 additions and 0 deletions

View File

@ -914,6 +914,9 @@ public class AndroidUtilities {
if (assetPath.contains("italic")) {
return Typeface.create((Typeface) null, Typeface.ITALIC);
}
if (assetPath.contains("mono")) {
return Typeface.MONOSPACE;
}
return Typeface.create((Typeface) null, Typeface.NORMAL);
}
if (!typefaceCache.containsKey(assetPath)) {