diff options
author | hdu <duerr@sun.com> | 2009-12-07 09:43:27 +0100 |
---|---|---|
committer | hdu <duerr@sun.com> | 2009-12-07 09:43:27 +0100 |
commit | d5adb4b029ec99f46c114f238bdd5ebc5c2d768f (patch) | |
tree | acfc666968612f85f4e2d2ca5cb42a33da2dc0c2 /vcl/source | |
parent | a79c517a0ca64c79b3b2694b19b28b81dec2346e (diff) |
#i107415# fix caching problem for big-sized graphite fonts (thanks kstribley!)
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/glyphs/graphite_layout.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index 86dee2749efa..c09062108dda 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -720,6 +720,7 @@ bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, gr::Segment * pSegment) #ifdef GRCACHE_REUSE_VECTORS // if we have an exact match, then we can reuse the glyph vectors from before if (pSegRecord && (pSegRecord->glyphs().size() > 0) && + (pSegRecord->fontScale() == mfScaling) && !(SAL_LAYOUT_FOR_FALLBACK & rArgs.mnFlags) ) { mnWidth = pSegRecord->width(); @@ -765,7 +766,8 @@ bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, gr::Segment * pSegment) !(SAL_LAYOUT_FOR_FALLBACK & rArgs.mnFlags)) { pSegRecord->setGlyphVectors(mnWidth, mvGlyphs, mvCharDxs, - mvChar2BaseGlyph, mvGlyph2Char); + mvChar2BaseGlyph, mvGlyph2Char, + mfScaling); } #endif #endif |