Vetpetmon-Labs / SNAZpedia-Issue-Tracker

Issue Tracker for SNAZpedia, also serves as an addon repository for the website
https://wiki.vetpetmon.com/
0 stars 0 forks source link

Fonts for SVGs do not load on other computers #2

Closed Vetpetmon closed 2 years ago

Vetpetmon commented 2 years ago

The fonts used in the site's system SVGs are not present on many devices, leading to it defaulting to Times New Roman. It breaks some text formatting.

Proposed solution: Host the TTF font(s) on SNAZpedia itself to avoid missing fonts.

Vetpetmon commented 2 years ago

We have a workaround! Since Mediawiki won't let us @font-face our way through this hot nonsense, I've compiled a solid workaround for this issue:

Inkscape has a "Object to Path" function in Path > Object to Path. Click/select the text element and run this function. The text gets turned into multiple paths built directly into the SVG file. It does add to the file size, but I'm sure the extra kilobytes won't hurt our bandwidth.

While we can't provide a CSS font-face fix to this issue, it can be worked around. We'll see if things get fixed over time. For now, all SVG files with text elements have been converted into paths.

I'm leaving this open so that way this shows up when we pin it. Please refer to this issue (#2) when making SVGs with text elements.

Thank you. -Iké, site administrator

Vetpetmon commented 2 years ago

No need to keep this open, it's pinned and pinned issues can be closed, as we found out by closing #1 twice.