-
Notifications
You must be signed in to change notification settings - Fork 7
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
unicodeRange
override is ignored in generated CSS
#180
Comments
Hi @danwithabox! I'm here to help you with any bugs, questions, or contributions. Let's solve this together! Yes, you are misunderstanding what To use a different font for a single character, you should use CSS to apply the font to that specific character. Here is an example of how you can do this: /* Define a class for the specific character */
.special-character {
font-family: 'YourSpecialFont', sans-serif;
} Then, in your HTML or Vue component, you can apply this class to the specific character: <span class="special-character">@</span> This way, the character "@" will use the |
But yes, I think we should improve the type definitions for the config. There are several options intended not for configuration, but rather for internal usage. |
AFAIK I cannot override Would I have to acquire the font myself and "go around" this library for that specific font if I wanted to change just I'd rather be able to use a |
I am attempting to use a different font for a single character (
@
) as per this MDN doc.From what I've gathered, using the
fonts.families
override innuxt.config.ts
should do the trick:This does not have the desired effect, the generated CSS has its
unicodeRange
(s) untouched:the generated CSS, as seen in devtools
Am I misunderstanding what
fonts.families[].unicodeRange
is for? It is not mentioned in the documentation unlike the other props, but the JSDoc comment ("The range of Unicode code points to be used from the font."
) suggests to me that this should work.If this is not the intended way to handle this use case, what is?
The text was updated successfully, but these errors were encountered: