![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
![]()
what/where do i tweak in preferences so that conversion font sizes use 1.1, 1.2 and 0.9, 0.8 for larger/smaller, in place of the strange default fractions with their 5 decimal paces of precision? (1.29... 0.7794.... ).
i know that they come from fractions like 13/11 but I'd rather see simple 10% scalings. I am happy with the default size, just want to tweak the larger/smaller variants |
![]() |
![]() |
![]() |
#2 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
& base font size appears to be zero at present ??? ( default ? ) Last edited by cybmole; 07-03-2013 at 08:31 AM. |
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
The base font size can't be 0pt. It states that the default base font size is based on the output profile you select. I don't know what that translates to. If I recall correctly the base font size with my Sony PRS-505, a 6 inch screen, as the output profile was 12pt. 12pt = 1em, 16pt = 1.33em etc... That said, 10pt might be smaller than you experience now but the multipliers for the fonts size should be nice even tenths 10pt = 1em, 12pt = 1.2em, 15pt = 1.5em etc... If OCD requires nice numbers then give 10pt a try, otherwise just stop looking in your CSS. Last edited by DoctorOhh; 07-03-2013 at 08:42 AM. |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
QUOTE The base font size can't be 0pt. UNQUOTE
Well i go calibre - preferences - common options - 1st screen entry is base font size & it shows 0.0pts in the data box - I swear I've never messed with that. I can add a screen grab if I'm not believed. and if I click on "restore defaults" it stays at 0pts ! in the font key wizard it says that if base font size is 0, then output profile values will be used buy when I look at output options - epub I see nothing relevant ??? Last edited by cybmole; 07-03-2013 at 09:06 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I'd always assumed the Wizard set Preferences | Conversion | Common Options | Page Setup - Output profile.
And from a quick experiment it would seem to be the case. |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
you win
![]() hiding output profile inside of page setup , which is already 3 screens deep, was a cunning move ![]() |
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
& back on the look and feel page, how do I see/edit the default font size key settings - all I see is a blank box & the wizard wand ? PS I though I'd once read the explanation of how those CSS em values with 5 decimal places get generated : 0.7794... 1.29 something, but despite searching forum and doing lots of fractions to decimal conversions in my head I can't set up any fraction that gives those values - iried 10/12, 11/13, 12/14 etc.... someone remind please or link to thread Last edited by DoctorOhh; 07-04-2013 at 01:43 AM. Reason: fixed quote |
|
![]() |
![]() |
![]() |
#10 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
If you want to set the Base font go to the Look & Feel section of the Conversion preferences and set it to whatever suits your fancy. As I stated previously 10pt should give you numbers that suit your fancy. Last edited by DoctorOhh; 07-04-2013 at 02:02 AM. |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks. I added some half steps to my spreadsheet & I now thnk that the strange numbers which bug me most are from 9.5/12 (0.79167), and from 15.5/12 (1.29167)
i searched for actual examples in my library but I seem to have tweaked them all out of existence. Next time I have a source with those values in I will comment more . Pretty sure I have seen them in retail /library loan books so not sure if they are generated by publishers or by calibre conversions. maybe it is when a publisher creates the master in some other format then uses adobe tools to make the epub, with the annoying extra xpgt templates? I was hoping to automate conversion of the case where I see 1.29... in calibre base font, then 0.77... in all the body text css fontss ( result is 1.0 because they cancel out. mostly ) Last edited by cybmole; 07-04-2013 at 02:13 AM. |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
a fresh, just purchased, example - the book is Cory Dotcrow's little brother from the latest humble bundle (drm free).
after epub to epub conversion I see in css: ( for chapter number & several other entries) font-size: 1.29167em; ( where the original download had x-large) so how are the default calibre options generating that fraction , which is 15.5/12 surely I should be able to see both the 15.5 and the 12 somewhere in preferences the 15.5 must be in some (invisible? ) default font size key ? can I keep the (invisible) base font size of 12pt , but use values like 13.2, 14.4 in font key so that I get font sizes of 1.1em, 1.2em from the conversion ? i.e. is there any restriction on decimal places in font size key... .... seem that YES I can do that, so I will probably tweak my default conversion options along those lines. Last edited by cybmole; 07-04-2013 at 06:02 AM. |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
back to this again - I have a source which uses "small", "large" in font sizes.
small converts to font-size: 0.77419em; large to 1.29167 ( =15.5/12) but if 0.77419=x/12, then x = 9.29028 which makes no sense at all ??? it seems like my specified font key is being ignored, so what ( hidden) default values can create both of 0.77419 and 1.29167 from "small" and "large" I tried setting the font key as per my previous experiments so that it should come out in even 10ths after conversion i.e. base size 12 , eg 9.6 10.8 12 12 13.2 14.4... but can't get it to work. i wonder if in the current version of calibre there is a bug ? also, the font rescaling wizard seems broken, whatever 2 input values you supply the answer is always will map to 0.0pts! testing that hypothesis: test 1- restore all conversion defaults i.e. font key is blank, base value is zero - gives the same strange fractions as above test 2- set a key of 10 10 10 10 10 10 10 10 with a base of 10 - so everything should flatten... well now I see a lot of 0.833333 (=10/12) and a guest appearance from our favourite 1.29167 (=15.5/12)! that key should have set all font sizes to 1em, surely ?. So something is forcing the base font size to 12 and ignoring the set value of 10, and some other bit of code is pulling 15.5 out of thin air ? test 3: base size 10 key 12 12 12 12 12 12 12 12- gives lots of 0.83333 ? - so maybe it's noticed the 10 & is doing 10/12 ? test 4: base size 12, key 12 12 12 12 12 12 12 12 - gives - wait for it - well finally I am expecting to see lots of font size 1.0em in the converted CSS but in fact I see lots of 0.77419 I give up ![]() and to confirm once again - the source has no numeric font sizes, except for a single 0.9 in body style at all - it only has small x-small and large in the CSS. sample follows: body { line-height : 1.3em; font-size: 0.9em } h1.part-number { font-size: large; margin-top: 15%; margin-bottom: 1em; text-align: center; text-indent: 0em; font-family: sans-serif; } p { display: block; font-size: small; margin-top: 0em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; text-indent: 20pt; } Last edited by cybmole; 08-10-2013 at 01:04 PM. |
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I'm afraid I don't have an answer for you, but do the various font-sizes in the output css become more predictable if you remove the font-size: 0.9em from the input body{} css (or change to font-size: 1em) and convert with a base size of 12pt?
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
I do know that a few versions back I was able to create a custom key and see font sizes of 0.9. 1.0 1.1 etc in the converted book . I then set that up within default preferences and had not touched it since - only the calibre versions have changed. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font sizes | paulfiera | Conversion | 2 | 08-14-2012 08:49 AM |
font sizes ? | rbeset | ePub | 21 | 07-22-2010 03:49 PM |
Font Sizes | Roya | Sigil | 7 | 06-18-2010 09:28 AM |
Font Sizes | brewt | Amazon Kindle | 9 | 06-12-2009 03:03 PM |
Only five font sizes in K2? | KlondikeGeoff | Amazon Kindle | 6 | 02-25-2009 10:21 PM |