Commit Graph

  • 8907104e7c comments Mitchell Hashimoto 2022-12-30 15:22:18 -08:00
  • 71355ada31 window should reach into glfw for addWindow for now Mitchell Hashimoto 2022-12-30 15:20:45 -08:00
  • ba0cbecd79 core window doesn't have reference to glfw window anymore! Mitchell Hashimoto 2022-12-30 15:18:32 -08:00
  • fe84686a1d apprt: all mouse callbacks Mitchell Hashimoto 2022-12-30 15:15:35 -08:00
  • 8196481dda apprt: couple more easy callbacks Mitchell Hashimoto 2022-12-30 14:47:31 -08:00
  • 946383eb77 apprt: key/charCallback, input supports all glfw keys Mitchell Hashimoto 2022-12-30 14:45:03 -08:00
  • ff1f1d8925 move the size callback into apprt Mitchell Hashimoto 2022-12-30 13:33:19 -08:00
  • 41399b6871 renderer: make Metal apprt-aware Mitchell Hashimoto 2022-12-29 15:14:59 -08:00
  • 11a3577ef1 rename window package to apprt Mitchell Hashimoto 2022-12-29 15:11:03 -08:00
  • e1cd650245 window: abstract more, it starts Mitchell Hashimoto 2022-12-29 14:51:56 -08:00
  • 6eb5a0238a window: start abstracting a window implementation Mitchell Hashimoto 2022-12-29 14:37:18 -08:00
  • e253d12a7d update zig Mitchell Hashimoto 2022-12-28 20:23:53 -08:00
  • d761bae27b wasm: log should use stack allocated memory first Mitchell Hashimoto 2022-12-26 22:07:33 -08:00
  • af6fb294d0 wasm: use wasm allocator, rather than page allocator Mitchell Hashimoto 2022-12-24 16:41:37 -08:00
  • 2e462a3e7c Merge pull request #67 from mitchellh/wasm-shared Mitchell Hashimoto 2022-12-24 16:37:38 -08:00
  • 241bfee7d4 wasm: use shared, imported memory Mitchell Hashimoto 2022-12-24 16:20:59 -08:00
  • 61450fce25 Test wasm builds in CI Mitchell Hashimoto 2022-12-24 11:04:35 -08:00
  • 134d63d1bc update zig -- should fix codesign issue Mitchell Hashimoto 2022-12-24 10:57:24 -08:00
  • f2a05041d8 update zig again Mitchell Hashimoto 2022-12-22 20:26:01 -08:00
  • 6f3bc5186d update to latest zig Mitchell Hashimoto 2022-12-21 18:30:21 -08:00
  • e210c91d10 update zig version, update @call for newer zig version Mitchell Hashimoto 2022-12-16 22:34:54 -08:00
  • b3090f60af mac: in debug, set locale to en_US if not manually set Mitchell Hashimoto 2022-12-15 14:50:52 -08:00
  • 609ba91cc9 font: clear up some logging Mitchell Hashimoto 2022-12-14 22:06:40 -08:00
  • ad9b773cd8 terminal: printing char outside of ASCII with non-UTF8 charset is space Mitchell Hashimoto 2022-12-14 21:50:32 -08:00
  • 4fae29ff13 terminal: scrollRegionUp outside of range does nothing Mitchell Hashimoto 2022-12-14 21:43:47 -08:00
  • 6f451f22bb terminal: only clear wide spacer head if wide char is not on first line Mitchell Hashimoto 2022-12-14 21:39:45 -08:00
  • 8534e5a186 terminal: insertLines with count 0 no longer crashes Mitchell Hashimoto 2022-12-14 21:29:06 -08:00
  • 0592e4fa1a terminal: osc parser gracefully handles input data larger than buffer Mitchell Hashimoto 2022-12-14 21:24:43 -08:00
  • c7a28fab20 terminal: don't crash if cell claims to have grapheme but doesn't Mitchell Hashimoto 2022-12-14 21:19:23 -08:00
  • 4a3e2b35b9 terminal: parse table needs to have room for all chars Mitchell Hashimoto 2022-12-14 21:10:22 -08:00
  • 36c6e95dfc terminal: ignore invalid C0 escape codes Mitchell Hashimoto 2022-12-14 20:57:31 -08:00
  • c01a9f583f zero-width chars are ignored if they're at col 0 Mitchell Hashimoto 2022-12-14 19:20:05 -08:00
  • 9f92b5aa0a Merge pull request #65 from mitchellh/canvas Mitchell Hashimoto 2022-12-13 22:25:45 -08:00
  • 05a5cfddb5 font: web canvas sprite trapezoid Mitchell Hashimoto 2022-12-13 22:22:00 -08:00
  • c391d0f3de font: web canvas sprite font can composite Mitchell Hashimoto 2022-12-13 22:17:27 -08:00
  • bf054e5b44 font: web canvas sprite font can write to atlas Mitchell Hashimoto 2022-12-13 22:01:13 -08:00
  • b48a0db040 font: web canvas rect sprite func Mitchell Hashimoto 2022-12-13 21:46:33 -08:00
  • c9755f5fd1 font: mostly empty web canvas sprite renderer, but compiles Mitchell Hashimoto 2022-12-13 21:19:40 -08:00
  • 68e697dcbe font: remove getData from canvas Mitchell Hashimoto 2022-12-13 21:09:09 -08:00
  • ead8610604 font: Box font uses canvas abstraction Mitchell Hashimoto 2022-12-13 21:08:45 -08:00
  • b21e18a9e6 font: start converting Box font to our abstract canvas interface Mitchell Hashimoto 2022-12-13 16:16:56 -08:00
  • c34d911488 wasm: disable stack protector Mitchell Hashimoto 2022-12-13 10:03:26 -08:00
  • a87b21dbee font: mac should use freetype rasterizer by default Mitchell Hashimoto 2022-12-12 22:12:11 -08:00
  • c8252133a3 update zig version Mitchell Hashimoto 2022-12-12 22:10:52 -08:00
  • 0ab8eff069 update example to show multi-codepoint grapheme Mitchell Hashimoto 2022-12-12 22:05:27 -08:00
  • 21b750fa65 Merge pull request #64 from mitchellh/shaper-abs Mitchell Hashimoto 2022-12-12 21:57:40 -08:00
  • bc74033ad6 face: web canvas can render grapheme clusters Mitchell Hashimoto 2022-12-12 21:40:54 -08:00
  • a1dda2c37f font: faceFromIndex returns a pointer to the face Mitchell Hashimoto 2022-12-12 21:33:02 -08:00
  • c06ca04a1a font: web canvas tracks glyph indexes for grapheme clusters Mitchell Hashimoto 2022-12-12 11:31:30 -08:00
  • 2b3478ce3d font: start web canvas shaping, we perform grapheme clustering Mitchell Hashimoto 2022-12-11 22:12:12 -08:00
  • 35000bced1 font: shaper test should decode unicode codepoints Mitchell Hashimoto 2022-12-08 12:42:09 -08:00
  • 0c9a9b1f91 font: web canvas face has to render to check presentation for cp Mitchell Hashimoto 2022-12-07 19:20:04 -08:00
  • 2c5b5429e3 wasm: build.zig uses addDeps for wasm Mitchell Hashimoto 2022-12-07 18:39:46 -08:00
  • f53d9fb704 font: web canvas shaper yields runs Mitchell Hashimoto 2022-12-07 18:29:49 -08:00
  • dd71456f35 font: shapers init with allocator since web canvas needs to init buffer Mitchell Hashimoto 2022-12-06 13:39:18 -08:00
  • 760f0c057c renderer: use new shaper structs Mitchell Hashimoto 2022-12-06 13:25:52 -08:00
  • f0b7fbecee font: extract common shaper elements out Mitchell Hashimoto 2022-12-06 13:23:53 -08:00
  • e3c18f3f51 font: move shaper into comptime interface Mitchell Hashimoto 2022-12-06 11:20:37 -08:00
  • b043748794 Merge pull request #62 from mitchellh/web-emoji Mitchell Hashimoto 2022-12-06 11:01:27 -08:00
  • 6aa212707e font: web canvas can render emoji Mitchell Hashimoto 2022-12-06 10:55:42 -08:00
  • 41cbc1a323 wasm: show color atlas in example web app Mitchell Hashimoto 2022-12-05 21:33:54 -08:00
  • 10f708ee65 wasm: export terminal core API Mitchell Hashimoto 2022-12-05 21:27:20 -08:00
  • 95b89149aa Merge pull request #61 from mitchellh/font-group Mitchell Hashimoto 2022-12-05 21:18:55 -08:00
  • 5993528f33 font: GroupCache is wasm compatible Mitchell Hashimoto 2022-12-05 21:01:56 -08:00
  • 62990bb33e font: Group is now wasm-compatible Mitchell Hashimoto 2022-12-05 20:52:03 -08:00
  • aaa0d46b5d font: web canvas doesn't support discovery Mitchell Hashimoto 2022-12-05 20:37:17 -08:00
  • 5291501251 font: DeferredFace is wasm-compatible Mitchell Hashimoto 2022-12-05 20:28:50 -08:00
  • e71dc470fd Merge pull request #60 from mitchellh/font-canvas Mitchell Hashimoto 2022-12-05 17:02:37 -08:00
  • 2a74330911 font: begin making Group work with wasm Mitchell Hashimoto 2022-12-05 16:08:20 -08:00
  • d2afddb7e2 font: fix some JS memory leaks Mitchell Hashimoto 2022-12-05 15:45:31 -08:00
  • ed4e8c36b0 font: add 1 to the canvas glyph to avoid clipping Mitchell Hashimoto 2022-12-05 15:37:55 -08:00
  • 25f2f1a652 font: fix glyph offset calculations for render Mitchell Hashimoto 2022-12-05 15:25:09 -08:00
  • 5e9dd02eab font: add method for drawing atlas to canvas Mitchell Hashimoto 2022-12-05 15:01:34 -08:00
  • 84f6f37450 face: web canvas glyph rendering appears to work! Mitchell Hashimoto 2022-12-05 14:28:10 -08:00
  • 19e326dab6 font: working on rendering glyphs in canvas Mitchell Hashimoto 2022-12-05 10:54:40 -08:00
  • d3b46eeeaf fix zig-js so wasm-test works Mitchell Hashimoto 2022-12-04 22:07:50 -08:00
  • df302fc2b6 calculate font metrics via canvas Mitchell Hashimoto 2022-12-04 22:01:58 -08:00
  • 37f00ac725 don't export coretext/freetype Mitchell Hashimoto 2022-12-04 13:19:29 -08:00
  • c48d8cd151 hook up logging to wasm, example uses new zig-js package Mitchell Hashimoto 2022-12-04 13:16:54 -08:00
  • 437f1772f1 logging works for wasm Mitchell Hashimoto 2022-12-04 12:29:11 -08:00
  • 940828ed97 font: web canvas creates a canvas element Mitchell Hashimoto 2022-12-03 22:11:01 -08:00
  • 21faf0b6fb add zig-js Mitchell Hashimoto 2022-12-03 21:46:00 -08:00
  • fc618d37b2 Merge branch 'wasm' Mitchell Hashimoto 2022-12-03 21:36:21 -08:00
  • f82593bcae update zig Mitchell Hashimoto 2022-12-03 21:35:31 -08:00
  • 1840829e9e add node for web stuff Mitchell Hashimoto 2022-12-03 21:34:14 -08:00
  • c32219554a blank out web canvas impl Mitchell Hashimoto 2022-11-30 17:47:32 -08:00
  • b858aea124 Start scaffolding web_canvas backend Mitchell Hashimoto 2022-11-30 15:05:09 -08:00
  • 6b101c2293 support unit testing wasm via wasmtime Mitchell Hashimoto 2022-11-30 15:04:45 -08:00
  • 3a4d881444 wasm allocator, consider "host-owned" pointers Mitchell Hashimoto 2022-11-30 15:00:39 -08:00
  • 24cc01e055 move wasm main to src/, export an Atlas API Mitchell Hashimoto 2022-11-29 12:24:46 -08:00
  • fe805f1031 update zig Mitchell Hashimoto 2022-12-01 12:59:40 -08:00
  • 6ad45f0237 update zig Mitchell Hashimoto 2022-11-30 16:54:04 -08:00
  • 67f8c231f8 update nixpkgs to 22.11 Mitchell Hashimoto 2022-11-29 14:44:36 -08:00
  • 8ac759fa52 update zig again Mitchell Hashimoto 2022-11-29 13:00:57 -08:00
  • 88c37fb617 update zig version Mitchell Hashimoto 2022-11-29 12:57:42 -08:00
  • 7c4d024aba update mach for macOS Ventura Mitchell Hashimoto 2022-11-29 10:13:21 -08:00
  • f871630fa4 move Atlas to font Mitchell Hashimoto 2022-11-28 10:35:46 -08:00
  • 2796a0b964 font: when resizing a glyph, scale metrics by same ratio Mitchell Hashimoto 2022-11-27 22:06:25 -08:00
  • 29cc8312d5 revert Mitchell Hashimoto 2022-11-27 21:45:10 -08:00
  • 4a3376d916 fix crash with cursor going off screen on resize Mitchell Hashimoto 2022-11-27 21:06:11 -08:00