Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2010, 12:53 PM   #1
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
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?
kjk is offline   Reply With Quote
Old 05-27-2010, 01:15 PM   #2
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
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.
frabjous is offline   Reply With Quote
Advert
Old 05-27-2010, 01:28 PM   #3
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Quote:
Originally Posted by frabjous View Post
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.
Thanks, frabjous! Ok, I did have font-family with a hyphen, sorry about that .

I'm just testing with Calibre and Sigil right now-will try it in some other viewers to see what is up.
kjk is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 02:51 AM.


MobileRead.com is a privately owned, operated and funded community.