Почему мой файл SVG не использует мой файл шрифта? ⇐ CSS
-
Anonymous
Почему мой файл SVG не использует мой файл шрифта?
I have this SVG file in the same directory as this font's TTF file.
@font-face { font-family: "easyPrint"; src: url('./easy-print.regular.ttf'); } TEST TEST When I do this, I get two different fonts. The one that should be my custom font is the same font you see if you give it gibberish for a font-family. Which is different from the default.
I've tried with an OTF file as well. The specific font isn't important. I'm just trying to produce a bunch of SVG images of text with a specific font.
Источник: https://stackoverflow.com/questions/710 ... -font-file
I have this SVG file in the same directory as this font's TTF file.
@font-face { font-family: "easyPrint"; src: url('./easy-print.regular.ttf'); } TEST TEST When I do this, I get two different fonts. The one that should be my custom font is the same font you see if you give it gibberish for a font-family. Which is different from the default.
I've tried with an OTF file as well. The specific font isn't important. I'm just trying to produce a bunch of SVG images of text with a specific font.
Источник: https://stackoverflow.com/questions/710 ... -font-file
Мобильная версия