Skip to content

grid stringHeight

2 messages · Paul Murrell, Baptiste Auguie

#
Hi

This is a basic "feature" of both strheight() and stringHeight().  They 
both ignore any descenders in the text.  I cannot remember why it was 
done this way originally.  The future solution is probably to add an 
argument that allows descenders to be included in text height.

Plotmath works on bounding boxes so its behaviour is different, but of 
course that has its own problems because there is no sense of "baseline" 
for expressions.

Paul
On 27/04/2011 11:06 a.m., baptiste auguie wrote:

  
    
#
Hi,

I see, thanks. I incorrectly thought it used to produce the same
output in the past.
As a workaround I will wrap all strings in expression() before
evaluating the grobHeight; otherwise the calculated layout can clip
portions of the text.

Thanks,

baptiste
On 2 May 2011 15:00, Paul Murrell <p.murrell at auckland.ac.nz> wrote: