Using >= misses some Chromium test cases that are still
being rendered as paths.
BUG=chromium:467569
Review URL: https://codereview.chromium.org/
1202433002
// make textblob
// Text so large we draw as paths
SkPaint paint;
- paint.setTextSize(384);
+ paint.setTextSize(385);
const char* text = "O";
sk_tool_utils::set_portable_typeface(&paint);
SkScalar scaledTextSize = maxScale*skPaint.getTextSize();
// Hinted text looks far better at small resolutions
// Scaling up beyond 2x yields undesireable artifacts
- if (scaledTextSize < kMinDFFontSize || scaledTextSize >= kLargeDFFontLimit) {
+ if (scaledTextSize < kMinDFFontSize || scaledTextSize > kLargeDFFontLimit) {
return false;
}