I'm looking at the MDC page for the @font-face CSS rule, but I don't get one thing. I have separate files for bold, italic and bold + italic, how can I embed all three files in one @font-face rule? For example, if I have: @font-face { font-family: "DejaVu Sans"; src: url("./fonts/DejaVuSans.ttf") format("ttf"); } strong { font-family: "DejaVu Sans"; font-weight: bold ; } The browser will not know what font to use for bold (because that files is DejaVuSansBold.ttf), so it will default to something I probably don't want. How can I tell the browser all the different variants I have for a certain font? Here I go answering my own question. The solution seems to be to add multiple @font-face rules, for example: @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans.ttf"); } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-Bold.ttf"); font-weight: bold; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-Oblique.ttf"); font-style: italic, oblique; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-BoldOblique.ttf"); font-weight: bold; font-style: italic, oblique ; } By the way, it would seem the Google Chrome doesn't know about the format("ttf") argument, so you might want to skip that. [edit - this answer was correct for the CSS2 spec. CSS3 only allows for one font-style rather than a comma-separated list. ] As of CSS3, the spec has changed, allowing for only a single font-style. A comma-separated list (per CSS2) will be treated as if it were normal and override any earlier (default) entry. This will make fonts defined in this way appear italic permanently. @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans.ttf"); } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-Bold.ttf"); font-weight: bold; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-Oblique.ttf"); font-style: italic; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-BoldOblique.ttf"); font-weight: bold; font-style: italic; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-Oblique.ttf"); font-style: oblique; } @font-face { font-family: "DejaVu Sans"; src: url("fonts/DejaVuSans-BoldOblique.ttf"); font-weight: bold; font-style: oblique ; } In most cases, italic will probably be sufficient and oblique rules won't be necessary if you take care to define whichever you will use and stick to it.','url':'http://stackoverflow.com/questions/2436749/how-to-add-multiple-font-files-for-the-same-font','og_descr':'I'm looking at the MDC page for the @font-face CSS rule, but I don't get one thing. I have separate files for bold, italic and bold + italic, how can I embed all three files in one @font-face rule?...
PT Sans. ParaType · SIL Open Font License, 1.1. PT Sans was developed for Normal 400 Italic Grumpy wizards make toxic brew for the evil Queen and Jack.
Open Sans Italic. Open Sans семейство состоит из 13 шрифты. Cобственный текст. Pазмер. очень маленький, маленький, средний.
На этой странице Вы можете скачать шрифт Open Sans Bold Italic версии Version 1.10, который относится к семейству Open Sans (начертание: Bold.
Начертания, входящие в состав архива со шрифтом: Regular, Light, Italic, Bold, ExtraBold, ExtraBoldItalic, Для установки русского шрифта Open Sans в операционную систему, скопируйте файлы из. Скачать шрифт Open Sans.
Русский / английский шрифт Open Sans полный комплект. 2013-07-09 // Автор: Андрей // Шрифты // Нет комментариев.
Скачать Open Sans for MAC/WINDOWS/LINUX Generate Cufón Fonts Open Sans Open Sans Semibold Italic. Open Sans Open Sans Extrabold Italic. Open.
Open Sans семейство состоит из 13 шрифты. Cобственный текст. Pазмер Ascender - Open Sans Extrabold Build 100. Полное имя.






Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type Light 300 Italic Grumpy wizards make toxic brew for the evil Queen and Jack.