Home
last modified time | relevance | path

Searched refs:font2 (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java77 FontFileResourceEntry font2 = fileEntries[1]; in testParse() local
78 assertEquals(400, font2.getWeight()); in testParse()
79 assertEquals(1, font2.getItalic()); in testParse()
80 assertEquals(1, font2.getTtcIndex()); in testParse()
81 assertEquals("'cntr' 0.5", font2.getVariationSettings()); in testParse()
82 assertEquals("res/font/samplefont2.ttf", font2.getFileName()); in testParse()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java517 public static int computeMatch(@NonNull FontInfo font1, @NonNull FontInfo font2) {
518 int score = Math.abs(font1.mWeight / 100 - font2.mWeight / 100);
519 if (font1.mIsItalic != font2.mIsItalic) {