1309 Commits

Author SHA1 Message Date
Mitchell Hashimoto
278668c953 font: draw single and double underlines as sprites 2022-11-27 15:14:49 -08:00
Mitchell Hashimoto
584149121d use enum for underline styles 2022-11-27 14:16:51 -08:00
Mitchell Hashimoto
84efd2ac5f font: use Canvas more, Canvas rect 2022-11-27 14:08:15 -08:00
Mitchell Hashimoto
28d386967d font: introduce Canvas, start converting Box 2022-11-27 13:54:43 -08:00
Mitchell Hashimoto
abfffdcabe pkg/pixman: more getters 2022-11-27 13:54:30 -08:00
Mitchell Hashimoto
b34e336c5c rearrange box rendering to prepare for more sprite drawing 2022-11-27 10:17:12 -08:00
Mitchell Hashimoto
3fbeca914b terminal: fix possible crash when increasing columns in resize
If a cell has graphemes attached to it, we'd share the grapheme map.
This copies it.
2022-11-26 17:44:08 -08:00
Mitchell Hashimoto
d64b0e371e terminal: copy grapheme map when resizing and ensure proper cleanup 2022-11-26 17:33:52 -08:00
Mitchell Hashimoto
e877dbf861 Merge pull request #56 from mitchellh/pixman
Procedurally generate and support box-drawing glyphs
2022-11-25 15:39:03 -08:00
Mitchell Hashimoto
b365ccca0b fix comment 2022-11-25 15:38:45 -08:00
Mitchell Hashimoto
f01930695a metal: continue to render if single cell fails 2022-11-25 15:30:03 -08:00
Mitchell Hashimoto
1062a39681 more glyphs 2022-11-25 15:28:47 -08:00
Mitchell Hashimoto
4cac375fcf more 2022-11-25 15:22:59 -08:00
Mitchell Hashimoto
d2727b1f5c more wedges 2022-11-25 15:18:36 -08:00
Mitchell Hashimoto
120dfb4043 more wedges 2022-11-25 15:12:34 -08:00
Mitchell Hashimoto
2c9b3e2f9b wedge triangles 2022-11-25 15:02:12 -08:00
Mitchell Hashimoto
7676c1c52b sextants 2022-11-25 14:41:17 -08:00
Mitchell Hashimoto
781571d7fb braille 2022-11-25 14:26:19 -08:00
Mitchell Hashimoto
43c89cb449 more glyphs 2022-11-25 14:10:31 -08:00
Mitchell Hashimoto
88ff221d6d pkg/pixman: fill rects 2022-11-25 14:10:25 -08:00
Mitchell Hashimoto
353172199a lot more boxes 2022-11-25 13:53:24 -08:00
Mitchell Hashimoto
f727b30ca6 more box fonts 2022-11-25 13:36:26 -08:00
Mitchell Hashimoto
f1a052640c pkg/pixman: rasterize trapezoids 2022-11-25 13:36:17 -08:00
Mitchell Hashimoto
179f5e6283 opengl: continue rendering if single cell has error 2022-11-25 13:16:07 -08:00
Mitchell Hashimoto
8ad5dd1853 arc glyphs 2022-11-25 13:04:44 -08:00
Mitchell Hashimoto
336d2c4e13 pkg/pixman: more image APIs 2022-11-25 11:34:31 -08:00
Mitchell Hashimoto
72cd107e6a many more boxes 2022-11-25 10:57:38 -08:00
Mitchell Hashimoto
ef16ba263f 16 more 2022-11-25 10:40:33 -08:00
Mitchell Hashimoto
58292e5930 16 more 2022-11-24 12:01:15 -08:00
Mitchell Hashimoto
dcd16c4d95 16 more 2022-11-24 11:49:17 -08:00
Mitchell Hashimoto
d8561ba23a 16 more 2022-11-24 11:27:32 -08:00
Mitchell Hashimoto
8033a4a665 more 2022-11-24 11:16:22 -08:00
Mitchell Hashimoto
3b3c93af02 metal: support for box glyphs 2022-11-24 10:21:28 -08:00
Mitchell Hashimoto
fc8f36a59e more glyphs for the glyph god 2022-11-24 10:21:28 -08:00
Mitchell Hashimoto
6e30238d36 more... more... 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
fbd5eba11a font: more box glyphs 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
cb8f55229b remove test code 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
6b2ca86ed8 fix offset for box glyphs 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
b9f97217ab font: shaper handles special fonts 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
9bc8d85d67 test rendering box glyphs, looks OKAY 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
4b8b5c5fc1 font: skeleton for box drawing and hook up to Group 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
ca97c63a65 font: detect box glyphs, start littering stuff to denote special fonts 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
5c58067489 add pixman package 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
433d41fa9a pkg/pixman: add more types 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
ac4a45bdf3 pkg/pixman: fix math for bpp calculation 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
894d36f28a build: support for dynamic linking pixman 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
5f77ac145c pkg/pixman: some drawing 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
699370bd4a pkg/pixman: starting API 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
ef65b261de vendor/pixman and basic building 2022-11-24 10:21:27 -08:00
Mitchell Hashimoto
84b1ae9a3c set IUTF8 on the pty
This is important on Mac since the pty by default on Mac does NOT have
this enabled. Without this, attempting to read/write UTF-8 characters
in the raw pty layer would sometimes turn into '?' even though ghostty
fully supports it.
2022-11-24 10:20:18 -08:00