Skip to content
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

A way to specify default font families #331

Open
efermi opened this issue Apr 8, 2022 · 0 comments
Open

A way to specify default font families #331

efermi opened this issue Apr 8, 2022 · 0 comments

Comments

@efermi
Copy link

efermi commented Apr 8, 2022

As there is a way to choose default font families there should be a way to specify them. Screenshot_20220408_160638
Otherwise the program picks any font deemed suitable, which may not be what the end user wants.

This inability to specify them also leads to various errors and inconsistencies in rendering (epub: epub-test-defaults.zip):
Screenshot_20220408_161803
Screenshot_20220408_162011
Screenshot_20220408_162117
Notice how the programs fails to pick a proper serif font when the default isn't one and how it switches between font families depending on current default.

This problem doesn't exist in e.g. Calibre's viewer, where these settings are fixed and can be easily changed if needed:
Screenshot_20220408_150025

Providing these settings can also be used, I think, to trim the built-in css rules which are littered with specific font families: instead of using something like

tt, samp, kbd, code, pre { font-family: "Droid Sans Mono", "Liberation Mono", "DeJaVu Sans Mono", "Courier New", "Courier", monospace; } 

only the monospace can be left to be resolved later according to preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant