![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
unable to remove serif from epub with other css properties
How do I remove the serif only from a epub ?, I have tried using font-family and font-family:serif in other css properties to no avail.
Serif is listed as a separate font under Edit > Tolls > Mange Fonts, (see pic below), and I note that I can remove serif with Manage Fonts, perfect exactly what I want to do, but... How do I remove this serif without laboriously manually editing every single book in my collection ?. Many thanks. Last edited by leftright; 08-26-2015 at 12:53 AM. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
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:
serif is just the fallback if Calibri is not found on the device. It is in second place. serif, san-serif, monospace are generic NAMES for the assigned (by system builder) defaults |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Thanks for the information, what do you suggest I do to rectify this issue ?.
My understanding, which is limited, leads me to believe that a "primary font" can be either "sans-serif", or "serif", i.e. the primary font can be further enhanced by being serif or san serif, what I don't understand is why a conversion executed with Calibri only turns out to be stored as Calibri serif ?. Maybe I should remove all fonts and replace with Calibri sans-serif ?. would that fix it ?. Last edited by leftright; 08-26-2015 at 08:17 AM. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
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:
There is no ENHANCED BY. There is no problem, serif is a basic category Calibre is doing it properly by providing the INSTRUCTION to use a serif font if you did not ship Calibri with you book (and not available for use on the device) A clearer example : You want to use 'Old English' for chapter titles. So you add. font-family: 'Old English' to your CSS Jobs hated that font, so it is not available on any product made by their company. What do you want to do? 1) Buy a License and ship 'Old English' with every book 2) List a basic fallback to use in these cases: serif (free) 3) Cry, because the manufacturer ignores the font-family instruction, even if you included it and $100 worth of licensed fonts Fallback family is only advisory , serif is 7 characters |
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
ok, so how do I remove it from my books in a batch ?.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Calibre has an option to remove ALL font family declarations when it converts if that suits you.
it is in conversion preferences, filters Test to see if it meets your needs |
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Quote:
It is stated elsewhere that "nickel" sometimes doesn't resize the fonts if serif is included as a font family, hence my reason for trying to remove the serif part, and before you get on your high horse again, please read my first post carefully Anyway, no matter I'll manually remove the serif font. |
|
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
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:
If your device faults on valid code, it is your device that needs to be fixed, not Calibre. SERIF is a name << only. There is no SERIF font. There are serif style fonts. You can remove the whole font-family line (as cybmole suggested) if you don't need calibri font (accept the device default) |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,367
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
If you want to edit lots of books see this (coding based) solution. Batch correct fixable errors
You will have to make some changes (for instance, you would not want to look for books that contain errors, so the whole idea of using run_checks and fix_errors is out), |
![]() |
![]() |
![]() |
#11 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
There are the font files, e.g. *.ttf or *.otf There are the font-style directives in the CSS. The Manage fonts dialog is completely irrelevant, as it only affects the former. There is no such font as "serif", in much the same way that there is no such book as "fiction" -- because "fiction" is a genre, not a title of a specific book. Likewise, "serif" (and "sans-serif") are a genre of fonts. If you specify the serif "genre", an ereader or browser will look through the fonts it knows about, select all the serif ones, and pick one out of a metaphorical hat. All meaningful changes start with the CSS. What you want, is to direct the ereader to stop using the serif "genre" of fonts. You can do this two ways
If you choose the former, then whatever your device default is, will be used. That may be serif. ![]() Last edited by eschwartz; 08-26-2015 at 11:08 PM. |
|
![]() |
![]() |
![]() |
#12 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
Quote:
Do I have to embed the font ?. Do I have to sideload the font ?. Do I have to do both ?. Thank you'all for your patience. Last edited by leftright; 08-27-2015 at 12:54 AM. |
|
![]() |
![]() |
![]() |
#13 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The easiest way is to embed it, you will have to ask in the Kobo forum for instructions on sideloading fonts.
The important thing is that the CSS is instructing the renderer to use your font. The last we heard, your CSS still said (the OP): Code:
.calibre { display: block; font-family: "Calibri", serif; font-size: 1.25em; padding-left: 0; padding-right: 0; margin: 0 3pt } ![]() If, for some reason, you absolutely positively must have some specific instantiation of a sans-serif font, did you embed it using the Manage Fonts tool, as well as specifying that font-family in the CSS? Note: You will need to match the font-face rule. Note2: I feel it would be instructive to reference the friendly guide to CSS at W3Schools: CSS font-family property Last edited by eschwartz; 08-27-2015 at 01:08 AM. |
![]() |
![]() |
![]() |
#14 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
|
I will embed it.
Quote:
Quote:
Quote:
I was confused by the manner in which the reader prioritizes it's font selection, plus it seems that readers differ in how they manage the specified font if it isn't available. I'm just after a fireproof method of ensuring that my primary font is findable AND adjustable across different OEM's. Thank you for your time. |
|||
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Be aware that you are not allowed to embed most fonts, including Calibri. For your own personal use, go ahead.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
List of all (currently) supported CSS properties | ribik | Library Management | 5 | 08-26-2014 07:34 AM |
full list of supported css properties? | n.k. | Kindle Formats | 7 | 05-09-2012 10:50 AM |
Some CSS properties not transferring when converting ePub to LRF | megacoupe | Calibre | 2 | 10-15-2010 05:35 PM |
Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 04:29 AM |
Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 04:55 PM |