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

preprocess: outdated font-family names in preprocess-css.css #138

Open
myfreeer opened this issue Oct 7, 2024 · 0 comments · May be fixed by #139
Open

preprocess: outdated font-family names in preprocess-css.css #138

myfreeer opened this issue Oct 7, 2024 · 0 comments · May be fixed by #139

Comments

@myfreeer
Copy link

myfreeer commented Oct 7, 2024

In file preprocess-css.css, which would be attached to site_modules.css here, it overrides the font-family of many elements to the names with spaces, e.g. "DejaVu Sans".
But the style on the website defines the font-family as @font-face{font-family:"DejaVuSans", without spaces, so in the offline archive the font-family would not match, and would fallback to system fonts like arial, sans-serif.
To fix this, one possible solution would be updating the preprocess-css.css file, and attach the font-family names without spaces like what the website has done.
See also myfreeer/cppreference2mshelp#33

myfreeer added a commit to myfreeer/cppreference-doc that referenced this issue Oct 7, 2024
In this file, font-family uses names with spaces, but the website declares it without spaces, this would update the font-family names to match the website.
Fixes p12tic#138
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

Successfully merging a pull request may close this issue.

1 participant