unrevert per-char metrics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-07 22:25:03 +00:00
parent f6b0d02f88
commit 0666855b72
2 changed files with 8 additions and 14 deletions

View File

@ -1,3 +1,9 @@
2002-09-07 John Levon <levon@movementarian.org>
* qfont_metrics.C: unrevert per-char metrics. Droppings
are better than entirely wrong metrics. Hopefully
Andre can fix it ...
2002-09-07 John Levon <levon@movementarian.org>
* qfont_loader.C: fix sizes for symbols etc.

View File

@ -43,29 +43,17 @@ int maxDescent(LyXFont const & f)
}
int ascent(char /*c*/, LyXFont const & f)
int ascent(char c, LyXFont const & f)
{
// LyX is broken - returning accurate metrics breaks mathed
// because the cursor extends outside of its region.
// http://marc.theaimsgroup.com/?l=lyx-devel&m=103060206211300&w=2
#if 0
QRect r = metrics(f).boundingRect(c);
return abs(r.top());
#endif
return metrics(f).ascent();
}
int descent(char /*c*/, LyXFont const & f)
int descent(char c, LyXFont const & f)
{
// LyX is broken - returning accurate metrics breaks mathed
// because the cursor extends outside of its region.
// http://marc.theaimsgroup.com/?l=lyx-devel&m=103060206211300&w=2
#if 0
QRect r = metrics(f).boundingRect(c);
return abs(r.bottom());
#endif
return metrics(f).descent();
}