Searched refs:hbFont (Results 1 – 8 of 8) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | FontTest.cpp | 151 auto hbFont = font->getAdjustedFont(-1, -1); in TEST() local 152 EXPECT_EQ(hbFont.get(), font->baseFont().get()); in TEST() 156 auto hbFont = font->getAdjustedFont(400, -1); in TEST() local 157 EXPECT_EQ(hb_font_get_parent(hbFont.get()), font->baseFont().get()); in TEST() 158 EXPECT_NE(hbFont.get(), font->baseFont().get()); in TEST() 160 const float* coords = hb_font_get_var_coords_design(hbFont.get(), &length); in TEST() 168 auto hbFont = newFont->getAdjustedFont(500, -1); in TEST() local 169 EXPECT_EQ(hb_font_get_parent(hbFont.get()), newFont->baseFont().get()); in TEST() 170 EXPECT_NE(hbFont.get(), newFont->baseFont().get()); in TEST() 172 const float* coords = hb_font_get_var_coords_design(hbFont.get(), &length); in TEST() [all …]
|
D | FontCollectionItemizeTest.cpp | 1652 auto psName = FontFileParser(run.fakedFont.hbFont()).getPostScriptName().value(); in itemizeEmojiAndFontPostScriptNames()
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 43 hb_font_t* hbFont = family->getFont(0)->baseFont().get(); in TEST_P() local 48 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, 0 /* variation selector */, in TEST_P() 60 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph))) in TEST_P() 64 << static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph)); in TEST_P() 67 hb_font_destroy(hbFont); in TEST_P()
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 183 const HbFontUniquePtr& hbFont) { in addToHbBuffer() argument 208 addHyphenToHbBuffer(buffer, hbFont, startHyphen, 0 /* cluster */); in addToHbBuffer() 268 addHyphenToHbBuffer(buffer, hbFont, endHyphen, hyphenCluster); in addToHbBuffer() 330 HbFontUniquePtr font(hb_font_create_sub_font(fakedFont.hbFont().get())); in LayoutPiece() 339 const HbFontUniquePtr& hbFont = hbFonts[font_ix]; in LayoutPiece() local 354 hb_font_set_ppem(hbFont.get(), size * scaleX, size); in LayoutPiece() 355 hb_font_set_scale(hbFont.get(), HBFloatToFixed(size * scaleX), HBFloatToFixed(size)); in LayoutPiece() 399 startHyphen, endHyphen, hbFont); in LayoutPiece() 401 hb_shape(hbFont.get(), buffer.get(), features.empty() ? NULL : &features[0], in LayoutPiece()
|
D | Font.cpp | 114 HbFontUniquePtr hbFont = prepareFont(typeface); in Font() local 115 mExternalRefsHolder.exchange(new ExternalRefs(std::move(typeface), std::move(hbFont))); in Font() 121 HbFontUniquePtr hbFont = prepareFont(typeface); in Font() local 122 return new ExternalRefs(std::move(typeface), std::move(hbFont)); in Font()
|
D | Debug.cpp | 103 << FontFileParser(layout.fontAt(i).hbFont()).getPostScriptName().value_or("[UNKNOWN]") in toString()
|
/frameworks/minikin/include/minikin/ |
D | Font.h | 244 HbFontUniquePtr hbFont() const { in hbFont() function
|
D | Layout.h | 51 std::optional<std::string> psName = FontFileParser(g.font.hbFont()).getPostScriptName();
|