Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Font in svg file

  • 6 பதிலளிப்புகள்
  • 3 இந்த பிரச்னைகள் உள்ளது
  • 10 views
  • Last reply by gehwissenlos

I create a svg file with php which includes a dynamic text. Therefore I have embedded the used font with <font><font><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 </font> </font>

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

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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

Thanks for your help. Manuel

Read this answer in context 👍 0

All Replies (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)

cor-el மூலமாக திருத்தப்பட்டது

@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 <font> 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. </font>

See also:

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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

Thanks for your help. Manuel