![]() |
#1 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Declaring Different Versions of One Font
I'm making an ePub using the Vollkorn font, and I wound up deciding to use the semi-bold version instead of the bold version for my <strong> text, so I made my @font-face declarations as usual.
Code:
@font-face { src: url(../Vollkorn-Regular.ttf); font-family: "Vollkorn"; font-weight: normal; font-style: normal; font-stretch: normal; } @font-face { src: url(../Vollkorn-Italic.ttf); font-family: "Vollkorn"; font-weight: normal; font-style: italic; font-stretch: normal; } @font-face { src: url(../Vollkorn-SemiBold.ttf); font-family: "Vollkorn"; font-weight: bold; font-style: normal; font-stretch: normal; } @font-face { src: url(../Vollkorn-SemiBoldItalic.ttf); font-family: "Vollkorn"; font-weight: bold; font-style: italic; font-stretch: normal; } This is probably a very minor problem but I do want to get it cleared up. What's the best practices way to declare all these fonts and tell the <body> to use them to get rid of the error? Last edited by Rand Brittain; 09-27-2020 at 01:18 PM. |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,531
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Last edited by DNSB; 09-27-2020 at 02:29 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,958
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Okay, I guess I'll leave it at that.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Last try before declaring PW2 dead ? | Cmcm8319 | Kindle Developer's Corner | 18 | 08-03-2015 12:14 PM |
Declaring default values for columns | Snow Sciles | Library Management | 3 | 05-16-2014 07:33 AM |
Newbie: Sigil versions vs. OS versions? | bmwill | Sigil | 3 | 06-07-2013 09:40 PM |
Free (Kindle) Declaring Spinsterhood by Jamie Lynn Braziel | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-09-2011 06:07 PM |
Sur Amazon, des versions électroniques plus chères que les versions papier | IreneDelse | Amazon Kindle | 8 | 08-29-2008 08:35 AM |