• Home
  • Raw
  • Download

Lines Matching refs:font

191     xmlNode* font = firstElement(family, FONT_TAG);  in findFirstFontNode()  local
192 while (font == nullptr) { in findFirstFontNode()
197 font = firstElement(family, FONT_TAG); in findFirstFontNode()
199 return font; in findFirstFontNode()
256 const minikin::Font* font = runs[0].fakedFont.font; in AFontMatcher_match() local
259 reinterpret_cast<android::MinikinFontSkia*>(font->typeface().get()); in AFontMatcher_match()
261 result->mWeight = font->style().weight(); in AFontMatcher_match()
262 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
305 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
306 copyFont(ite->mXmlDoc, ite->mFontNode, font.get(), "/system/fonts/"); in ASystemFontIterator_next()
307 if (!isFontFileAvailable(font->mFilePath)) { in ASystemFontIterator_next()
310 return font.release(); in ASystemFontIterator_next()
322 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
323 copyFont(ite->mCustomizationXmlDoc, ite->mFontNode, font.get(), "/product/fonts/"); in ASystemFontIterator_next()
324 if (!isFontFileAvailable(font->mFilePath)) { in ASystemFontIterator_next()
327 return font.release(); in ASystemFontIterator_next()
333 void AFont_close(AFont* font) { in AFont_close() argument
334 delete font; in AFont_close()
337 const char* AFont_getFontFilePath(const AFont* font) { in AFont_getFontFilePath() argument
338 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getFontFilePath()
339 return font->mFilePath.c_str(); in AFont_getFontFilePath()
342 uint16_t AFont_getWeight(const AFont* font) { in AFont_getWeight() argument
343 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_getWeight()
344 return font->mWeight; in AFont_getWeight()
347 bool AFont_isItalic(const AFont* font) { in AFont_isItalic() argument
348 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed as font argument"); in AFont_isItalic()
349 return font->mItalic; in AFont_isItalic()
352 const char* AFont_getLocale(const AFont* font) { in AFont_getLocale() argument
353 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getLocale()
354 return font->mLocale ? nullptr : font->mLocale->c_str(); in AFont_getLocale()
357 size_t AFont_getCollectionIndex(const AFont* font) { in AFont_getCollectionIndex() argument
358 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getCollectionIndex()
359 return font->mCollectionIndex; in AFont_getCollectionIndex()
362 size_t AFont_getAxisCount(const AFont* font) { in AFont_getAxisCount() argument
363 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisCount()
364 return font->mAxes.size(); in AFont_getAxisCount()
367 uint32_t AFont_getAxisTag(const AFont* font, uint32_t axisIndex) { in AFont_getAxisTag() argument
368 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisTag()
369 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisTag()
370 "given axis index is out of bounds. (< %zd", font->mAxes.size()); in AFont_getAxisTag()
371 return font->mAxes[axisIndex].first; in AFont_getAxisTag()
374 float AFont_getAxisValue(const AFont* font, uint32_t axisIndex) { in AFont_getAxisValue() argument
375 LOG_ALWAYS_FATAL_IF(font == nullptr, "nullptr has passed to font argument"); in AFont_getAxisValue()
376 LOG_ALWAYS_FATAL_IF(axisIndex >= font->mAxes.size(), in AFont_getAxisValue()
377 "given axis index is out of bounds. (< %zd", font->mAxes.size()); in AFont_getAxisValue()
378 return font->mAxes[axisIndex].second; in AFont_getAxisValue()