Lines Matching refs:font
201 xmlNode* font = firstElement(family, FONT_TAG); in findFirstFontNode() local
202 while (font == nullptr) { in findFirstFontNode()
207 font = firstElement(family, FONT_TAG); in findFirstFontNode()
209 state->mFontNode = font; in findFirstFontNode()
210 return font != nullptr; in findFirstFontNode()
267 const minikin::Font* font = runs[0].fakedFont.font; in AFontMatcher_match() local
270 reinterpret_cast<android::MinikinFontSkia*>(font->typeface().get()); in AFontMatcher_match()
272 result->mWeight = font->style().weight(); in AFontMatcher_match()
273 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
316 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
317 copyFont(ite->mXmlDoc, ite->state, font.get(), "/system/fonts/"); in ASystemFontIterator_next()
318 if (!isFontFileAvailable(font->mFilePath)) { in ASystemFontIterator_next()
321 return font.release(); in ASystemFontIterator_next()
331 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
332 copyFont(ite->mCustomizationXmlDoc, ite->state, font.get(), "/product/fonts/"); in ASystemFontIterator_next()
333 if (!isFontFileAvailable(font->mFilePath)) { in ASystemFontIterator_next()
336 return font.release(); in ASystemFontIterator_next()
342 void AFont_close(AFont* font) { in AFont_close() argument
343 delete font; in AFont_close()
346 const char* AFont_getFontFilePath(const AFont* font) { in AFont_getFontFilePath() argument
347 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getFontFilePath()
348 return font->mFilePath.c_str(); in AFont_getFontFilePath()
351 uint16_t AFont_getWeight(const AFont* font) { in AFont_getWeight() argument
352 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getWeight()
353 return font->mWeight; in AFont_getWeight()
356 bool AFont_isItalic(const AFont* font) { in AFont_isItalic() argument
357 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_isItalic()
358 return font->mItalic; in AFont_isItalic()
361 const char* AFont_getLocale(const AFont* font) { in AFont_getLocale() argument
362 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getLocale()
363 return font->mLocale ? font->mLocale->c_str() : nullptr; in AFont_getLocale()
366 size_t AFont_getCollectionIndex(const AFont* font) { in AFont_getCollectionIndex() argument
367 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getCollectionIndex()
368 return font->mCollectionIndex; in AFont_getCollectionIndex()
371 size_t AFont_getAxisCount(const AFont* font) { in AFont_getAxisCount() argument
372 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisCount()
373 return font->mAxes.size(); in AFont_getAxisCount()
376 uint32_t AFont_getAxisTag(const AFont* font, uint32_t axisIndex) { in AFont_getAxisTag() argument
377 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisTag()
378 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisTag()
379 "given axis index is out of bounds. (< %zd", font->mAxes.size()); in AFont_getAxisTag()
380 return font->mAxes[axisIndex].first; in AFont_getAxisTag()
383 float AFont_getAxisValue(const AFont* font, uint32_t axisIndex) { in AFont_getAxisValue() argument
384 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisValue()
385 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisValue()
386 "given axis index is out of bounds. (< %zd", font->mAxes.size()); in AFont_getAxisValue()
387 return font->mAxes[axisIndex].second; in AFont_getAxisValue()