forked from koreader/crengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Text: correct glyph overlap at text node boundaries
This is usually known as "italic correction", but we can do it more generically for all text nodes, as it can help too with regular fonts with different line-height or vertical-align. We don't use font and glyph metrics like side bearings, as this is quite limited: we do it visually by drawing both left and right words in a new LVHorizontalOverlapMeasurementDrawBuf, and getting the collision distance from the real glyphs used by the final drawing.
- Loading branch information
Showing
3 changed files
with
321 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters