|
|
#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,685
Karma: 28549304
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,342
Karma: 62025226
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,707
Karma: 7318592
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,342
Karma: 62025226
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,707
Karma: 7318592
Join Date: Dec 2021
Location: England
Device: none
|
Thank you.
|
|
|
|
|
|
#10 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,072
Karma: 150263703
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
duplicate space
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overwrite CSS during conversion | riothamus | Conversion | 3 | 09-23-2022 04:42 AM |
| Merge overwrite/ignore | Rellwood | Library Management | 2 | 03-08-2017 02:36 AM |
| New updates don't overwrite? | Gazella | Calibre | 10 | 12-27-2012 02:45 PM |
| Force Overwrite Of Tags | DagsJT | Library Management | 2 | 07-15-2011 11:29 PM |
| Overwrite language selection? | TadW | Calibre | 2 | 09-30-2008 05:10 AM |