HTML and CSS Reference
In-Depth Information
USE DIFFERENT SELECTORS AND FONT SUBSETS
FOR APPLYING FONT FEATURES
Yo u ' l l p r of b a b l y n of t w a n t t of u s e a d v a n c e d f of n t f e a t u r e s of n a l l of f y of u r t y p e . I t w of u l d
just be overkill! Most likely, you'll just apply such features to headings, single
characters, or small strings of characters near the start or end of your lines of text.
In addition, you could consider using a subset of your fonts that just contains
the font features you want to style your headings and other text elements. This
will reduce bandwidth as well:
h1, .flourish {
font-family: 'my posh font subset', fallback, fallback;
-webkit-font-feature-settings: “dlig” 1, “swsh” 1;
-moz-font-feature-settings: “ dlig=1, swsh=1”;
-ms-font-feature-settings: “dlig” 1, “swsh” 1;
}
 
Search WWH ::




Custom Search