Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Font in svg file

  • 6 trả lời
  • 3 gặp vấn đề này
  • 54 lượt xem
  • Trả lời mới nhất được viết bởi gehwissenlos

more options

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

Giải pháp được chọn

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

Thanks for your help. Manuel

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (6)

more options

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

more options

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)

more options

Được chỉnh sửa bởi cor-el vào

more options

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

more options

See also:

more options

Giải pháp được chọn

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

Thanks for your help. Manuel