Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-31-2017, 08:06 AM   #1
Abou
Junior Member
Abou began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2016
Device: iPad
ex to pt

Hello,

1-Is there a way to change the settings in css from ex to pt?

2-Please note that we also noticed that the conversion formula from ex to pt is wrong. for example:

padding: 0.5ex 5.75pt

while 1 ex should be equal to 4.30554 pt
Corrected padding value: 2.152pt instead of 0.5 ex

thank you
Abou is offline   Reply With Quote
Old 05-31-2017, 09:01 AM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
ex is the height of lower case "x" in the current font and so depends on the font selected and the current font size. pt is units of 1/72 inches. There is no fixed conversion ratio between the two units.
jhowell is offline   Reply With Quote
Advert
Old 05-31-2017, 09:24 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You do not want ex or pt. What you want is em.
JSWolf is offline   Reply With Quote
Old 05-31-2017, 09:40 AM   #4
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: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
add the word 'probably' to Jon's answer.

There are a few places where FIXED sizes are needed. They are few. Usually associated with another fixed object, like an image with text overlay.
In general, fixed (absolute) sizes should be avoided. they don't scale
theducks is offline   Reply With Quote
Old 05-31-2017, 09:43 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by theducks View Post
add the word 'probably' to Jon's answer.

There are a few places where FIXED sizes are needed. They are few. Usually associated with another fixed object, like an image with text overlay.
In general, fixed (absolute) sizes should be avoided. they don't scale
The one thing I tend to do in fixed units are page margins, because I don't want my margins to scale with the text. I use ems for everything else.
HarryT is offline   Reply With Quote
Advert
Reply


Forum Jump


All times are GMT -4. The time now is 04:46 AM.


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