![]() |
#1 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Sep 2012
Device: kindle
|
Overwrite fonts?
Is there a way to overwrite the font in a epub book? I couldn't find option for this. I am using the linux version of Calibre.
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,531
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can specify whatever CSS you like in the styles section of the viewer preferences including fonts.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Sep 2012
Device: kindle
|
How is that different than specifying the font in the Fonts section?
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,180
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Styles is where you make your desires (font family) known. The font must be available (system or embedded in the book) eg Code:
@font-face { font-family: Cinzel; font-weight: normal; font-style: normal; src: url(fonts/00002.ttf); } Code:
.first-letter2 { float: left; font-family: Cinzel, serif; font-size: 300%; font-style: normal; font-weight: normal; margin-right: 0.18em; margin-top: -0.25em; text-decoration: none; text-transform: uppercase; } That is the fallback if the font is not available (should not be needed if embedded in the book) |
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Sep 2012
Device: kindle
|
i tried this css style, but it didn't work:
Code:
* { font-family: "Liberation Serif", serif !important; } |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,384
Karma: 7237230
Join Date: Dec 2021
Location: England
Device: none
|
Why are you using " ?
Try Liberation Serif rather than "Liberation Serif" |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Sep 2012
Device: kindle
|
This css style worked (with ai help):
Code:
@font-face { font-family: "my-custom-font"; src: local("Georgia"); } * { font-family: "my-custom-font", serif !important; } |
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,180
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#9 |
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,384
Karma: 7237230
Join Date: Dec 2021
Location: England
Device: none
|
Thank you.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Overwrite CSS during conversion | riothamus | Conversion | 3 | 09-23-2022 03:42 AM |
Merge overwrite/ignore | Rellwood | Library Management | 2 | 03-08-2017 01:36 AM |
New updates don't overwrite? | Gazella | Calibre | 10 | 12-27-2012 01:45 PM |
Force Overwrite Of Tags | DagsJT | Library Management | 2 | 07-15-2011 10:29 PM |
Overwrite language selection? | TadW | Calibre | 2 | 09-30-2008 04:10 AM |