05-27-2010, 12:53 PM | #1 |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Basic CSS Font family question!
Hi,
If I call out: font family: Georgia,"Times New Roman", serif; My understanding is that if the system can find Georgia, it uses Georgia. If it can't find Georgia, it uses Times New Roman, and if it can't find THAT it defaults to whatever serif font it CAN find But I have been playing with an ePub, and if I call out- font family: Georgia; I definitely get Georgia. if I call out- font family: Georgia, serif; I definitely don't get Georgia, I get Times. Am I just not understanding the font family order thing? |
05-27-2010, 01:15 PM | #2 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
It has to be font-family with a hyphen in the middle. Not "font family" with no hyphen. That shouldn't do anything at all.
What program/device are you using to view these ePubs? In most browsers, the generic "serif" font is not "whatever it can find", but rather whatever is set as the default serif font in the Browser preferences. (E.g., under "Edit > Preferences > Content > Fonts & Colors > Advanced" in Firefox.) You can set that as some crazy sans-serif font if you wanted. Otherwise, you understand how things should work. A lot of ePub viewers don't support these parts of CSS as well as they should, however. Last edited by frabjous; 05-27-2010 at 01:18 PM. |
Advert | |
|
05-27-2010, 01:28 PM | #3 | |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Quote:
I'm just testing with Calibre and Sigil right now-will try it in some other viewers to see what is up. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing Font Family | thymaster | Sony Reader | 6 | 09-19-2010 01:10 AM |
Basic CSS For Sony Reader | ExiledV20 | Sigil | 7 | 02-05-2010 02:38 AM |
OK: a REALLY basic question | ChicagoIrish | Sony Reader | 15 | 08-19-2009 04:08 PM |
Free Font Family für ePubs? | toertchn | Deutsches Forum | 3 | 05-24-2009 04:02 PM |
Font Family should help Contrast | jbruce | Sony Reader | 31 | 04-17-2009 12:43 AM |