Skip to content

Add fallible versions of FontFace methods #66

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

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

acarl005
Copy link

@acarl005 acarl005 commented Mar 30, 2025

This PR continues the trend of #62, adding fallible versions of FontFace methods and removing the get_ prefixes.

@@ -76,7 +87,7 @@ impl FontFace {
simulations: DWRITE_FONT_SIMULATIONS,
) -> FontFace {
unsafe {
let file_ptrs = self.get_raw_files();
let file_ptrs = self.raw_files().unwrap();
Copy link
Author

@acarl005 acarl005 Mar 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to #64, there is no obvious name change here for a non-panicking method for create_font_face_with_simulations and it can be changed in the next API-breaking release

@mrobinson mrobinson added this pull request to the merge queue Mar 31, 2025
Merged via the queue into servo:main with commit 4d82899 Mar 31, 2025
2 checks passed
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.

2 participants