Index: src/pdf/SkPDFFont.cpp |
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp |
index 0fce0b98d6d757e195c2a9648464ebcfd9a5f104..f088ed5941d1e0e026cb4e2cdb030f2c5c358488 100644 |
--- a/src/pdf/SkPDFFont.cpp |
+++ b/src/pdf/SkPDFFont.cpp |
@@ -1137,13 +1137,11 @@ bool SkPDFCIDFont::populate(const SkPDFGlyphSet* subset) { |
sk_sp<SkPDFArray> widths(composeAdvanceData( |
fontInfo()->fGlyphWidths, fontInfo()->fEmSize, &appendWidth, |
&defaultWidth)); |
- if (widths->size()) |
+ if (widths->size()) { |
this->insertObject("W", std::move(widths)); |
- if (defaultWidth != 0) { |
- this->insertScalar( |
- "DW", |
- scaleFromFontUnits(defaultWidth, fontInfo()->fEmSize)); |
} |
+ this->insertScalar( |
+ "DW", scaleFromFontUnits(defaultWidth, fontInfo()->fEmSize)); |
} |
if (!fontInfo()->fVerticalMetrics.empty()) { |
struct SkAdvancedTypefaceMetrics::VerticalMetric defaultAdvance; |