SkPDF to use aliased em bounds.

This restores previous behavior and works around a chromium issue.
The underlying issue in DirectWrite will need to be worked around
as well.

Bug: chromium:926885

Change-Id: I6a6cbd04db66066ad258df62d3c9fc8056c33c7f
Reviewed-on: https://skia-review.googlesource.com/c/189167
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2019-02-04 11:09:02 -05:00 committed by Skia Commit-Bot
parent da85a1068c
commit 92170de803

View File

@ -34,6 +34,7 @@
SkExclusiveStrikePtr SkPDFFont::MakeVectorCache(SkTypeface* face, int* size) {
SkFont font;
font.setHinting(kNo_SkFontHinting);
font.setEdging(SkFont::Edging::kAlias);
font.setTypeface(sk_ref_sp(face));
int unitsPerEm = face->getUnitsPerEm();
if (unitsPerEm <= 0) {