mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
f6b0d02f88
commit
0666855b72
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user