Behdad Esfahbod
fd2a6968ab
[draw] hb_draw_line: add cap parameter (butt / square)
...
Add hb_draw_line_cap_t enum with HB_DRAW_LINE_CAP_BUTT (the
existing default behavior) and HB_DRAW_LINE_CAP_SQUARE, which
extends each endpoint along the line direction by half its
local stroke width.
Square caps let four hb_draw_line() calls form a closed
rectangle without gaps at the corners -- a meaningfully
cheaper alternative to hb_draw_rect() for thin outlined
rectangles, since each line's bbox is just stroke_width tall
instead of covering the full rectangle interior.
Round caps not implemented yet; can be added as a third enum
value when a use case shows up.
Assisted-by: Claude <noreply@anthropic.com >
2026-04-15 02:35:10 -06:00
..
2025-02-26 14:41:04 -07:00
2025-09-02 15:40:51 -06:00
2025-06-08 13:43:27 +03:00
2025-04-06 03:49:15 -06:00
2025-07-02 20:14:51 +03:00
2026-03-26 22:27:40 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2022-08-12 12:23:48 -06:00
2022-08-12 12:23:48 -06:00
2025-04-06 18:08:50 -06:00
2026-02-15 17:30:16 +02:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-25 19:04:37 -06:00
2026-01-10 07:42:07 -07:00
2025-03-23 15:40:41 +02:00
2025-04-06 18:08:50 -06:00
2025-06-08 13:43:27 +03:00
2024-10-07 13:24:14 -06:00
2025-04-06 03:49:15 -06:00
2021-11-01 17:59:48 -07:00
2025-04-06 03:49:15 -06:00
2026-04-09 14:57:29 -06:00
2026-01-10 07:42:07 -07:00
2023-01-24 21:35:04 -07:00
2026-04-15 02:35:10 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 19:16:43 -06:00
2020-06-18 22:56:07 +04:30
2025-04-06 03:49:15 -06:00
2026-03-10 00:19:39 -06:00
2025-04-06 03:49:15 -06:00
2026-03-10 00:19:39 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-05 22:37:10 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2025-04-05 22:37:10 -06:00
2025-04-06 03:49:15 -06:00
2025-03-12 11:02:43 -06:00
2026-04-11 22:46:35 -06:00
2026-02-13 15:06:01 -07:00
2025-05-23 14:31:58 -06:00
2025-04-06 03:49:15 -06:00
2024-02-10 07:08:18 -07:00
2020-01-31 16:37:30 -05:00
2023-11-06 16:49:09 -07:00
2023-11-06 16:49:09 -07:00
2024-11-11 13:45:08 -07:00
2020-01-29 10:21:00 -05:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2021-09-16 15:31:29 -06:00
2021-07-29 18:30:27 -07:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2021-07-29 18:30:27 -07:00
2025-04-06 02:34:48 -06:00
2025-04-06 02:34:48 -06:00
2020-01-15 13:36:01 -08:00
2021-07-29 18:30:27 -07:00
2025-04-06 03:49:15 -06:00
2025-09-10 12:15:49 -04:00
2025-06-08 13:43:27 +03:00
2025-04-06 03:49:15 -06:00