Skip to content

italic (PR#7932)

2 messages · Brian Ripley, Gabor Grothendieck

#
On Wed, 15 Jun 2005 ligges at statistik.uni-dortmund.de wrote:

            
I don't think that is true: plotmath uses the same 5 fontfaces as any 
other form of graph annotation.  The reason was staring Grothendieck
in the face: the code is

static BBOX RenderNumber(SEXP expr, int draw, mathContext *mc,
 			 R_GE_gcontext *gc, GEDevDesc *dd)
{
     BBOX bbox;
     FontType prevfont = SetFont(PlainFont, gc);
     bbox = RenderStr(CHAR(asChar(expr)), draw, mc, gc, dd);
     SetFont(prevfont, gc);
     return bbox;
}

so it is by design.  Numeric constants are always in PlainFont.
(We do ask people to actually do the thinking before posting a bug 
report.)
#
On 6/15/05, ripley at stats.ox.ac.uk <ripley at stats.ox.ac.uk> wrote:
What is the rationale this?