This one is mainly for @matterhorn103 at some point.
I get the following message on launch on Mac or Windows:
qt.qpa.fonts: Populating font family aliases took 186 ms. Replace uses of missing font
family "Inter" with one that exists to avoid this cost.
Well, yeah I don’t have the font “Inter” and I’ve been searching the code for a long time to figure out where it happens.
Because there’s no code that asks for “Inter” - any code that acts on fonts has some #ifdef
to work differently on Mac, Windows and Linux with common fonts.
It turns out the call for “Inter” is from the SVG icons - the measure light / dark icons. I don’t use Inkscape. Is there some way we can convert the Å character to an SVG outline / path so it’s not asking for a font?
In the broad scheme of things, 0.2 seconds isn’t a big deal, but I’m thinking more of the user questions.
I would beg to differ, I think 0.2 ms is a long time for something that doesn’t need to be happening
Almost certainly, I’ll sort it.
An easy option would just be to use "sans-serif"
as the font family but there’s a risk that people’s main system font doesn’t have the character, so better to use a path.
1 Like
Ok the actual icon itself had already had the text converted to a path!
There were some elements in the various different icons remaining from the creation process, back when I was reluctant to delete original assets in case I wanted to change them still. The text element in question was one of them.
I’ve now been through and got rid of all that unnecessary cruft, so that message should disappear once my PR is merged
1 Like
Perfect, that seems to have done the trick. (And ImgBot didn’t even show up to try to shrink the SVG further.)
I would beg to differ, I think 0.2 s is a long time for something that doesn’t need to be happening
Yes, but I was trying to be under-stated. Shaving off a bit here and a bit there, particularly on launch is always appreciated.
1 Like