On Sun, Sep 02, 2007 at 04:08:28PM +0200, Abdelrazak Younes wrote:
> Could someone please elaborate on what is the purpose of this?
> 
> Abdel.

Yes... this is how the text inside an inset receives the font from the
surrounding textinset (as defined in its metrics info). Look at
InsetText.cpp and the definition of applyOuterFont.

Don't be shy... I also tried to remove text_...

As Alfredo said, Welcome to the restaurant at the end of the milky way!

- Martin
 
> [EMAIL PROTECTED] wrote:
> >Author: younes
> >Date: Sun Sep  2 16:05:03 2007
> >New Revision: 20001
> >
> >URL: http://www.lyx.org/trac/changeset/20001
> >Log:
> >Add a FIXME for Text::font_ member.
> >
> >Modified:
> >    lyx-devel/trunk/src/Text.h
> >
> >Modified: lyx-devel/trunk/src/Text.h
> >URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/Text.h?rev=20001
> >==============================================================================
> >--- lyx-devel/trunk/src/Text.h (original)
> >+++ lyx-devel/trunk/src/Text.h Sun Sep  2 16:05:03 2007
> >@@ -295,8 +295,12 @@
> >     ///
> >     ParagraphList pars_;
> > 
> >+    /// FIXME: this font_ member has nothing to do here!
> >+    /// It is used in applyOuterFont() and setCharFont() for reasons 
> >+    /// that are not clear... to hand hand the outermost language and
> >+    /// also for char style apparently.
> >     /// our 'outermost' font. This is handed down from the surrounding
> >-    // inset through the pi/mi parameter (pi.base.font)
> >+    /// inset through the pi/mi parameter (pi.base.font)
> >     Font font_;
> > 
> >     ///
> >
> >
> >
> 

Reply via email to