Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2015, 05:07 AM   #1
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Dynamic fonts?

I wonder whether there is any means to automatically change the .CSS files to fonts or fonts paths according to the eReader?

For instance if the actual device does not have the stock Arial font to point to the embedded (in ePub) one?

I know this is (or should be) possible in ePub 3, but I wonder whether would be this possible with ePub 2.

Thanks for any ideas.
Ghitulescu is offline   Reply With Quote
Old 01-26-2015, 05:20 AM   #2
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Afaik it's not possible with ePub 2. With ePub 3 you could use media queries to change fonts i think. You could also use javascript but the support for that is limited to a few devices.
odedta is offline   Reply With Quote
Advert
Old 01-26-2015, 12:56 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Ghitulescu View Post
I wonder whether there is any means to automatically change the .CSS files to fonts or fonts paths according to the eReader?

For instance if the actual device does not have the stock Arial font to point to the embedded (in ePub) one?

I know this is (or should be) possible in ePub 3, but I wonder whether would be this possible with ePub 2.

Thanks for any ideas.
epub2
you use a list in the font-family line of the class
h3 {
font-family:"Arial", "blabla", serif;
}

if it cant find Arial it tries for blabla
if it cant find either, the devices: serif
theducks is offline   Reply With Quote
Old 01-27-2015, 03:47 AM   #4
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Quote:
Originally Posted by theducks View Post
font-family:"Arial", "blabla", serif;
Thanks,

I knew this from the browsers, but I wasn't sure it will be supported by all eReaders (like not all web browsers supported it, at least at the beginning).
Ghitulescu is offline   Reply With Quote
Old 01-27-2015, 05:33 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Which is often a bad idea anyway, because at the end you have to rely on one of the standard font families (serif, sans-serif...), overriding whatever preferred font the user may have selected.

If you are going to distribute the book, use embedded fonts or none at all.
Jellby is offline   Reply With Quote
Advert
Old 01-27-2015, 08:21 AM   #6
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Well, the story goes as this: I use diacritics (a virgin domain for Englishmen ) and some eReaders actually contain fonts with diacritics, just that their default one doesn't.

I consider a bad idea anyway to mix typeface and sizes and colours in a book - a single font should suffices, add one more (eg serif sans-serif pair of the same typeface) and you're done.
Ghitulescu is offline   Reply With Quote
Old 01-27-2015, 09:06 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Ghitulescu View Post
Well, the story goes as this: I use diacritics (a virgin domain for Englishmen ) and some eReaders actually contain fonts with diacritics, just that their default one doesn't.
I don't see how that changes the matter. You either leave it to the reader (both device and human) or specify the font yourself, but just using some random names that might or might not available and, eventually, a (serif/sans-serif) font that may be completely deficient and unasked for, is not a good idea, in my opinion.

I use diacritics, I specify a custom default font in my reader, if a book says "Arial, Verdana, sans-serif", it will just default to the default sans-serif font in my reader, which is neither my choice or your choice, and lacks many characters.
Jellby is offline   Reply With Quote
Old 01-27-2015, 12:34 PM   #8
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
I didn't say "random" and it was not my intention.
Au contraire, I intended to name the fonts that are commonly used in such eReaders, or generic ones, like Arial etc.
Ghitulescu is offline   Reply With Quote
Old 01-27-2015, 01:10 PM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Of course, it's not random, "arbitrary" would be a better word. Even if they are common or generic names, more likely than not they will not be available on the reader or, if they are, they cannot be accessed simply by writing their name in the CSS. In a web browser you can usually access any installed font in this way, but that's not the case in ebook readers.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 2.10, Plugins, Shortcuts and Dynamic Menus JimmXinu Plugins 19 01-03-2015 07:10 PM
dynamic content manipulation maze ePub 1 02-15-2013 11:01 PM
Dynamic keymaps Mackx iRex Developer's Corner 42 04-25-2012 08:56 AM
Calibre server on DSL with dynamic IP Hamlet53 Library Management 13 06-01-2011 10:23 AM
Dynamic text with onclick & innerHTML? Doitsu ePub 3 01-07-2011 06:33 PM


All times are GMT -4. The time now is 05:41 AM.


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