# Fonts in SVG icons

**URL:** <https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653>\
**Category:** Development\
**Created:** [December 23, 2024, 8:44pm UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653 "2024-12-23T20:44:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 23, 2024, 8:44pm UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/1 "2024-12-23T20:44:56Z")

</div>

This one is mainly for @matterhorn103 at some point.

I get the following message on launch on Mac or Windows:

```auto
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. 🙂

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 23, 2024, 9:32pm UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/2 "2024-12-23T21:32:26Z")

</div>

I would beg to differ, I think 0.2 ms is a long time for something that doesn’t need to be happening 😅

> [@ghutchis](#):
>
> Is there some way we can convert the Å character to an SVG outline / path so it’s not asking for a font?

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.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 24, 2024, 1:03am UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/3 "2024-12-24T01:03:43Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 24, 2024, 3:59pm UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/4 "2024-12-24T15:59:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Smith\_Joy](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/smith_joy/32/3580_2.png) [@Smith\_Joy](https://discuss.avogadro.cc/u/Smith_Joy)\
**Post date:** [September 30, 2026, 7:03am UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/5 "2026-09-30T07:03:25Z")

</div>

SVG icons with embedded fonts can be tricky, If the font isn’t available on the viewer’s system, the rendering falls back silently and breaks the design. Best approach is converting text to paths before exporting, eliminates the dependency entirely.  
For anyone experimenting with creative text outside of SVG, Glitch Text Generator is worth exploring.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [October 19, 2026, 12:28pm UTC](https://discuss.avogadro.cc/t/fonts-in-svg-icons/6653/7 "2026-10-19T12:28:49Z")

</div>

Closed on October 19, 2026, 12:28pm UTC


