Searched refs:newFont (Results 1 – 5 of 5) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | FontTest.cpp | 167 std::shared_ptr<Font> newFont = Font::Builder(font->getAdjustedTypeface(700, -1)).build(); in TEST() local 168 auto hbFont = newFont->getAdjustedFont(500, -1); in TEST() 169 EXPECT_EQ(hb_font_get_parent(hbFont.get()), newFont->baseFont().get()); in TEST() 170 EXPECT_NE(hbFont.get(), newFont->baseFont().get()); in TEST() 190 std::shared_ptr<Font> newFont = Font::Builder(font->getAdjustedTypeface(-1, 0)).build(); in TEST() local 191 auto hbFont = newFont->getAdjustedFont(-1, 1); in TEST() 192 EXPECT_EQ(hb_font_get_parent(hbFont.get()), newFont->baseFont().get()); in TEST() 193 EXPECT_NE(hbFont.get(), newFont->baseFont().get()); in TEST() 213 std::shared_ptr<Font> newFont = Font::Builder(font->getAdjustedTypeface(500, 1)).build(); in TEST() local 214 auto hbFont = newFont->getAdjustedFont(700, 0); in TEST() [all …]
|
/frameworks/rs/ |
D | rsFont.cpp | 307 Font *newFont = new Font(rsc); in create() local 308 bool isInitialized = newFont->init(name, fontSize, dpi, data, dataLen); in create() 310 activeFonts.push_back(newFont); in create() 311 rsc->mStateFont.precacheLatin(newFont); in create() 312 return newFont; in create() 315 ObjectBase::checkDelete(newFont); in create() 860 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile() local 861 if (newFont) { in rsi_FontCreateFromFile() 862 newFont->incUserRef(); in rsi_FontCreateFromFile() 864 return newFont; in rsi_FontCreateFromFile() [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | FontInterpolator.kt | 168 val newFont = Font.Builder(start).setFontVariationSettings(newAxes.toTypedArray()).build() in <lambda>() constant 169 interpCache.put(InterpKey(start, end, progress), newFont) in <lambda>() 170 verFontCache.put(VarFontKey(start, newAxes), newFont) in <lambda>() 174 return newFont in <lambda>()
|
D | TextInterpolator.kt | 439 val newFont = newGlyphs.getFont(run.start) in <lambda>() constant 444 require(newFont === newGlyphs.getFont(i)) { in <lambda>() 446 " $newFont vs ${newGlyphs.getFont(i)} at $i" in <lambda>() 452 require(FontInterpolator.canInterpolate(newFont, run.baseFont)) { in <lambda>() 453 "New font cannot be interpolated with existing font. $newFont," + in <lambda>() 458 run.baseFont = newFont in <lambda>() 460 run.targetFont = newFont in <lambda>()
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | Font.cpp | 146 std::shared_ptr<minikin::Font> newFont = minikin::Font::Builder(newMinikinFont) in Font_Builder_clone() local 150 return reinterpret_cast<jlong>(new FontWrapper(std::move(newFont))); in Font_Builder_clone()
|