210 Commits

Author SHA1 Message Date
Mitchell Hashimoto
699da6fcfe update mach 2022-10-13 11:03:23 -07:00
Mitchell Hashimoto
939e6e7a65 pkg/harfbuzz: add coretext compilation on macOS 2022-10-02 11:05:40 -07:00
Mitchell Hashimoto
12c9482d48 Mac Font Discovery with CoreText (#17)
This implements font discovery so the `--font-family` flag works for macOS. Fonts are looked up using the Core Text API so any installed font on the Mac system can be used. 

We still use FreeType for rendering, and CoreText doesn't _quite_ give us all the information we need to build the exact face in FreeType. So a TODO after this is to now implement glyph _rendering_ using Core Text and Core Graphics. Until then, a couple fonts don't quite work (i.e. Monaco, a big one!) but many do!
2022-10-01 22:21:30 -07:00
Mitchell Hashimoto
f9e1127317 pkg/macos: add CoreText 2022-09-30 14:48:06 -07:00
Mitchell Hashimoto
ab4491a45d pkg/macos: start core foundation bindings 2022-09-30 14:03:37 -07:00
Mitchell Hashimoto
68786814f8 -Dtest-exe flag to build and install test executables
This will be used to copy tests to other platforms.
2022-09-30 13:05:23 -07:00
Mitchell Hashimoto
141182aa13 start adding fontconfig conditional compilation 2022-09-23 14:12:38 -07:00
Mitchell Hashimoto
72105fc6cd update to the latest stage2 compiler we can 2022-09-23 12:08:06 -07:00
Mitchell Hashimoto
77851b30a2 Revert "update to latest Zig nightly"
This reverts commit f3f2c3df268db905b6af6588e5e5008da0f48b60.
2022-09-14 19:39:10 -07:00
Mitchell Hashimoto
f3f2c3df26 update to latest Zig nightly 2022-09-14 19:34:19 -07:00
Mitchell Hashimoto
4ca71eef7c don't build fontconfig on mac 2022-09-13 14:46:33 -07:00
Mitchell Hashimoto
59191b05cd build fontconfig 2022-09-13 14:34:40 -07:00
Mitchell Hashimoto
367aba62c4 Add harfbuzz build (not used yet) 2022-08-28 10:09:39 -07:00
Mitchell Hashimoto
da79aae0ab terminal: print wide characters 2022-08-20 16:11:48 -07:00
Mitchell Hashimoto
ecf8353c74 support dynamic linking (not default) test in GH actions 2022-08-20 15:21:24 -07:00
Mitchell Hashimoto
32d96dd49b add utf8proc so we can detect unicode char width 2022-08-20 10:48:54 -07:00
Mitchell Hashimoto
5ae450099d freetype builds in png support, uses our own zlib 2022-08-20 10:33:57 -07:00
Mitchell Hashimoto
728df4af16 build libpng and link freetype to it 2022-08-20 10:24:49 -07:00
Mitchell Hashimoto
e5c583ccf5 get rid of gb_math and create matrices from scratch 2022-08-18 11:33:28 -07:00
Mitchell Hashimoto
ffa9ddc0d9 only build tracy if enabled 2022-08-17 17:03:38 -07:00
Mitchell Hashimoto
08292e58f3 add system SDK to build to enable cross compilation 2022-08-17 14:53:34 -07:00
Mitchell Hashimoto
5c2edf4d2a Fix some stage2 compilation errors 2022-08-17 14:42:23 -07:00
Mitchell Hashimoto
2f36d5f715 pkg/tracy 2022-08-17 14:03:49 -07:00
Mitchell Hashimoto
ea1e972a29 turn tracy into proper package 2022-08-17 14:02:09 -07:00
Mitchell Hashimoto
2457454b07 test wasm of the term package 2022-08-17 13:57:21 -07:00
Mitchell Hashimoto
ead6e5a435 src/terminal can build into a minimal wasm library, I think 2022-08-17 12:25:53 -07:00
Mitchell Hashimoto
f2d65d4524 move freetype into pkg 2022-08-17 11:20:31 -07:00
Mitchell Hashimoto
b2192ea8f7 move libuv into pkg 2022-08-16 17:47:44 -07:00
Mitchell Hashimoto
c09498318a don't install conformance tests 2022-07-26 09:55:37 -07:00
Mitchell Hashimoto
079e5e6ccf update to latest zig 2022-07-21 09:03:39 -07:00
Mitchell Hashimoto
312434a4b7 support building with musl, although it doesn't run currently 2022-07-17 19:40:48 -07:00
Mitchell Hashimoto
0dbd4d2ca6 only compile tracy on linux 2022-06-26 10:43:00 -07:00
Mitchell Hashimoto
989d23e9fc update deps and fixes for NixOS 22.05 2022-06-01 18:00:37 -07:00
Mitchell Hashimoto
afb8bb6d60 Add conformance apps 2022-05-09 17:28:14 -07:00
Mitchell Hashimoto
10736e2eb4 initial tracy support 2022-04-29 09:15:49 -07:00
Mitchell Hashimoto
70693872f7 use OpenGL on Mac 2022-04-23 14:28:01 -07:00
Mitchell Hashimoto
8b0d914ddc improve building on darwin 2022-04-23 14:00:21 -07:00
Mitchell Hashimoto
cca32c4d1c embedded libuv loop. still some issues:
1. 100% CPU if no handles/requests
2. slow to exit cause it waits for the next tick
2022-04-22 10:01:52 -07:00
Mitchell Hashimoto
21ee510471 starting libuv bindings 2022-04-21 09:33:32 -07:00
Mitchell Hashimoto
e672c9d7d5 calculate grid size in dedicated struct, tests 2022-04-15 08:16:22 -07:00
Mitchell Hashimoto
80490cb80d remove ftgl build 2022-04-05 19:54:48 -07:00
Mitchell Hashimoto
e33aeea723 starting FontAtlas 2022-04-05 17:57:09 -07:00
Mitchell Hashimoto
c4fb335a6b zig native atlas implementation 2022-04-05 12:04:10 -07:00
Mitchell Hashimoto
27f3e89316 Makefile with task for updating glad 2022-04-04 14:52:47 -07:00
Mitchell Hashimoto
c6f1be3343 move from epoxy to glad 2022-04-04 14:35:19 -07:00
Mitchell Hashimoto
c42bf7c663 build freetype-gl 2022-04-04 14:14:20 -07:00
Mitchell Hashimoto
1a40544220 gb_math 2022-04-04 11:11:24 -07:00
Mitchell Hashimoto
e0b2aefad0 cglm 2022-04-04 09:51:58 -07:00
Mitchell Hashimoto
670af17a1b getting closer to dumb font rendering 2022-04-03 22:04:42 -07:00
Mitchell Hashimoto
66c50b3815 don't build stb 2022-04-03 20:40:35 -07:00