Home
last modified time | relevance | path

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

/third_party/skia/src/ports/skia_ohos/
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()
DFontConfig_ohos.cpp123 int FontConfig_OHOS::getTypefaceCount(int styleIndex, bool isFallback) const in getTypefaceCount() argument
125 if (styleIndex < 0) { in getTypefaceCount()
129 if ((unsigned int)styleIndex < fallbackSet.size()) { in getTypefaceCount()
130 return fallbackSet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
133 if ((unsigned int)styleIndex < genericFamilySet.size()) { in getTypefaceCount()
134 return genericFamilySet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
148 SkTypeface_OHOS* FontConfig_OHOS::getTypeface(int styleIndex, int index, in getTypeface() argument
151 if (styleIndex < 0 || index < 0 || in getTypeface()
152 (isFallback && (unsigned int)styleIndex >= fallbackSet.size()) || in getTypeface()
153 (!isFallback && (unsigned int)styleIndex >= genericFamilySet.size())) { in getTypeface()
[all …]
DFontConfig_ohos.h114 int getTypefaceCount(int styleIndex, bool isFallback = false) const;
117 SkTypeface_OHOS* getTypeface(int styleIndex, int index, bool isFallback = false) const;
118 SkTypeface_OHOS* getTypeface(int styleIndex, const SkFontStyle& style,
DSkFontMgr_ohos.cpp97 int styleIndex = 0; in onMatchFamilyStyle() local
99 styleIndex = fontConfig->getStyleIndex(familyName, isFallback); in onMatchFamilyStyle()
101 return SkSafeRef(fontConfig->getTypeface(styleIndex, style, isFallback)); in onMatchFamilyStyle()
DSkFontStyleSet_ohos.h27 int styleIndex = 0; // the index of the font style set variable
/third_party/skia/gm/
Dinversepaths.cpp97 for (size_t styleIndex = 0; styleIndex < SK_ARRAY_COUNT(styles); variable
98 styleIndex++) {
111 paint.setStyle(styles[styleIndex].fPaintStyle);
112 paint.setPathEffect(styles[styleIndex].fPathEffect);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
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()
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/
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()
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/
Dtufmtts.cpp383 for ( unsigned int styleIndex = 0; in testGreekWithFallback() local
384 styleIndex < UPRV_LENGTHOF(styles); in testGreekWithFallback()
385 ++styleIndex ) { in testGreekWithFallback()
400 … LocalPointer<TimeUnitFormat> tfmt(new TimeUnitFormat(l, styles[styleIndex], status)); in testGreekWithFallback()
429 …ocale: " + UnicodeString(locales[locIndex]) + " style: " + (int)styles[styleIndex] + " units: " + … in testGreekWithFallback()
Dmeasfmttest.cpp4046 for ( int32_t styleIndex = 0; styleIndex < UPRV_LENGTHOF(styles); ++styleIndex ) { in TestGreek() local
4052 MeasureFormat fmt(locales[locIndex], styles[styleIndex], status); in TestGreek()