Home
last modified time | relevance | path

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

/third_party/flutter/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.cpp102 int FontConfig_OHOS::getTypefaceCount(int styleIndex, bool isFallback) const in getTypefaceCount() argument
104 if (styleIndex < 0) { in getTypefaceCount()
108 if ((unsigned int)styleIndex < fallbackSet.size()) { in getTypefaceCount()
109 return fallbackSet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
112 if ((unsigned int)styleIndex < genericFamilySet.size()) { in getTypefaceCount()
113 return genericFamilySet[styleIndex]->typefaceSet->size(); in getTypefaceCount()
127 SkTypeface_OHOS* FontConfig_OHOS::getTypeface(int styleIndex, int index, in getTypeface() argument
130 if (styleIndex < 0 || index < 0 || in getTypeface()
131 (isFallback && (unsigned int)styleIndex >= fallbackSet.size()) || in getTypeface()
132 (!isFallback && (unsigned int)styleIndex >= genericFamilySet.size())) { in getTypeface()
[all …]
DFontConfig_ohos.h109 int getTypefaceCount(int styleIndex, bool isFallback = false) const;
112 SkTypeface_OHOS* getTypeface(int styleIndex, int index, bool isFallback = false) const;
113 SkTypeface_OHOS* getTypeface(int styleIndex, const SkFontStyle& style,
DSkFontStyleSet_ohos.h27 int styleIndex = 0; // the index of the font style set variable
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()
/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/flutter/skia/gm/
Dinversepaths.cpp108 for (size_t styleIndex = 0; styleIndex < SK_ARRAY_COUNT(styles); variable
109 styleIndex++) {
122 paint.setStyle(styles[styleIndex].fPaintStyle);
123 paint.setPathEffect(styles[styleIndex].fPathEffect);
/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.java2413 for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { in TestGreek()
2416 … MeasureFormat fmt = MeasureFormat.getInstance(new ULocale(locales[locIndex]), styles[styleIndex]); in TestGreek()
2420 + ", style: " + styles[styleIndex] in TestGreek()
/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/icu4c/source/test/intltest/
Dtufmtts.cpp381 for ( unsigned int styleIndex = 0; in testGreekWithFallback() local
382 styleIndex < UPRV_LENGTHOF(styles); in testGreekWithFallback()
383 ++styleIndex ) { in testGreekWithFallback()
398 … LocalPointer<TimeUnitFormat> tfmt(new TimeUnitFormat(l, styles[styleIndex], status)); in testGreekWithFallback()
427 …ocale: " + UnicodeString(locales[locIndex]) + " style: " + (int)styles[styleIndex] + " units: " + … in testGreekWithFallback()
Dmeasfmttest.cpp3275 for ( int32_t styleIndex = 0; styleIndex < UPRV_LENGTHOF(styles); ++styleIndex ) { in TestGreek() local
3281 MeasureFormat fmt(locales[locIndex], styles[styleIndex], status); in TestGreek()
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch75885 + * \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,
[all …]