Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable: Use the same FT load flags in HB as in FT #311

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

poire-z
Copy link
Contributor

@poire-z poire-z commented Sep 25, 2019

Re-enable c02f597 (#230) that was reverted by 330d7b1 (#231), as the performance hit has been fixed on Harfbuzz side by using caching.
Also re-init HB fonts on hinting mode change to clear HB's internal caches (so we get reproducible renderings when changing hinting mode - this should fix the frustration I had in koreader/koreader#5359 (comment)).
Recent discussion in koreader/koreader#5359.

Re-enable c02f597 (koreader#230) that was reverted by 330d7b1 (koreader#231), as the
performance hit has been fixed on Harfbuzz side by using caching.
Also re-init HB fonts on hinting mode change to clear HB's internal
caches (so we get reproducible renderings when changing hinting mode).
@NiLuJe
Copy link
Member

NiLuJe commented Sep 25, 2019

Ooh, nice catch on setHintingMode!

@NiLuJe
Copy link
Member

NiLuJe commented Sep 25, 2019

Note to self:

Look into switching to FT_LOAD_TARGET_LIGHT instead of FT_LOAD_TARGET_NORMAL (IIRC, light is now the default used by pretty much all current FT users).

EDIT: And also in ffi/freetype.lua ;).

Look into FT_LOAD_PEDANTIC for the native hinter?

Copy link
Member

@NiLuJe NiLuJe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants