Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-29-2012, 04:13 AM   #1
Alan Newson
Member
Alan Newson began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2011
Device: iPad
Define initial font viewing size

Hi, is it possible to set the initial font size of an ePub - using a size that would be available when the user chooses to increase or decrease font size.

This is probably not recommended but I would like to know what a user is seeing on initially opening the document.
Alan Newson is offline   Reply With Quote
Old 02-29-2012, 08:26 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,531
Karma: 43837842
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Readers don't like it when they open a book and the font size is three times bigger or smaller than the last book they were looking at.

With no font-size specification (or a specification of 1em), they are seeing the font size they have chosen for their particular viewing comfort (for normal body text).
DiapDealer is offline   Reply With Quote
Old 02-29-2012, 03:26 PM   #3
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 995
Karma: 1529558
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Alan Newson View Post
Hi, is it possible to set the initial font size of an ePub
Afaik theres no central item to set a global font-size; but you may give every tag in your epub a specific size via css.

Quote:
Originally Posted by Alan Newson View Post
using a size that would be available when the user chooses to increase or decrease font size
A user-choice such as "big", "even bigger", "quite large", "monstrous big" and "default", where default is the size you specified ???
I guess: no
mmat1 is offline   Reply With Quote
Old 02-29-2012, 07:47 PM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,781
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by mmat1 View Post
Afaik theres no central item to set a global font-size; but you may give every tag in your epub a specific size via css.


A user-choice such as "big", "even bigger", "quite large", "monstrous big" and "default", where default is the size you specified ???
I guess: no
since every file has a body tag you can set font size in the body CSS so yes there is a way to set a global font size.

ePub and its predecessor OEB has 7 font sizes that are supposed to be supported. They need to be called: xx-small, x-small, small, medium, large, x-large, xx-large. If the eBook reader doesn't support all these sizes it can reuse a size it does support. A font size set to larger will go to the next larger font in this set of 7 and a font size set to smaller will go down the list.

However, it is likely better not to specify a font size and let the user choose.

Dale
DaleDe is offline   Reply With Quote
Old 03-01-2012, 08:29 AM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
DaleDe, the wisdom of your remark is illustrated by the fact of all the thread participants, there appears to be no one reader in common. Set it perfect for one and make it off for the rest!
mrmikel is offline   Reply With Quote
Old 03-01-2012, 08:51 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Lets have one device in common then.
Toxaris is offline   Reply With Quote
Old 03-01-2012, 09:39 AM   #7
Rob Lister
Fanatic
Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.
 
Posts: 533
Karma: 3293888
Join Date: Oct 2011
Location: Virginia
Device: Nook Simple Touch
And yet... there are situations where it would be nice to have a font display at a particular size. A good example is the e-book display of a table. If the font size is known (or controlled) at the time of development, the developer can make the table display correctly for the most common screen widths.

My opinion is to rethink the necessity of the table, or at the very least, tightly control the width of the table elements and number of columns.

Where a table is absolutely necessary, I've had good results with converting the table to an image. If the resulting img (width=100%) is illegible in the width of the display of the smallest anticipated screen size, then rethinking the design of the table is also absolutely necessary. If it is legible, it is a good, if not perfect, solution.

So in a nutshell, if you find yourself thinking it necessary to screw with the user-defined font size (or any other user setting), step back and see if there is a more universal, device/user independent solution that will achieve the same result.

Last edited by Rob Lister; 03-01-2012 at 09:49 AM.
Rob Lister is offline   Reply With Quote
Old 03-01-2012, 09:41 AM   #8
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
html is flexible. You do not have control over the users settings nor can you influence them. You have to live with that.
huebi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change font size and font style? butterbescotch Sigil 20 09-06-2013 09:22 PM
Determine font and font size on incoming epub? peaceridge Calibre 4 01-30-2012 04:35 PM
Can't change font or font size in ereaders jmacg Sigil 30 10-23-2010 10:21 PM
PRS-300 Med font size too big, but small font size too small eli2k Sony Reader 4 05-28-2010 10:47 AM
Viewing pictures at actual size? jpt Astak EZReader 6 11-11-2009 12:15 PM


All times are GMT -4. The time now is 06:31 AM.


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