Jean-Marc Lasgouttes wrote:

>>>>>> "Georg" == Georg Baum
>>>>>> <[EMAIL PROTECTED]>
>>>>>> writes:
> 
> Georg> Thanks for the hint, that was easy. The attached patch fixes
> Georg> the problem for lyxline insets (which is BTW now bug 2014:
> Georg> http://bugzilla.lyx.org/show_bug.cgi?id=2014).
> 
> Georg> OK to commit?
> 
> This looks good, although what is not really clear to me is whether
> the font will be correct when inherited from an environment (we had
> the OuterFont stuff for that, and it seems that andre `simplified'
> it).
> 
> Actually this is broken right now (try to nest an itemize layout in a
> theorem layout and see how the font is not emphasized),

Yes, I see that, too.

> but I suspect 
> special care is needed for lyxline too.

I believe that only local_font needs to be set correctly in
Paragraph::simpleTeXOnePar(), and that will take care of lyxline. We have
an outerfont argument to Paragraph::simpleTeXOnePar(), and from reading the
code that is used to construct the real font, but it does not seem to work.

I suggest to apply the patch and that somebody else fixes the outerfont
problem afterwards, because I don't know the font stuff well enough. I'll
create a bugzilla entry for that.

OK?


Georg

Reply via email to