СообЧа > База Знаний > Интернет > Веб-строительство

Вопрос

Как подгружать «нестандартный» шрифт посетителю сайта?

Ответ

C помощью CSS можно объявить свой шрифт:

@font-face { font-family: my-font; src:url(http://mysite.ru/my-font.ttf);}

или

src: url(../Ovr3/goudyst0.ttf)

Shemyakin Dmitry

Вот что на этот счет говорит CSS2 reference:

The user agent will recognize the name of font formats that it supports, and will avoid downloading fonts in formats that it does not recognize.
An initial list of format strings defined by this specification and representing formats likely to be used by implementations on various platforms is:

truedoc-pfr — TrueDoc Portable Font Resource — .pfr
embedded-opentype — Embedded OpenType — .eot
type-1 — PostScript Type 1 — .pfb, .pfa
truetype — TrueType — .ttf
opentype — OpenType, including TrueType Open — .ttf
truetype-gx — TrueType with GX extensions
speedo — Speedo
intellifont — Intellifont


Максим



Copyright © 2000-2004 Сообщество Чайников
Контактная информация