On 10/23/18 7:23 PM, Jean-Marc Lasgouttes wrote: > Le 18/10/2018 à 02:36, Richard Kimberly Heck a écrit : >> The font in superscripts and subscripts looks to me to be the same size >> as that of the normal text, when it ought to be smaller. I had a look >> into this, and I can't see where the font size is set. Help? (We set the >> font STYLE here, but where is that supposed to make a difference?) > > I would look at FontInfo::realSize() and how it is used (or not) in > GuiFontLoader.
I believe I have tracked down the problem. When we calculate the row metrics in breakRow, the font isn't set properly. The TextMetrics at that point has the right font info, but it doesn't seem to be picked up when the FontIterator is created in breakRow. If I'm following the code right, the font in the FontIterator is set from displayFont, but that makes no use of the information about the font that's in the TextMetrics. Rather, it gets the font from the paragraph and the layout. Which is just the normal font, in this case. I'm afraid I have no idea how to fix this. Riki