Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2015, 12:47 AM   #1
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
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.
Attached Thumbnails
Click image for larger version

Name:	Managefonts.jpg
Views:	237
Size:	38.1 KB
ID:	141411   Click image for larger version

Name:	pagestyle.jpg
Views:	203
Size:	12.7 KB
ID:	141412  

Last edited by leftright; 08-26-2015 at 12:53 AM.
leftright is offline   Reply With Quote
Old 08-26-2015, 04:10 AM   #2
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,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:
Originally Posted by leftright View Post
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.
Uh!
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
theducks is offline   Reply With Quote
Advert
Old 08-26-2015, 07:53 AM   #3
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
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.
leftright is offline   Reply With Quote
Old 08-26-2015, 10:29 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: 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:
Originally Posted by leftright View Post
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 ?.
reread my description

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
theducks is offline   Reply With Quote
Old 08-26-2015, 10:54 AM   #5
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
ok, so how do I remove it from my books in a batch ?.
leftright is offline   Reply With Quote
Advert
Old 08-26-2015, 12:18 PM   #6
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,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:
Originally Posted by leftright View Post
ok, so how do I remove it from my books in a batch ?.
Sheesh

By turning off your computer, then you won't be able to see a Non-problem
theducks is offline   Reply With Quote
Old 08-26-2015, 12:19 PM   #7
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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
cybmole is offline   Reply With Quote
Old 08-26-2015, 01:18 PM   #8
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
Quote:
Originally Posted by theducks View Post
Sheesh

By turning off your computer, then you won't be able to see a Non-problem
wow, so much aggression, what's up dude....

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.
leftright is offline   Reply With Quote
Old 08-26-2015, 02:30 PM   #9
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,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:
Originally Posted by leftright View Post
wow, so much aggression, what's up dude....

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.
Calibre makes a book following best practices .
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)
theducks is offline   Reply With Quote
Old 08-26-2015, 03:04 PM   #10
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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),
PeterT is offline   Reply With Quote
Old 08-26-2015, 11:00 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by leftright View Post
wow, so much aggression, what's up dude....

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.
There are two types of fonts.

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
  • Remove all mention in the CSS to font-family: serif;
  • Explicitly tell the CSS to use font-family: sans-serif; (or any specific font you have embedded, if that font belongs to the sans-serif "genre")

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.
eschwartz is offline   Reply With Quote
Old 08-27-2015, 12:46 AM   #12
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
Quote:
Originally Posted by eschwartz View Post
so if the reader can't find the primary font it'll default to a serif font of it's choice,
That is exactly what I'm struggling with. How do I ensure that the reader will ALWAYS FIND my primary font?. I have manually edited and converted all my books in Calibre for my Glo.

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.
leftright is offline   Reply With Quote
Old 08-27-2015, 01:00 AM   #13
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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
}
Did you ever get around to switching the font-family to "font-family: sans-serif;"


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.
eschwartz is offline   Reply With Quote
Old 08-27-2015, 01:25 AM   #14
leftright
Addict
leftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplaneleftright makes transoceanic flights without the assistance of an airplane
 
Posts: 224
Karma: 55704
Join Date: Sep 2013
Device: Kobo Glo
Quote:
Originally Posted by eschwartz View Post
The easiest way is to embed it,
I will embed it.

Quote:
Originally Posted by eschwartz View Post
The important thing is that the CSS is instructing the renderer to use your font.
I now understand, and if it isn't embedded it will default to readers serif.

Quote:
Originally Posted by eschwartz View Post
Did you ever get around to switching the font-family to "font-family: sans-serif;"
No. to many books to manually edit.

Quote:
Originally Posted by eschwartz View Post
Note2: I feel it would be instructive to reference the friendly guide to CSS at W3Schools: CSS font-family property
Thanks for the information.
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.
leftright is offline   Reply With Quote
Old 08-27-2015, 02:24 AM   #15
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: 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.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:40 AM.


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