Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define fonts used in book #868

Closed
afduggirala opened this issue Feb 14, 2022 · 5 comments
Closed

How to define fonts used in book #868

afduggirala opened this issue Feb 14, 2022 · 5 comments
Labels
question Further information is requested

Comments

@afduggirala
Copy link

Hello,
I'm trying to read a book that contains code samples. The font used for the code samples looks tiny. I'm on Gnome 40.7 and on a high dpi screen that is being scaled at 300%. Is there a way for me to detect which style these fonts correspond to? Is there a way for me to make this font bigger? I know I can change the overall font size, but that makes regular (non-code) text look really big.
Thanks for your help and really nice software.
Screenshot from 2022-02-13 19-57-19

Version:

  • Foliate version: 2.64
  • OS/Distribution and version: Fedora 34
  • Desktop environment: GNOME 40.7
  • Installation method: Fedora @System
@afduggirala afduggirala added the question Further information is requested label Feb 14, 2022
@johnfactotum
Copy link
Owner

You can't. You have to edit the book's stylesheet.

There is a feature request for setting the monospace font: #222

@afduggirala
Copy link
Author

I was able to change the stylesheet in Calibre. The change appears to have been effective, the monospace text appears bigger int the Calibre reader. However, in Foliate, the text size was not affected. Of course, I have made sure that I am looking at the newly edited book in Foliate, I think,
thank you,

@johnfactotum
Copy link
Owner

You can try using WebKit's inspector in Foliate to see which styles are applied to the element.

WeKit's Developer Tools can be accessed by going to the primary menu > Advanced > Enable Developer Tools. After that, you can right click on any element and select Inspect Element.

@afduggirala
Copy link
Author

afduggirala commented Mar 6, 2022

Thank you John,
The inspector is showing me that the "pre" section style is still using a 0.8em font. I am pretty sure I edited this file to change this value to 1.0em. I will however edit the book again in Calibre to make sure this is the case. Is there any possibility that Foliate is keeping a copy of this book in some kind of cache? or its styes? (and that is why the changes are not taking effect in Foliate)
thanks again,

@johnfactotum
Copy link
Owner

Is there any possibility that Foliate is keeping a copy of this book in some kind of cache? or its styes? (and that is why the changes are not taking effect in Foliate)

There is a bug when merely reloading the book (#544). But it should work if you close Foliate then re-open the file.

Repository owner locked and limited conversation to collaborators Sep 23, 2022
@johnfactotum johnfactotum converted this issue into discussion #949 Sep 23, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants