Add @font-face that combines normal and italic fonts#7
Conversation
|
Hi. It's surprising that I am just seeing this today, pardon the very late response; I appreciate the intent/effort. I say keeping the italic and normal font file separate is the better approach, the developer can pull in the italic font file only when strictly needed; or do you have a use case you are targeting? You might want to check #1. Thanks. |
|
Thank you for checking. As you can see, by setting This is the default behavior for font services like Google Fonts as well: https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900 Additionally, if you only need to load the italic style, you can still use non.geist/italic. I understand the need to load each font individually. That is why the goal is to keep the current setup as-is while adding CSS to group both the regular and italic styles under the same font family. Alternatively, removing "Italic" from the |
|
Hello. Did you check the possibility of #1 happening? |
|
I'm occupied for now, I'll test tomorrow |
Currently, if you want to use both normal and italic fonts in your project using this package, you must manually specify each font family.
Resolves the issue by adding a CSS file that merges font families into one.
The exports in package.json are redefined as follows:
non.geist(added)non.geist->non.geist/sansnon.geist/italicnon.geist/m(added)non.geist/mononon.geist/mono-italicIf there is a better suffix, please update.
Thanks for this package!