From 339ac3d0a7650c98de35afbcff4ac1d5b47199c0 Mon Sep 17 00:00:00 2001 From: "vandebo@chromium.org" Date: Mon, 9 May 2011 17:36:36 +0000 Subject: [PATCH] [PDF] (regression) Update font if size changes. Review URL: http://codereview.appspot.com/4532044 git-svn-id: http://skia.googlecode.com/svn/trunk@1279 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/pdf/SkPDFDevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index ec344c1db5..2d4f0fbac4 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1216,6 +1216,7 @@ void SkPDFDevice::populateGraphicStateEntryFromPaint( void SkPDFDevice::updateFont(const SkPaint& paint, uint16_t glyphID) { SkTypeface* typeface = paint.getTypeface(); if (fCurrentContentEntry->fState.fFont == NULL || + fCurrentContentEntry->fState.fTextSize != paint.getTextSize() || !fCurrentContentEntry->fState.fFont->hasGlyph(glyphID)) { int fontIndex = getFontResourceIndex(typeface, glyphID); fCurrentContentEntry->fContent.writeText("/F");