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

Add quotes to font names #326

Open
RUN-Projects opened this issue Apr 24, 2024 · 0 comments
Open

Add quotes to font names #326

RUN-Projects opened this issue Apr 24, 2024 · 0 comments

Comments

@RUN-Projects
Copy link
Contributor

RUN-Projects commented Apr 24, 2024

There are no keywords in the font-detect-rhl font lists, so it is recommended that they be wrapped in quotes. Earlier examples did not do so (my fault). Most do also work perfectly fine without quotes, except where special characters are in the font name.

On the other hand a font request for a keyword placed in quotes, like 'sans-serif', will look for a font by that specific name instead of applying the keyword. When not found, with no additional fallback font the default system font or browser's standard font will be applied. That could coincidentally be a sans-serif font (e.g., Arial), though it might be a monospace font (e.g., Courier), or a serif font (e.g., Times New Roman), or another type.

Here is an updated tailwind example showing one approach to taking keywords into account and adjusting on whether or not to apply quotes.

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