[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/ksvg/core
From: Rob Buis <rwlbuis () xs4all ! nl>
Date: 2003-09-28 10:01:11
[Download RAW message or body]
CVS commit by buis:
Fix for anchor + text decorations. Can probably be cleaned up more...
M +3 -3 CanvasItems.cpp 1.22
--- kdegraphics/ksvg/core/CanvasItems.cpp #1.21:1.22
@@ -339,8 +339,8 @@ void CanvasText::createGlyphs(KSVGTextCh
// Underline and overline have to be drawn before the glyphs are \
rendered
if(style->getAttribute("text-decoration") == "underline" && \
!params->tb())
- addTextDecoration(style, glyph->bboxX(), (cury + \
(glyph->underlinePosition() - glyph->pixelBaseline())), + \
addTextDecoration(style, glyph->bboxX() - anchor, (cury + (glyph->underlinePosition() \
- glyph->pixelBaseline())),
glyph->width(), \
glyph->underlineThickness());
else if(style->getAttribute("text-decoration") == "overline" && \
!params->tb())
- addTextDecoration(style, glyph->bboxX(), (cury + \
(glyph->overlinePosition() - glyph->pixelBaseline())), + \
addTextDecoration(style, glyph->bboxX() - anchor, (cury + (glyph->overlinePosition() \
- glyph->pixelBaseline())),
glyph->width(), \
glyph->underlineThickness());
@@ -359,5 +359,5 @@ void CanvasText::createGlyphs(KSVGTextCh
// Line-through has to be drawn after the glyphs are rendered
if(style->getAttribute("text-decoration") == "line-through" && \
!params->tb())
- addTextDecoration(style, glyph->bboxX(), (cury + \
(glyph->strikeThroughPosition() - glyph->pixelBaseline())), glyph->width(), \
glyph->underlineThickness()); + addTextDecoration(style, \
glyph->bboxX() - anchor, (cury + (glyph->strikeThroughPosition() - \
glyph->pixelBaseline())), glyph->width(), glyph->underlineThickness());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic