UNPKG

@readium/css

Version:

A set of reference stylesheets for EPUB Reading Systems

47 lines (38 loc) 1.21 kB
/* Readium CSS Fonts module A stylesheet for embedded fonts Repo: https://github.com/readium/css */ /* /!\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */ @font-face { font-family: AccessibleDfA; src: local("AccessibleDfA"), url("fonts/AccessibleDfA-Regular.woff2") format("woff2"), url("fonts/AccessibleDfA-Regular.woff") format("woff"); font-weight: normal; font-style: normal; } @font-face { font-family: AccessibleDfA; src: local("AccessibleDfA"), url("fonts/AccessibleDfA-Bold.woff2") format("woff2"); font-weight: bold; font-style: normal; } @font-face { font-family: AccessibleDfA; src: local("AccessibleDfA"), url("fonts/AccessibleDfA-Italic.woff2") format("woff2"); font-weight: normal; font-style: italic; } @font-face { font-family: "IA Writer Duospace"; src: local("iAWriterDuospace-Regular"), url("fonts/iAWriterDuospace-Regular.ttf") format("truetype"); font-weight: normal; font-style: normal; } /* If you have different weights/styles, use `font-weight` and `font-style`, not prefixes in the font-family name, or else it will be a nightmare to manage in user settings. */