Skip to content

fonts: Depend directly on freetype-sys - #32318

Merged
mukilan merged 1 commit into
servo:mainfrom
mrobinson:freetype-sys
May 21, 2024
Merged

mukilan merged 1 commit into
servo:mainfrom
mrobinson:freetype-sys

Conversation

@mrobinson

Copy link
Copy Markdown
Member

Instead of depending on rust-freetype, depend directly on
freetype-sys which is a transitive dependency. This provides almost
everything we need (apart from one function call). This will help us
eliminate one crate in the dependency chain.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because they do not change functionality.

Instead of depending on `rust-freetype`, depend directly on
`freetype-sys` which is a transitive dependency. This provides almost
everything we need (apart from one function call). This will help us
eliminate one crate in the dependency chain.
@mukilan
mukilan added this pull request to the merge queue May 21, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 21, 2024

@nicoburns nicoburns left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable.

There's a lot of unsafe code in this module though. Medium term we should consider switching all of the freetype code to skrifa which is pure-rust alternative which is being developed by the Google Fonts team as a replacement for freetype in Chromium.

@mukilan
mukilan added this pull request to the merge queue May 21, 2024
Merged via the queue into servo:main with commit 67e556e May 21, 2024
@mrobinson
mrobinson deleted the freetype-sys branch May 23, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants