Home
last modified time | relevance | path

Searched refs:styleIndex (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/src/ports/skia_ohos/
H A DSkFontStyleSet_ohos.cpp15 : fontConfig_(fontConfig), styleIndex(index), isFallback(isFallback) in SkFontStyleSet_OHOS()
18 tpCount = fontConfig_->getTypefaceCount(styleIndex, isFallback); in SkFontStyleSet_OHOS()
41 SkTypeface* typeface = fontConfig_->getTypeface(styleIndex, index, isFallback); in getStyle()
86 return SkSafeRef(fontConfig_->getTypeface(styleIndex, index, isFallback)); in createTypeface()
99 return SkSafeRef(fontConfig_->getTypeface(styleIndex, pattern, isFallback)); in matchStyle()
H A DFontConfig_ohos.cpp127 * \param styleIndex the index of a font style set
133 int FontConfig_OHOS::getTypefaceCount(int styleIndex, bool isFallback) const in getTypefaceCount() argument
135 if (styleIndex < 0) { in getTypefaceCount()
139 if ((unsigned int)styleIndex < fallbackSet.size()) { in getTypefaceCount()
140 return fallbackSet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
143 if ((unsigned int)styleIndex < genericFamilySet.size()) { in getTypefaceCount()
144 return genericFamilySet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
151 * \param styleIndex the index of a font style set
156 * \n Return null, if 'styleIndex' or 'index' is out of range
158 SkTypeface_OHOS* FontConfig_OHOS::getTypeface(int styleIndex, in argument
165 getTypefaceSP(int styleIndex, int index, bool isFallback) const getTypefaceSP() argument
194 getTypeface(int styleIndex, const SkFontStyle& style, bool isFallback) const getTypeface() argument
[all...]
H A DFontConfig_ohos.h114 int getTypefaceCount(int styleIndex, bool isFallback = false) const;
117 sk_sp<SkTypeface_OHOS> getTypefaceSP(int styleIndex, int index, bool isFallback = false) const;
118 SkTypeface_OHOS* getTypeface(int styleIndex, int index, bool isFallback = false) const;
119 SkTypeface_OHOS* getTypeface(int styleIndex, const SkFontStyle& style,
H A DSkFontStyleSet_ohos.h27 int styleIndex = 0; // the index of the font style set member in SkFontStyleSet_OHOS
H A DSkFontMgr_ohos.cpp98 int styleIndex = 0; in onMatchFamilyStyle() local
100 styleIndex = fontConfig->getStyleIndex(familyName, isFallback); in onMatchFamilyStyle()
102 return SkSafeRef(fontConfig->getTypeface(styleIndex, style, isFallback)); in onMatchFamilyStyle()
/third_party/skia/gm/
H A Dinversepaths.cpp97 for (size_t styleIndex = 0; styleIndex < SK_ARRAY_COUNT(styles); in DEF_SIMPLE_GM()
98 styleIndex++) { in DEF_SIMPLE_GM()
111 paint.setStyle(styles[styleIndex].fPaintStyle); in DEF_SIMPLE_GM()
112 paint.setPathEffect(styles[styleIndex].fPathEffect); in DEF_SIMPLE_GM()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DTimeUnitTest.java250 for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { in TestGreek()
254 timeUnitFormat = new TimeUnitFormat(new ULocale(locales[locIndex]), styles[styleIndex]); in TestGreek()
259 + ", style: " + styles[styleIndex] in TestGreek()
H A DMeasureUnitTest.java2019 for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { in TestGreek()
2022 MeasureFormat fmt = MeasureFormat.getInstance(new ULocale(locales[locIndex]), styles[styleIndex]); in TestGreek()
2026 + ", style: " + styles[styleIndex] in TestGreek()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DTimeUnitTest.java247 for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { in TestGreek()
251 timeUnitFormat = new TimeUnitFormat(new ULocale(locales[locIndex]), styles[styleIndex]); in TestGreek()
256 + ", style: " + styles[styleIndex] in TestGreek()
H A DMeasureUnitTest.java2809 for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { in TestGreek()
2812 MeasureFormat fmt = MeasureFormat.getInstance(new ULocale(locales[locIndex]), styles[styleIndex]); in TestGreek()
2816 + ", style: " + styles[styleIndex] in TestGreek()
/third_party/icu/icu4c/source/test/intltest/
H A Dtufmtts.cpp383 for ( unsigned int styleIndex = 0; in testGreekWithFallback()
384 styleIndex < UPRV_LENGTHOF(styles); in testGreekWithFallback()
385 ++styleIndex ) { in testGreekWithFallback()
400 LocalPointer<TimeUnitFormat> tfmt(new TimeUnitFormat(l, styles[styleIndex], status)); in testGreekWithFallback()
429 if (!assertEquals("formatted time string is not expected, locale: " + UnicodeString(locales[locIndex]) + " style: " + (int)styles[styleIndex] + " units: " + (int)tunits[unitIndex], expected[counter], str)) { in testGreekWithFallback()
H A Dmeasfmttest.cpp4046 for ( int32_t styleIndex = 0; styleIndex < UPRV_LENGTHOF(styles); ++styleIndex ) { in TestGreek()
4052 MeasureFormat fmt(locales[locIndex], styles[styleIndex], status); in TestGreek()

Completed in 21 milliseconds