InsetMathKern is also used for non-mu lengths.
Generalise the fix by moving to Length::inPixels (thanks Jaan-Marc).
int Length::inPixels(MetricsBase const & base) const
{
int Length::inPixels(MetricsBase const & base) const
{
- return inPixels(base.textwidth, theFontMetrics(base.font).em());
+ FontInfo fi = base.font;
+ if (unit_ == Length::MU)
+ fi.setFamily(SYMBOL_FAMILY);
+ return inPixels(base.textwidth, theFontMetrics(fi).em());
{
dim.asc = 0;
dim.des = 0;
{
dim.asc = 0;
dim.des = 0;
- // match em value used in mathed_*muskip
- FontInfo const oldfont = mi.base.font;
- mi.base.font.setFamily(SYMBOL_FAMILY);
dim.wid = wid_.inPixels(mi.base);
dim.wid = wid_.inPixels(mi.base);
- mi.base.font = oldfont;