Home
last modified time | relevance | path

Searched refs:dstWeight (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/src/ports/skia_ohos/
DFontConfig_ohos.cpp275 int dstWeight = dstStyle.weight(); in getFontStyleDifference() local
286 if ((dstWeight == SkFontStyle::kNormal_Weight && srcWeight == SkFontStyle::kMedium_Weight) || in getFontStyleDifference()
287 (dstWeight == SkFontStyle::kMedium_Weight && srcWeight == SkFontStyle::kNormal_Weight)) { in getFontStyleDifference()
289 } else if (dstWeight <= SkFontStyle::kNormal_Weight) { in getFontStyleDifference()
290 if (srcWeight <= dstWeight) { in getFontStyleDifference()
291 weightDiff = dstWeight - srcWeight; in getFontStyleDifference()
293 weightDiff = srcWeight - dstWeight + 500; in getFontStyleDifference()
295 } else if (dstWeight > SkFontStyle::kNormal_Weight) { in getFontStyleDifference()
296 if (srcWeight >= dstWeight) { in getFontStyleDifference()
297 weightDiff = srcWeight - dstWeight; in getFontStyleDifference()
[all …]
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch76064 + int dstWeight = dstStyle.weight();
76067 + // If dstWeight == kNormal_Weight (400), first check kMedium_Weight (500), then smaller values,
76069 + // If dstWeight == kMedium_Weight, first check kNormal_Weight, then bigger values, and then sm…
76071 + // If dstWeight < kNormal_Weight, first check smaller values, then bigger values.
76072 + // If dstWeight > kNormal_Weight, first check bigger values, then smaller values.
76073 + // The maximum weight is kExtraBlack_Weight (1000), when dstWeight and srcWeight are at the di…
76075 + if ((dstWeight == SkFontStyle::kNormal_Weight && srcWeight == SkFontStyle::kMedium_Weight) ||
76076 + (dstWeight == SkFontStyle::kMedium_Weight && srcWeight == SkFontStyle::kNormal_Weight)) {
76078 + } else if (dstWeight <= SkFontStyle::kNormal_Weight) {
76079 + if (srcWeight <= dstWeight) {
[all …]