[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
This commit is contained in:
parent
69d4ca32ec
commit
339ac3d0a7
@ -1216,6 +1216,7 @@ void SkPDFDevice::populateGraphicStateEntryFromPaint(
|
|||||||
void SkPDFDevice::updateFont(const SkPaint& paint, uint16_t glyphID) {
|
void SkPDFDevice::updateFont(const SkPaint& paint, uint16_t glyphID) {
|
||||||
SkTypeface* typeface = paint.getTypeface();
|
SkTypeface* typeface = paint.getTypeface();
|
||||||
if (fCurrentContentEntry->fState.fFont == NULL ||
|
if (fCurrentContentEntry->fState.fFont == NULL ||
|
||||||
|
fCurrentContentEntry->fState.fTextSize != paint.getTextSize() ||
|
||||||
!fCurrentContentEntry->fState.fFont->hasGlyph(glyphID)) {
|
!fCurrentContentEntry->fState.fFont->hasGlyph(glyphID)) {
|
||||||
int fontIndex = getFontResourceIndex(typeface, glyphID);
|
int fontIndex = getFontResourceIndex(typeface, glyphID);
|
||||||
fCurrentContentEntry->fContent.writeText("/F");
|
fCurrentContentEntry->fContent.writeText("/F");
|
||||||
|
Loading…
Reference in New Issue
Block a user