|
发表于 2004-12-16 22:05:36
|
显示全部楼层
对否?
[code:1]--- kdelibs-3.3.2/khtml/rendering/font.cpp 2004-11-28 12:30:53.000000000 -0500
+++ kdelibs-3.3.2-new/khtml/rendering/font.cpp 2004-12-16 21:23:36.052694664 -0500
@@ -403,8 +403,8 @@
const int thickness = fm.height() > 20 ? fm.lineWidth() : 1;
const QBrush brush = pt->pen().color();
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + baseline ) / 2;
- if (underlineOffset <= baseline) underlineOffset = baseline+1;
+ int underlineOffset = ( fm.height() + baseline ) / 2+1;
+ if (underlineOffset <= baseline) underlineOffset = baseline+2;
pt->fillRect(_tx, _ty + underlineOffset, width + 1, thickness, brush );
}
--- kdelibs-3.3.2/khtml/rendering/render_line.cpp 2004-11-28 12:30:54.000000000 -0500
+++ kdelibs-3.3.2-new/khtml/rendering/render_line.cpp 2004-12-16 21:31:17.469548640 -0500
@@ -598,8 +598,8 @@
if (!parent())
object()->getTextDecorationColors(deco, underline, overline, linethrough);
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + m_baseline ) / 2;
- if (underlineOffset <= m_baseline) underlineOffset = m_baseline+1;
+ int underlineOffset = ( fm.height() + m_baseline ) / 2+1;
+ if (underlineOffset <= m_baseline) underlineOffset = m_baseline+2;
pI.p->fillRect(_tx, _ty + underlineOffset, w, thickness, underline );
}
[/code:1] |
|