Merge "Stop logspam of missing fonts."
This commit is contained in:
committed by
Android (Google) Code Review
commit
b76593d6e1
@@ -21,7 +21,6 @@ import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.res.AssetManager;
|
||||
import android.graphics.fonts.FontVariationAxis;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import dalvik.annotation.optimization.CriticalNative;
|
||||
|
||||
@@ -145,7 +144,6 @@ public class FontFamily {
|
||||
}
|
||||
return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic);
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Error mapping font file " + path);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,6 @@ public final class SystemFonts {
|
||||
final long fontSize = fileChannel.size();
|
||||
return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize);
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Error mapping font file " + fullPath);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user