Tehreer / Tehreer-Android

Standalone text engine for Android aimed to be free from platform limitations
Apache License 2.0
89 stars 16 forks source link

Chararacter measurement based on caret range distance #14

Closed mta452 closed 5 years ago

mta452 commented 6 years ago

Now that cluster splitting has been implemented for #10 with the use of character extents, it is a good time to replace traditional glyph-based measurement with character-based measurement. The idea is that character distances are calculated during the run creation phase, and then these are used to measure the character range irrespective of glyph advances. With this approach, the measurement could be much faster as it involves just a single subtraction of upper and lower distances.

mta452 commented 5 years ago

Done in v2.3