Почему мой файл SVG не использует мой файл шрифта?CSS

Разбираемся в CSS
Ответить
Anonymous
 Почему мой файл SVG не использует мой файл шрифта?

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»