Where are subscript/superscript offsets kept?

Discussion about writing code for Inkscape.
mathog
Posts: 82
Joined: Tue Feb 08, 2011 6:05 am

Where are subscript/superscript offsets kept?

Postby mathog » Thu Feb 02, 2012 6:55 am

Trying to work out one of the last bugs in the EMF output: superscripts/subscripts are drawn on the baseline and not the proper position.

This occurs in PrintEmfWin32::text. Font size is correct and is passed as

style->font_size.computed

Vertical kerning (or whatever this offset is called) is stored where?

Hopefully it is somewhere in SPStyle, as that is already passed in. If not the problem is above this method, since the x,y coordinates passed in are on the baseline.

Thanks.

mathog
Posts: 82
Joined: Tue Feb 08, 2011 6:05 am

Re: Where are subscript/superscript offsets kept?

Postby mathog » Fri Feb 03, 2012 2:59 am

Found it:

style->baseline_shift.computed


Return to “Programming”