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

Allow register_variant() based on a family created with register_font() #69

Open
petrbouchal opened this issue Feb 21, 2021 · 0 comments

Comments

@petrbouchal
Copy link

Rationale: on GHA, where it is difficult to get fonts registered correctly (and perhaps elsewhere), the workaround is to register_font() from files inside an installed package. Registering variants via register_variant() base on a family created by register_font() is currently not possible, as the font does not appear in the output of system_fonts(). So a variant with different features can only be created by running the entire call to register_font() again with only the features param altered. That gets lengthy with lots of font weights/widths...

This may or may not be related to #68 - I guess that if "system" fonts can be found in other directories, then this whole workaround becomes unnecessary. But from the discussion under #58 I also understand that where fonts are searched for may well not be in systemfonts' power to influence...

@petrbouchal petrbouchal changed the title Allow register_variant based on a family created with register_font Allow register_variant() based on a family created with register_font() Feb 21, 2021
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