Merge "Fix fonts following 455f1bfc05"

This commit is contained in:
TreeHugger Robot
2017-03-29 13:19:03 +00:00
committed by Android (Google) Code Review

View File

@@ -233,7 +233,8 @@ public final class Typeface_Delegate {
Map<String, ByteBuffer> bufferForPath) {
FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant());
for (FontConfig.Font font : family.getFonts()) {
FontFamily_Delegate.addFont(fontFamily.mBuilderPtr, font.getFontName(),
String fullPathName = "/system/fonts/" + font.getFontName();
FontFamily_Delegate.addFont(fontFamily.mBuilderPtr, fullPathName,
font.getWeight(), font.isItalic());
}
fontFamily.freeze();