From 93c493cfe2e8f982818fab1e8f6dc9194d5960ad Mon Sep 17 00:00:00 2001 From: weolar <405360001@qq.com> Date: Thu, 19 Nov 2020 16:13:29 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90pdf?= =?UTF-8?q?=E5=92=8C=E6=89=93=E5=8D=B0=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C?= =?UTF-8?q?=E5=8A=A0=E7=B2=97=E5=AD=97=E4=BD=93=E6=9C=AA=E8=A2=AB=E5=8A=A0?= =?UTF-8?q?=E7=B2=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/skia/src/pdf/SkPDFDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/skia/src/pdf/SkPDFDevice.cpp b/third_party/skia/src/pdf/SkPDFDevice.cpp index 422a895419..e6df8b8a56 100644 --- a/third_party/skia/src/pdf/SkPDFDevice.cpp +++ b/third_party/skia/src/pdf/SkPDFDevice.cpp @@ -60,7 +60,7 @@ static void emit_pdf_color(SkColor color, SkWStream* result) { static SkPaint calculate_text_paint(const SkPaint& paint) { SkPaint result = paint; - if (result.isFakeBoldText()) { + if (result.isFakeBoldText() || (result.getTypeface() && result.getTypeface()->isBold())) { SkScalar fakeBoldScale = SkScalarInterpFunc(result.getTextSize(), kStdFakeBoldInterpKeys, kStdFakeBoldInterpValues,