The style for the calltip participates in calculating the line height in ViewStyle::Refresh(). Hence, choosing a taller font for the calltip results in an unnecessary increased line height.
I've modified ViewStyle::Refresh() to skip creating the font for the calltip style before determining the line height, but create it afterwards. Please see the attached file ViewStyle.cxx.
This would be simpler and clearer inserted into
FindMaxAscentDescentby changing its loop into looping over the indices ofstylesand ignoringStyleCallTip.So, you'd prefer this approach?
IMHO, it has the drawback of both having to look up the font in the
FontMapand the same font will be found multiple times for styles using the same font.Last edit: Markus Nißl 2022-07-22
Styles are alsoFontMeasurementsso use theascentanddescentfrom theStyle.This should be it then 😁
Committed as [f7eeee] with change to
size_tto avoid warning.Related
Commit: [f7eeee]
Thank you very much 👍🏻