Lines Matching refs:styleIndex
75885 + * \param styleIndex the index of a font style set
75891 +int FontConfig_OHOS::getTypefaceCount(int styleIndex, bool isFallback) const
75893 + if (styleIndex < 0) {
75897 + if ((unsigned int)styleIndex < fallbackSet.size()) {
75898 + return fallbackSet[styleIndex]->typefaceSet->size();
75901 + if ((unsigned int)styleIndex < genericFamilySet.size()) {
75902 + return genericFamilySet[styleIndex]->typefaceSet->size();
75909 + * \param styleIndex the index of a font style set
75914 + * \n Return null, if 'styleIndex' or 'index' is out of range
75916 +SkTypeface_OHOS* FontConfig_OHOS::getTypeface(int styleIndex, int index,
75919 + if (styleIndex < 0 || index < 0 ||
75920 + (isFallback && (unsigned int)styleIndex >= fallbackSet.size()) ||
75921 + (!isFallback && (unsigned int)styleIndex >= genericFamilySet.size())) {
75925 + const TypefaceSet& tpSet = *(fallbackSet[styleIndex]->typefaceSet.get());
75930 + const TypefaceSet& tpSet = *(genericFamilySet[styleIndex]->typefaceSet.get());
75939 + * \param styleIndex the index a font style set
75944 + * \n Return null, if 'styleIndex' is out of range
75946 +SkTypeface_OHOS* FontConfig_OHOS::getTypeface(int styleIndex, const SkFontStyle& style,
75949 + if (styleIndex < 0 ||
75950 + (isFallback && (unsigned int)styleIndex >= fallbackSet.size()) ||
75951 + (!isFallback && (unsigned int)styleIndex >= genericFamilySet.size())) {
75956 + pSet = fallbackSet[styleIndex]->typefaceSet.get();
75958 + pSet = genericFamilySet[styleIndex]->typefaceSet.get();
77163 + int getTypefaceCount(int styleIndex, bool isFallback = false) const;
77166 + SkTypeface_OHOS* getTypeface(int styleIndex, int index, bool isFallback = false) const;
77167 + SkTypeface_OHOS* getTypeface(int styleIndex, const SkFontStyle& style,
77540 + int styleIndex = 0;
77542 + styleIndex = fontConfig->getStyleIndex(familyName, isFallback);
77544 + return SkSafeRef(fontConfig->getTypeface(styleIndex, style, isFallback));
78008 + : fontConfig_(fontConfig), styleIndex(index), isFallback(isFallback)
78011 + tpCount = fontConfig_->getTypefaceCount(styleIndex, isFallback);
78034 + SkTypeface* typeface = fontConfig_->getTypeface(styleIndex, index, isFallback);
78079 + return SkSafeRef(fontConfig_->getTypeface(styleIndex, index, isFallback));
78092 + return SkSafeRef(fontConfig_->getTypeface(styleIndex, pattern, isFallback));
78129 + int styleIndex = 0; // the index of the font style set