You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freetype-rs looks so much more pleasant to use. We could get rid of lots of unsafe blocks in the font-related code in gfx, and probably fix some of those lurking crashes that appear every few months.
@boghison I'm working on it my free time now and then, but I haven't had nearly as much time as I'd like. Feel free to start on it, although I'm still going to work on it as well (as a Rust learning exercise for myself as much as anything else).
It should be pretty simple if you already know Rust; I'm just slowed down by learning about lifetimes, lifetime parameters, and other parts of the ownership model as I go through it all.
@jdm What I am worried about is FreeTypeLibraryHandle and its use, because AFAIU this relies on the raw implementation and therefore has to be entirely replaced. Thoughts?
Hi!!
I would like to work on this issue if its available,please assign it to me.
My approach will be to find all direct uses of {freetype-sys}, replace them with a safe wrapper crate,make sure everything still works as expected, and then remove the direct dependency.
Please let me know if there is a preferred wrapper crate I should use.
Activity
jdm commentedon Sep 19, 2014
Note: NCSU students might be working on this, so please contact me before commencing any work to avoid overlap.
kmcallister commentedon Apr 1, 2015
They submitted #4215, which switches to Piston's freetype-sys but not to the high level bindings.
This issue is up for grabs again and would be a great start for an eager contributor from the Rust community!
schuster commentedon May 4, 2015
I'd like to work on this. What's the best way to test that this works, once I've made the change?
jdm commentedon May 4, 2015
@schuster Likely just test some sites that use various fonts and check that they look the same before and after.
cuzbog commentedon Jul 17, 2015
Any news on this?
jdm commentedon Jul 17, 2015
@boghison You're welcome to start working on it if you'd like.
schuster commentedon Jul 17, 2015
@boghison I'm working on it my free time now and then, but I haven't had nearly as much time as I'd like. Feel free to start on it, although I'm still going to work on it as well (as a Rust learning exercise for myself as much as anything else).
It should be pretty simple if you already know Rust; I'm just slowed down by learning about lifetimes, lifetime parameters, and other parts of the ownership model as I go through it all.
cuzbog commentedon Jul 17, 2015
Ok, I am gonna give this a try :)
cuzbog commentedon Jul 17, 2015
@jdm What I am worried about is
FreeTypeLibraryHandleand its use, because AFAIU this relies on the raw implementation and therefore has to be entirely replaced. Thoughts?jdm commentedon Jul 17, 2015
@boghison I think it's fine to leave raw API when necessary - you can replace the FT_Library with the Library type (https://github.com/PistonDevelopers/freetype-rs/blob/master/src/library.rs#L34), but it looks like our use of FT_Memory and the UserPtr should stay, since we do special things with them.
28 remaining items
cuzbog commentedon Jul 22, 2015
My code changes are here. Until the freetype-sys issue is solved, it's in limbo.
nox commentedon Jul 3, 2016
What do we need to do here? WR depends on our freetype crate and I want to remove that.
jdm commentedon Jul 3, 2016
We need to switch all of the packages that depend on freetype-sys away from it.
nox commentedon Jul 3, 2016
@jdm I'm not sure I parse what you mean. Do you mean we should switch all the packages that depend on servo/rust-freetype away from it?
jdm commentedon Jul 3, 2016
Yes, that's what I meant.
[-]Replace rust-freetype with freetype-rs[/-][+]Replace `freetype-sys` with `freetype-rs`[/+]mrobinson commentedon Dec 14, 2024
The
rust-freetypedependency was removed in #32318 and we now depend onfreetype-sysdirectly.IsaacMarovitz commentedon Feb 26, 2025
@jdm Has
cosmic-textbeen considered?jdm commentedon Feb 26, 2025
No. I don't have more than a cursory knowledge of cosmic-text, but I have the impression that it does a lot more than we need?
mrobinson commentedon Feb 26, 2025
I think we a much tighter integration with platform font APIs and OpenType than a library like
cosmic-textallows.webbeef commentedon Feb 26, 2025
What about https://crates.io/crates/skrifa ?
mrobinson commentedon Feb 26, 2025
We plan to use skrifa more and more as time goes on. We should be able to use it to replace a lot of platform-dependent parsing code.
Keerti707 commentedon Mar 2, 2026
Hi!!
I would like to work on this issue if its available,please assign it to me.
My approach will be to find all direct uses of {freetype-sys}, replace them with a safe wrapper crate,make sure everything still works as expected, and then remove the direct dependency.
Please let me know if there is a preferred wrapper crate I should use.