![]() |
#1 |
UI Designer
![]() ![]() Posts: 5
Karma: 110
Join Date: May 2017
Location: Caracas, Venezuela
Device: Generic laptop
|
![]()
Hi guys, I've been having trouble to customize body text styles in the e-book reader:
What I'm trying to accomplish - Set the styles for the body text (paragraphs and related). What I've tried so far - Change the serif family in the font preferences: it doesn't change it at all. - Use custom CSS for p elements: it only allows me to change the color but it doesn't allow me to change the font, nor the line height. It even doesn't recognize the CSS examples provided by the app itself. Environment - Linux Mint 17.3 - Calibre 1.25 Any thoughts on how to solve this issue? Thanks in advance ![]() |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
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:
![]() Assuming your CSS works in other ways This is a common DEVICE issue. The ignore certain CSS styling that they provide user controls for. Some devices have a "use Publishers Styles" setting I |
|
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,550
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Update your Calibre to a new version and try again. Mange fixes/changes have been made and maybe your problem isn't a problem. It's not worth our time tying to help support such an old version since there is no reason not to update.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
... also showing your info details as 'Reader:Whatever' is singularly unhelpful for someone to assist with CSS issues.
Be more specific how you're planning to read the book and in what ebook format. Every branded device and/or reading app I've ever used is different in some way to the rest - especially when it comes to fonts. |
![]() |
![]() |
![]() |
#5 |
UI Designer
![]() ![]() Posts: 5
Karma: 110
Join Date: May 2017
Location: Caracas, Venezuela
Device: Generic laptop
|
Thank guys! I guess I'm using a version from the "trusted channels" (they tend to be older than current versions), so I'm going to download the newest version and I'll keep you posted.
Regarding "reader: whatever", I'm using it on desktop, so I'm not sure what is the proper way to refer to this type of device (I guess this field is meant for something like Kindle or iPad xD). Thanks again for the help, hopefully downloading the new version will work ![]() |
![]() |
![]() |
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibres viewer is very forgiving.
But even it has overides. Inside the viewer, use the configuration icon to review all your option choices. |
![]() |
![]() |
![]() |
#7 |
UI Designer
![]() ![]() Posts: 5
Karma: 110
Join Date: May 2017
Location: Caracas, Venezuela
Device: Generic laptop
|
Now I'm using version 2.85.1 and the problem is still there. For some reason it doesn't allow to change the paragraph font (not even with the built-in options under "Preferences" :/).
Any thoughts? |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
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:
You need to look at the code and figure out what styles affect what you see Code:
<p> <span class="foo2">Ugly</span></p> |
|
![]() |
![]() |
![]() |
#9 | |
UI Designer
![]() ![]() Posts: 5
Karma: 110
Join Date: May 2017
Location: Caracas, Venezuela
Device: Generic laptop
|
Quote:
Do you know a way of seeing the source? and on the other hand, should I report it like a bug (since it doesn't even work with the default GUI as displayed in the image)? Moderator Notice
Please read forum rules on Image size (600x600 max). Oversize image deleted. shrink and repost Last edited by theducks; 05-17-2017 at 10:58 PM. Reason: oversize image deleted |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,279
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The GUI options provide a fallback font, which is used when the document being viewed does not specify its own fonts. You want those to work you need to remove the fonts specified int he document itself, which you do by using the relevant options in the Look & Feel section of the conversion dialog, or using the calibre Edit Book tool.
|
![]() |
![]() |
![]() |
#11 | |
UI Designer
![]() ![]() Posts: 5
Karma: 110
Join Date: May 2017
Location: Caracas, Venezuela
Device: Generic laptop
|
Quote:
@kovidgoyal Thanks for introducing me to these functions and also thanks to @theducks, @JSWolf, and @jackie_w for your valuable input ![]() |
|
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
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:
Where many users like myself, barely scrape the surface of ALL the features and power Kovid has built into it. This forum is the most likely place to find someone who uses the feature YOU need help with. All you need to do after posting, is to wait for the right person to drop by and to clarify your post when we miss ![]() |
|
![]() |
![]() |
![]() |
Tags |
css changes, custom font, ebook reader |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Chapterhead style --- possible in CSS? | GrannyGrump | ePub | 10 | 09-18-2013 09:58 PM |
PRS-950 A little web too to generate custom CSS | gsgleason | Sony Reader | 0 | 12-18-2011 06:51 PM |
Custom CSS | Japes | Conversion | 5 | 07-09-2011 08:15 PM |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM |