Forum Replies Created
- AuthorPosts
-
jukka-k.-korpela
ParticipantThe Google code you use declares regular, italic, bold, and bold italic typeface (specific font) as members of the font (font family) “Ubuntuâ€. This implies that you use italic and bolding just as you do when using normal fonts.
You can use
font-style: italic
to request for italic typeface andfont-weight: bold
(or, equivalently,font-weight: 700
) to request bolding. Note that many HTML elements imply italic or bold by default; for example,h1
,strong
, andth
elements implyfont-weight: bold
.There are other ways of using
@font-face
so that each typeface is declared as a font family of its own; FotSquirrel does that. But the approach applied by Google is more logical and compatible with the way fonts are generally used in HTML and in CSS. - AuthorPosts