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

fontique: Move creation of attributes from fontconfig #212

Merged

Conversation

waywardmonkeys
Copy link
Contributor

@waywardmonkeys waywardmonkeys commented Dec 9, 2024

This exposes from_fontconfig functions on FontStretch, FontStyle, and FontWeight rather than only defining them locally within the fontconfig code.

This is in preparation for a change similar to #209 where these types and others get pulled into a shared vocabulary crate and this sort of constructor helper would be useful to others.

@waywardmonkeys waywardmonkeys force-pushed the move-fontconfig-helpers branch from 9eff2ea to d2f5b0f Compare December 9, 2024 05:25
This exposes `from_fontconfig` functions on `FontStretch`, `FontStyle`,
and `FontWeight` rather than only defining them locally within the
fontconfig code.

This is in preparation for a change similar to linebender#209 where these types
and others get pulled into a shared vocabulary crate and this sort
of constructor helper would be useful to others.
@waywardmonkeys waywardmonkeys force-pushed the move-fontconfig-helpers branch from d2f5b0f to 2a1bb86 Compare December 9, 2024 05:58
@xStrom
Copy link
Member

xStrom commented Dec 9, 2024

Is there any use-case for these outside of Linux? They were previously only compiled on Linux.

@waywardmonkeys
Copy link
Contributor Author

Partly that the effort to restrict them is currently not correct (since this would be useful on FreeBSD and others as well). They're only 3 small functions, so not a big deal.

I wish we had better platform control over features.

fontique/src/attributes.rs Show resolved Hide resolved
fontique/src/attributes.rs Show resolved Hide resolved
fontique/src/attributes.rs Show resolved Hide resolved
@waywardmonkeys waywardmonkeys added this pull request to the merge queue Dec 9, 2024
Merged via the queue into linebender:main with commit 0e851bb Dec 9, 2024
20 checks passed
@waywardmonkeys waywardmonkeys deleted the move-fontconfig-helpers branch December 9, 2024 11:55
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

Successfully merging this pull request may close these issues.

3 participants