diff options
author | Andrew Dolgov <[email protected]> | 2019-07-29 14:17:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-07-29 14:17:43 +0300 |
commit | 4d108431dd6527266a94ef731603d39d4758e621 (patch) | |
tree | 0b95b33bf27532a64d151f34703295938b7abb4f /css | |
parent | d414aa5084a05d92209781a602efbf520ebf10e3 (diff) |
add some placeholder stuff for ttf files
Diffstat (limited to 'css')
-rw-r--r-- | css/reader.css | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/css/reader.css b/css/reader.css index 196f747..2778094 100644 --- a/css/reader.css +++ b/css/reader.css @@ -13,20 +13,28 @@ a:focus { text-decoration: underline; } +/* ugly hack: this assumes default prefix used for epube - /books/ + * since CSS is loaded inline, relative urls won't work properly so + * it's hardcoded for the time being (the alternative is pointing to + * website root) */ + +/* fonts below are freely available although license is likely proprietary + * so i'm not bundling the files */ + @font-face { font-family: Caecilia; - src: local('PMN Caecilia 55'); + src: local('PMN Caecilia 55'), url('/books/lib/fonts/pmn-caecilia-55.ttf') format('truetype'); font-weight : normal; } @font-face { font-family: Caecilia; - src: local('PMN Caecilia 75'); + src: local('PMN Caecilia 75'), url('/books/lib/fonts/pmn-caecilia-75.ttf') format('truetype'); font-weight : bold; } @font-face { font-family: Caecilia; - src: local('PMN Caecilia 56'); + src: local('PMN Caecilia 56'), url('/books/lib/fonts/pmn-caecilia-56.ttf') format('truetype'); font-style : italic; } |