Join us to show up for other Firefox users 🦊. Earn fun badges and Mozilla swag vouchers! Find out more: https://mzl.la/askafox150

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Font in svg file

  • 6 odpowiedzi
  • 3 osoby mają ten problem
  • 123 wyświetlenia
  • Ostatnia odpowiedź od gehwissenlos
  • Rozwiązane

I create a svg file with php which includes a dynamic text. Therefore I have embedded the used font with <glyph>.... This works fine with Chrome, but Firefox uses the standard font. How can I use an embedded font in the svg file?

Thanks in advance Manuel

I create a svg file with php which includes a dynamic text. Therefore I have embedded the used font with <font><font-face><glyph>.... This works fine with Chrome, but Firefox uses the standard font. How can I use an embedded font in the svg file? Thanks in advance Manuel

Wybrane rozwiązanie

Firefox can't handle two different fonts in one svg file. That was the problem.

Thanks for your help. Manuel

Przeczytaj tę odpowiedź w całym kontekście 👍 0

Wszystkie odpowiedzi (6)

As firefox supports HTML 5 so recreate the file with with proper codings.

Can you link to a page demonstrating the issue?

The MDN documentation on glyph is here: https://developer.mozilla.org/docs/Web/SVG/Element/glyph (I don't see any unusual warnings)

Zmodyfikowany przez cor-el w dniu

@Sourjobraato Banerjee: Sorry, I didn't get your point. The file was created by Adobe Illsutrator so it should be SVG 1.1 conform.

@jscher2000: You can see an example here: http://events.tsv-bodnegg.de/files/header.php?text=Example The text "example" shout be shown in Roboto.

@core-el: The docs say that is not implemented (https://developer.mozilla.org/en-US/docs/SVG_in_Firefox) but the tutorial (https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_fonts) says it should work.

I have an image attached. It should look like the chrome version.

See also:

Wybrane rozwiązanie

Firefox can't handle two different fonts in one svg file. That was the problem.

Thanks for your help. Manuel