Searched refs:font2 (Results 1 – 2 of 2) sorted by relevance
77 FontFileResourceEntry font2 = fileEntries[1]; in testParse() local78 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()
517 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) {