summaryrefslogtreecommitdiff
path: root/src/DisplayWidth.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add c0 and c1 control width optionsGravatar Sam Atman2025-03-201-5/+9
| | | | | | | This allows a build of DisplayWidth to give characters in those classes a width, for cases where they'll be printed with a substitute in the final display. It also raises the size of possible characters from an i3 to an i4, to accommodate printing C1s as e.g. <80> or \u{80}.
* DisplayWidth: explicitly set width to 2 when VS16 is foundGravatar Tim Culverhouse2024-04-111-0/+4
| | | | | | | | Explicitly set the width of an emoji to two when the next codepoint is a VS16 selector. Add unit test for this case. This is essentially the same PR as https://codeberg.org/dude_the_builder/ziglyph/pulls/11
* ScriptsData and made all Datas constGravatar Jose Colon Rodriguez2024-03-271-5/+5
|
* Rename DisplayWidthDataGravatar Jose Colon Rodriguez2024-03-271-7/+7
|
* Using separate data struct model.Gravatar Jose Colon Rodriguez2024-02-261-0/+351