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

Freetype doesnt load bitmap emojis

Open narodnik opened this issue 1 year ago • 1 comments

when trying to load noto emoji fonts, it works on desktop but not android. More specifically FT_Load_Glyph will return FT_Err_Unimplemented_Feature.

I thought maybe this was due to lacking PNG support in the bundled version, so on my local copy I've uncommented #define FT_CONFIG_OPTION_USE_PNG in freetype2/include/freetype/config/ftoption.h and then add libpng-sys = { git = "https://github.com/kornelski/rust-libpng-sys", features = ["static-libz", "static" ] } to my Cargo.toml. But this hasn't fixed it.

Any ideas what's missing?

narodnik avatar Jun 23 '24 17:06 narodnik

OK I managed to get it working! The instructions were correct, but I had to additionally link using cargo:rustc-link-lib=... to libpng and libz. Then rendering bitmap emojis works.

narodnik avatar Jun 23 '24 18:06 narodnik