freetype-sys icon indicating copy to clipboard operation
freetype-sys copied to clipboard

FT_Get_Sfnt_Table only available on Linux and OSX

Open Osspial opened this issue 8 years ago • 1 comments

The FT_Get_Sfnt_Table function is currently in its own extern block separate from all the other functions, marked with #[cfg(any(target_os = "linux", target_os = "macos"))]. This would be fairly easy to fix, but why was this restriction made in the first place? Removing the tag and calling the function seems to work on my Windows 10 machine, and I don't see any OS restrictions in the FreeType source code.

@bvssvni

Osspial avatar Nov 07 '17 23:11 Osspial

It was a problem on Windows 8.1 x64 back when the code was in freetype-rs. See https://github.com/PistonDevelopers/freetype-rs/issues/160

Perhaps this was a problem with an old version of FreeType?

@johansfrids Are you able to test this?

bvssvni avatar Nov 08 '17 09:11 bvssvni

This is no longer the case and this is unconditionally available.

waywardmonkeys avatar Aug 03 '24 00:08 waywardmonkeys

Closing.

bvssvni avatar Sep 21 '24 08:09 bvssvni