-
Notifications
You must be signed in to change notification settings - Fork 2
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
Faces for book contents #6
Comments
Hi. I just checked the implementation of styling via faces and it doesn't seem to work. Or is it just not finished yet? Also, IMHO fb2-reader-default face should inherit from variable-pitch face. Monospace fonts are not very well suited for long texts. |
It is still work in progress, but basic things should work though. Just tested - |
Just checked it - readability definitely improved, but overall look gotten worse - formatting tricks I used (fill-region etc) don't play well with proportional fonts. I'll try to improve that in future. |
Excerpt from my color theme:
Customized faces look right in |
I have found the culprit. I have |
I suppose it's because of :height>1 - I don't took it into account in text blocks. Added to my todos. |
I updated the plugin - now all basic fb2 tags are customizable, and their heights are taken into account - the issue with chopped lines should be fixed now. Another good thing about it is more decent support for variable-width fonts. There are no built-in functions to justify such regions. But with the latest changes, it is possible at least align all tags to left - so their appearance will be a lot prettier than before |
With recent changes lines aren't chopped anymore, but I've noticed another thing. I set |
fb2-reader-page-width is width measured in normal-sized symbols. Actual width recalculated for every text block as fb2-reader-page-width divided by face's height (in fact it is calculated as the multiplication of all heights in face's inheritance chain, so if your title face has a height of 1.4 and default face have a height of 1.2 your overall height will be calculated as 1.4*1.2). |
I think I should add this explanation to variable's docstring:). |
It would be very nice to have the ability to customize the look of main body of text, titles, chapters, etc. via faces.
The text was updated successfully, but these errors were encountered: