Sylvain Becker

Results 199 comments of Sylvain Becker

Thanks for the feedback ! update: - SDLCALL - const int param - rename param to pixel_coordinates - add comment for FT_Library_SetLcdGeometry: since, this is just a stub to FT...

indeed: The current code does not clear the glyph cache of created SDL_ttf fonts when changing the filter/geometry, but clearing the glyph cache would require keeping a list of created...

updated with "extern declspec"

should we maintain an internal list of open fonts or just document the behavior :/

maybe, we should tweak those new TTF_SetLcd function to take a TTF_Font in parameter, We only apply the filter setting the current font (and set back to default for other...

I've update the PR so that the setting are per-font, https://github.com/libsdl-org/SDL_ttf/pull/302 re-apply the setting if they have changed, flush the cache. ok, compiles, but not tested at all :)

@Qrox it would be nice if you could give a try when you have some time thanks

I have added tests in example/testapp.c to test filter and filterweight and harmony so this is now somehow tested. there is real difference of fonts when using the lcd filter....

Can you recompile some stuff, emoji should work Freetype needs to be compiled with FT_CONFIG_OPTION_USE_PNG ( cmake -DFT_DISABLE_PNG=OFF ../SDL_ttf_git )

you're welcome! maybe it's faster for you to check: you can try to compile, SDL_ttf/examples/testapp.c - modify the source to only use your NotoFont emoji font - only use the...