SixLabors / Fonts

:black_nib: Font loading and layout library.
https://sixlabors.com/products/fonts
Other
305 stars 69 forks source link

Add StringIndex and GraphemeIndex to GlyphBounds #396

Closed gerdus closed 6 months ago

gerdus commented 6 months ago

Prerequisites

Description

Add StringIndex and GraphemeIndex to GlyphBounds to enable hit testing glyphs and get the string index.

CLAassistant commented 6 months ago

CLA assistant check
All committers have signed the CLA.

gerdus commented 6 months ago

ref discussion: https://github.com/SixLabors/Fonts/discussions/386

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86%. Comparing base (15b7f8e) to head (5cfb1fd). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #396 +/- ## ===================================== Coverage 86% 86% ===================================== Files 238 238 Lines 15229 15251 +22 Branches 2108 2108 ===================================== + Hits 13189 13219 +30 + Misses 1566 1561 -5 + Partials 474 471 -3 ``` | [Flag](https://app.codecov.io/gh/SixLabors/Fonts/pull/396/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SixLabors) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/SixLabors/Fonts/pull/396/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SixLabors) | `86% <100%> (+<1%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SixLabors#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.