summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/minikin/FontFamily.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/minikin/FontFamily.cpp b/libs/minikin/FontFamily.cpp
index ab6ba20..f688a33 100644
--- a/libs/minikin/FontFamily.cpp
+++ b/libs/minikin/FontFamily.cpp
@@ -141,11 +141,11 @@ static int computeMatch(FontStyle style1, FontStyle style2) {
}
static FontFakery computeFakery(FontStyle wanted, FontStyle actual) {
- // If desired weight is bold or darker, and 2 or more grades higher
- // than actual (for example, medium 500 -> bold 700), then select
- // fake bold.
+ // If desired weight is semibold or darker, and 2 or more grades
+ // higher than actual (for example, medium 500 -> bold 700), then
+ // select fake bold.
int wantedWeight = wanted.getWeight();
- bool isFakeBold = wantedWeight >= 7 && (wantedWeight - actual.getWeight()) >= 2;
+ bool isFakeBold = wantedWeight >= 6 && (wantedWeight - actual.getWeight()) >= 2;
bool isFakeItalic = wanted.getItalic() && !actual.getItalic();
return FontFakery(isFakeBold, isFakeItalic);
}