mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-11 07:42:49 +00:00
Reworked the undercurl and dotted underline to use z2d, the undercurl is almost identical (slightly better, it has rounded end caps now) but without the really complicated code, and the dotted underline is greatly improved since it now draws as anti-aliased dots that are evenly spaced instead of rectangles that might have uneven spacing at the wrong font size. Also fixes #9394 since I added code that makes sure that none of the underlines is drawn off of the edge of the canvas (the padding only goes so far, after all). |Size|Adjustments|Before|After| |-|-|-|-| |32|none|<img width="640" height="964" alt="image" src="https://github.com/user-attachments/assets/20e44d89-5825-496e-b197-bd1ca6c685f7" />|<img width="640" height="964" alt="image" src="https://github.com/user-attachments/assets/b1fb8499-26fd-42ec-8186-1677ab29048b" />| |11|none|<img width="234" height="358" alt="image" src="https://github.com/user-attachments/assets/5db89f15-128c-4780-826c-a4f59026a0af" />|<img width="234" height="358" alt="image" src="https://github.com/user-attachments/assets/c9a2855a-284e-46d8-b824-0ada2a0ac386" />| |9|underline +8, overline -8|<img width="206" height="294" alt="image" src="https://github.com/user-attachments/assets/7b3a6d7e-9bb5-4ebb-8881-57878553a47d" />|<img width="206" height="294" alt="image" src="https://github.com/user-attachments/assets/3a8dc97e-7f71-4c6b-821c-49262e6ff9a9" />|