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

Bold Font is not supported #15

Open
pourmand1376 opened this issue Aug 18, 2024 · 2 comments
Open

Bold Font is not supported #15

pourmand1376 opened this issue Aug 18, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pourmand1376
Copy link
Owner

Currently, I don't support setting up fonts with Bold, ExtraBold (and other weights from 100 to 700).

One of the solutions can be adding a variable font or creating a variable font. But that overall is something I should consider.

@pourmand1376 pourmand1376 added enhancement New feature or request help wanted Extra attention is needed labels Aug 18, 2024
@pourmand1376
Copy link
Owner Author

I've found that If your font is variable, you can use it with the plugin as you would normally and It would just work.

Basically, a variable font contains all of the weights in itself. It has all the combined weights altogether.

Use this site to see if your font is variable:

You would see something like this:
CleanShot 2024-09-04 at 10 46 37

@pourmand1376
Copy link
Owner Author

pourmand1376 commented Sep 4, 2024

I should automatically import all fonts in the directory starting with "font-name" as try to assign weights to them.

https://stackoverflow.com/questions/47897685/how-do-i-specify-which-font-weights-are-available-for-a-given-font-
family

const base64_css = `@font-face{
font-family: '${font_family_name}';
src: url(data:${css_type};base64,${base64});
}`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant