Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Changed line height parsing method for subpixel calculations #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anthon
Copy link

@anthon anthon commented Jan 27, 2022

As subpixel rendering has become prevalent, ftellipsis is starting to quite often fail to expand clipped elements to the correct height, as the getLineHeight func is using straight parseInt to parse the computed line height.

A way to get around this would be to simply switch to parseFloat. Or do you see a problem with that? Is there a reason for rounding the line height at this initial read state?

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

Successfully merging this pull request may close these issues.

1 participant