Fixup 1d637b8a: do not set extra spacing for typewriter

This messed up rows with both normal and typewriter fonts.
This commit is contained in:
Jean-Marc Lasgouttes 2023-05-23 09:20:52 +02:00
parent ba659d0cfd
commit 3895c79879

View File

@ -61,7 +61,7 @@ int Row::Element::expansionAmount() const
void Row::Element::setExtra(double extra_per_em)
{
if (type != STRING)
if (type != STRING || font.fontInfo().family() == TYPEWRITER_FAMILY)
return;
extra = extra_per_em * theFontMetrics(font).em();
}