On Mon, 2006-02-20 at 14:49 +0100, [EMAIL PROTECTED] wrote:
> http://bugzilla.lyx.org/show_bug.cgi?id=2308
> 
> [EMAIL PROTECTED] changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |[EMAIL PROTECTED]
> 
> 
> 
> ------- Additional Comments From [EMAIL PROTECTED]  2006-02-20 14:49 -------
> The problem is in LyXText::applyOuterFont. After that has been called by 
> rowpainter::paintFromPos, the font family is wrong. Note that the following 
> change fixes the problem in the main text:
> 
> Index: src/rowpainter.C
> ===================================================================
> --- src/rowpainter.C  (Revision 13257)
> +++ src/rowpainter.C  (Arbeitskopie)
> @@ -306,7 +306,8 @@
>  {
>       pos_type const pos = text_.bidi.vis2log(vpos);
>       LyXFont orig_font = text_.getFont(par_, pos);
> -     text_.applyOuterFont(orig_font);
> +     if (!text_.isMainText())
> +             text_.applyOuterFont(orig_font);
>  
>       double const orig_x = x_;
> 
> However, contrary to 1.3, the insets (e.g. footnotes) do not inherit the 
> default font, so there is probably something wrong with applyOuterFont in 
> general.
> 
> Martin, I hope you don't mind if I invite you to the party as special 
> guest ;-)

Hmmm yes. I know.

I believe you should try to dump the applyOuterFont call completely from
rowpainter. I believe at least that call to be inappropriate (though I
put it there :-( )

- Martin

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to