On Tue, Mar 13, 2007 at 10:53:02PM -0400, Bennett Helm wrote:
> On Mar 13, 2007, at 7:45 PM, Jan Peters wrote:
> 
> > Dear Bennet,
> >
> > I had a discussion with Uwe on the fonts for
> > parantheses, see
> >
> > http://bugzilla.lyx.org/show_bug.cgi?id=3330
> >
> > He told me that the parentheses/vec look much better
> > on his Windows computer and I wanted to check with you
> > whether you have any ideas here. Do I need better fonts?
> > Do you have nicer fonts? For screenshots check the URL
> > above!
> 
> Jan -
> 
> It must be something about the way Qt/Mac renders the fonts. I've  
> substituted the BaKoMa fonts that the Windows version of LyX uses for  
> the LaTeX .pfb fonts used in Mac, and I can't see any difference.  
> (Now maybe I've messed something up. What I did was to copy the  
> BaKoMa fonts from lyx-devel/development/Win32/packaging to / 
> Applications/LyX.app/Contents/Resources/Fonts, and reconfigure and  
> restart LyX.) I'm attaching two screenshots, one from each.
> 
> Does anyone have suggestions?

Maybe LyX displaces too much super and subscripts, such that \left
and \right delimiters are higher than necessary.
I really don't care, but does the attached patch give a less uglier
aspect in those cases? BTW, I think that with this patch the aspect
on screen is closer to the dvi output.

-- 
Enrico
Index: src/mathed/InsetMathScript.C
===================================================================
--- src/mathed/InsetMathScript.C        (revision 17442)
+++ src/mathed/InsetMathScript.C        (working copy)
@@ -203,13 +203,13 @@ int InsetMathScript::nwid() const
 
 int InsetMathScript::nasc() const
 {
-       return nuc().size() ? nuc().ascent() : 5;
+       return nuc().size() ? (3 * nuc().ascent()) / 4 : 5;
 }
 
 
 int InsetMathScript::ndes() const
 {
-       return nuc().size() ? nuc().descent() : 0;
+       return nuc().size() ? (3 * nuc().descent()) / 4 : 0;
 }
 
 

Reply via email to