Windows 10 bereikte EO (einde ondersteuning) op 14 oktober 2025. Als je Windows 10 gebruikt, lees dan dit artikel.

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

Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

Font in svg file

  • 6 antwoorden
  • 3 hebben dit probleem
  • 97 weergaven
  • Laatste antwoord van gehwissenlos

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

Gekozen oplossing

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

Thanks for your help. Manuel

Dit antwoord in context lezen 👍 0

Alle antwoorden (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)

Bewerkt door cor-el op

@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:

Gekozen oplossing

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

Thanks for your help. Manuel