Commit Graph

479 Commits (main)

Author SHA1 Message Date
Mitchell Hashimoto a30e791c85
begin 0.13 update process -- very broken 2024-06-24 15:16:22 -07:00
Qwerasd 626ec2b5ac perf: introduce CFReleaseThread for running CoreFoundation releases
Some CoreFoundation objects, such as those produced by CoreText, have
expensive callbacks that run when they are released. By offloading the
CFRelease calls to another thread, we can avoid important threads being
blocked by unexpectedly expensive callbacks.

This commit also changes the way that the coretext shaper's run iterator
builds its string. Rather than using a CFMutableString, an ArrayList of
unichars is built which is passed to CFStringCreateWithCharactersNoCopy,
which is a lot more efficient since it avoids all the CoreFoundation
overhead.
2024-06-14 01:43:02 -04:00
Mitchell Hashimoto a205e1e2c1
pkg/freetype: use c_ulong which isn't 64-bit on windows 2024-05-28 20:49:21 -07:00
Mitchell Hashimoto adaeffb2b5
font/freetype: CBDT/CBLC tables imply color 2024-05-28 20:40:46 -07:00
Mitchell Hashimoto 4daa49fe27
font/freetype: update to new presentation APIs 2024-05-28 20:25:49 -07:00
Mitchell Hashimoto 8920f45fd8
font/freetype: API to load font table 2024-05-28 09:48:01 -07:00
Mitchell Hashimoto 1a7cde9e3e
font/coretext: can read font tables 2024-05-27 20:23:10 -07:00
Mitchell Hashimoto 9f4d4d3c61
font: treated fonts with mixed color/non-color glyphs as text
Related to #1768 but doesn't fix it properly.

This is a temporary hack to avoid some issues with fonts that have mixed
color/non-color glyphs. If there are mixed presentations and the font
does not have emoji codepoints, then we assume it is text. This fixes
the typical scenarios.

This is not a long term solution. A proper long term solution is to
detect this scenario and on a per-glyph basis handle colorization (or
the lack thereof) correctly. It looks like to do this we'll have to
parse some font tables which is considerably more work so I wanted to do
this first.
2024-05-26 10:17:20 -07:00
Mitchell Hashimoto a11c7ac785
update Dear Imgui to 1.90.6 2024-05-10 10:17:33 -07:00
Mitchell Hashimoto 3c0703eafb
Revert "pkg/libxml2: udpate"
This reverts commit 7df335dde9.
2024-05-09 21:05:38 -07:00
Mitchell Hashimoto 12e059d275
pkg/zlib: update 2024-05-09 21:01:08 -07:00
Mitchell Hashimoto 7df335dde9
pkg/libxml2: udpate 2024-05-09 21:00:18 -07:00
Mitchell Hashimoto 240c60b62a
pkg/libpng: update 2024-05-09 20:59:28 -07:00
Mitchell Hashimoto 650bf3788f
pkg/glslang update 2024-05-09 20:57:28 -07:00
Mitchell Hashimoto 6672568473
pkg/harfbuzz: update 2024-05-09 20:55:02 -07:00
Mitchell Hashimoto 0c0b67c887
pkg/highway: update 2024-05-09 20:53:45 -07:00
Mitchell Hashimoto 8b7bca53c1
pkg/simdutf: update to 5.2.8 2024-05-09 20:50:54 -07:00
Qwerasd fb913f0d9e Enable libpng in harfbuzz freetype dep
Without this, this replaces the dep on the main level, breaking color glyphs
2024-05-09 00:03:40 -04:00
Mitchell Hashimoto 1cb70d6e40
font/coretext: force LTR shaping 2024-05-08 10:11:57 -07:00
Mitchell Hashimoto eeb7f7aa02
pkg/macos: add more text APIs 2024-05-08 09:49:16 -07:00
Mitchell Hashimoto 1189817dd8
pkg/macos: CTFontCreateForString 2024-05-05 21:38:19 -07:00
Mitchell Hashimoto a29a0a1e5c
pkg/macos: add more CoreText APIs 2024-05-05 21:01:44 -07:00
Mitchell Hashimoto cc72e6de23
pkg/macos: display link callback slightly more typesafe 2024-05-04 14:49:49 -07:00
Mitchell Hashimoto f76af48613
pkg/macos: add CVDisplayLinkSetCurrentCGDisplay 2024-05-04 14:49:49 -07:00
Gordon Cassie abd782a7aa
Fix typo. 2024-04-30 10:20:31 -07:00
Mitchell Hashimoto 595f24585e
working on more zig breaking changes 2024-04-17 20:50:50 -07:00
Mitchell Hashimoto 026484fea6
fix more comptime var leaks 2024-04-17 20:50:50 -07:00
Mitchell Hashimoto 61d3da1bf6
font/coretext: respect quirks fonts for shaper 2024-04-04 12:02:43 -07:00
Mitchell Hashimoto 290496d7fe
pkg/macos: add missing functions to macos/foundation 2024-04-04 11:25:34 -07:00
Krzysztof Wolicki edaafdf57a build API change: update usage of addCSourceFiles 2024-02-26 18:00:43 +01:00
Mitchell Hashimoto 63ca2c0f0c
pkg/apple-sdk: more descriptive error when SDK not found 2024-02-14 08:56:11 -08:00
Mitchell Hashimoto 4ae41579da
add utf8proc back for bench 2024-02-08 13:21:36 -08:00
Mitchell Hashimoto 8bbcf6821a
pkg: remove unused files, add highway API to get targets 2024-02-05 21:22:28 -08:00
Mitchell Hashimoto 120273aa1a
pkg/utfcpp 2024-02-05 21:22:27 -08:00
Mitchell Hashimoto 626d4170fe
move simdutf to a pkg 2024-02-05 21:22:27 -08:00
Mitchell Hashimoto 36b0db2a72
pkg/highway 2024-02-05 21:22:26 -08:00
Mitchell Hashimoto 7b3deb13d8
renderer/metal: apply layerContentsPlacement on macOS to fix stretching
Fixes #42
2024-02-02 08:39:08 -08:00
Mitchell Hashimoto 2f5f14df9f
pkg/apple-sdk: use std.zig.system.darwin.getSdk 2024-01-26 08:31:30 -08:00
Jakub Konka f98b5b7417 apple-sdk: use zig's libstd getSdk to get active Apple SDK 2024-01-26 12:04:49 +01:00
Mitchell Hashimoto 8d4416995b
build: no more resolved target hack
This was necessary to fix `zig build test` but since #1305 this is not
necessary anymore.
2024-01-15 14:33:56 -08:00
Krzysztof Wolicki f75558b387 Use addCSourceFiles with dependency instead of manually adding files in a loop 2024-01-15 23:23:41 +01:00
Mitchell Hashimoto 3360a008cd
build: build produces a broken object file for iOS
This gets `zig build -Dtarget=aarch64-ios` working. By "working" I mean
it produces an object file without compiler errors. However, the object
file certainly isn't useful since it uses a number of features that will
not work in the iOS sandbox.

This is just an experiment more than anything to see how hard it would be to
get libghostty working within iOS to render a terminal. Note iOS doesn't
support ptys so this wouldn't be a true on-device terminal. The
challenge right now is to just get a terminal rendering (not usable).
2024-01-13 21:38:58 -08:00
Mitchell Hashimoto 29717269ca
build: remove tracy completely 2024-01-13 14:30:56 -08:00
Mitchell Hashimoto c24d7d6de6
pkg/harfbuzz: get zig build test working on macOS 2024-01-10 20:26:41 -08:00
Mitchell Hashimoto 5bca3a4044
pkg/apple-sdk: only exec to get xcode path once per build 2024-01-10 09:35:37 -08:00
Mitchell Hashimoto 41de9c6e97
pkg/apple-sdk: depend on macOS 14 SDK 2024-01-10 09:32:24 -08:00
Mitchell Hashimoto 7e1f1d360f
pkg/apple-sdk add comment 2024-01-09 22:32:39 -08:00
Mitchell Hashimoto 22648d60e7
pkg/apple-sdk: detect apple sdk based on target 2024-01-09 22:24:34 -08:00
Mitchell Hashimoto 829776bebd
pkg/apple-sdk: always require a module 2024-01-09 22:11:03 -08:00
Mitchell Hashimoto fde52e9eca
pkg/macos: only link apple paths on darwin target 2024-01-09 21:58:56 -08:00
Mitchell Hashimoto c0722b3652
build: use Xcode for the macOS SDK 2024-01-09 21:53:01 -08:00
Krzysztof Wolicki 3c78df70fb Maybe this will help macos 2024-01-07 21:39:53 +01:00
Krzysztof Wolicki b27fc44837 Link frameworks to macos module conditionally 2024-01-07 21:22:09 +01:00
Krzysztof Wolicki 2f5bcf2e27 Attempt to fix building on macos 2024-01-07 21:17:17 +01:00
Krzysztof Wolicki 5698607a1c Clean pkg/fontconfig/build.zig 2024-01-07 20:54:22 +01:00
Krzysztof Wolicki 9964a55d47 Update source for zig-build-macos-sdk for pkg/apple-sdk 2024-01-07 20:48:00 +01:00
Krzysztof Wolicki f917be968d
Merge branch 'mitchellh:main' into main 2024-01-07 19:13:06 +01:00
Krzysztof Wolicki ddebb31b8a Add include paths to more modules in pkg/ 2024-01-07 19:07:16 +01:00
Krzysztof Wolicki 6c7c5eecce Add include paths to freetype module 2024-01-07 18:45:07 +01:00
Krzysztof Wolicki 9e14a7ea62 Add include paths to modules in pkg/ 2024-01-07 17:39:39 +01:00
Mitchell Hashimoto efd196e5c9
pkg/freetype: unknown errors should be reported, not unreachable 2024-01-05 21:08:39 -08:00
Krzysztof Wolicki 1913243c35 WIP: Update to new build module API after Zig PR #18160
Temporarily change dependency sources to forks until they update
2024-01-03 21:50:32 +01:00
Mitchell Hashimoto 3fc5b02d73
pkg/fontconfig: move some dependencies to our own mirror
These are unmodified, so users can still verify the checksum with the
official downloads if they feel unsafe.
2024-01-02 15:27:59 -08:00
Kyaw 22d631942c
font/coretext: use `CTFontCopyFamilyName`
Use `CTFontCopyFamilyName` instead of `CTFontCopyDisplayName` to get
the font name to match the behavior of how it's done on freetype
backend.
2023-12-15 02:26:47 +06:30
Mitchell Hashimoto 489ed57e2f
font/harfbuzz: track x/y offsets 2023-12-11 21:41:13 -08:00
Mitchell Hashimoto cc0b615552
pkg/macos: more APIs 2023-12-11 20:48:45 -08:00
Mitchell Hashimoto 0137f5b0d3
pkg/macos: add many more text APIs 2023-12-11 11:12:29 -08:00
Mitchell Hashimoto ff68c56268
pkg/macos: implement CTRun 2023-12-11 11:12:28 -08:00
Carlos Alexandro Becker 25856d62aa
Remove FiraCode leftovers
from #993

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-12-06 13:36:05 -03:00
Krzysztof Wolicki 0750698b62 Update to latest master,
update libxev dependency,
change mach_glfw to an updated fork until upstream updates
2023-11-30 21:41:33 +01:00
Mitchell Hashimoto 5db002cb12
renderer/metal: underline urls 2023-11-29 15:30:21 -08:00
Mitchell Hashimoto 27585ae18a
pkg/oniguruma: better regex api 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto 364020973c
pkg/oniguruma: search 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto 4d3c7212d8
pkg/oniguruma: init regex object 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto c0a06ab523
pkg/oniguruma: basic build 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto 76c76ce85e
renderer/opengl: upload kitty image textures 2023-11-19 22:08:07 -08:00
Mitchell Hashimoto c8a51a2158
renderer/opengl: create the screen texture 2023-11-17 21:51:06 -08:00
Mitchell Hashimoto 47971e7663
renderer/opengl: setup uniform buffer objects for custom shaders 2023-11-17 21:51:06 -08:00
Mitchell Hashimoto 1fedc912f0
renderer/opengl: create ubos 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto fb0929a11b
renderer/opengl: extract cell program state to dedicated struct 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto 3aa217ad2e
pkg/opengl: add Framebuffer APIs 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto 8576acb89e
renderer/opengl: move opengl API to pkg/opengl 2023-11-17 21:51:04 -08:00
Mitchell Hashimoto 01a73994cb
renderer/metal: setup sampler state 2023-11-17 21:50:53 -08:00
Mitchell Hashimoto dba78b20ca
renderer: shadertoy convert to MSL 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 1bd92619b1
renderer: shadertoy functions 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 3a4aef2dcd
pkg/spirv-cross: correct c header 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 7821e6aa3a
pkg/spirv-cross 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 6634ccc09c
pkg/spirv-cross 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 9715eef388
pkg/glslang: build SPIRV lib 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 54ee8c1e3d
pkg/glslang: complete the API 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 4afaea19d6
pkg/glslang: shader api 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 6ebbea84d5
pkg/glslang: can build 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto 0230222c0d
pkg/macos: add CoreVide for DisplayLink 2023-11-17 21:50:34 -08:00
Krzysztof Wolicki 44a48f62f1 change unmodified `var`s to `const`s in anticipation of zig changes 2023-11-17 15:46:46 +01:00
Mitchell Hashimoto 4781a83e4a
replace utf8proc with ziglyph 2023-11-07 13:17:56 -08:00
Mitchell Hashimoto cb684e35cc
font/coretext: discovery scoring should take into account symb. traits
Fixes #707

Our scoring algorithm previously did not take into account symbolic
traits, so when `bold = false and italic = false`, regular, bold, italic
would all be equally likely to appear first.

This modifies our scoring algorithm to prioritize matching symbolic
traits. Further, we have a special case for no symbolic traits to
prioritize "Regular" named styles. We can expand this to other styles
too but we do not do this here.

We also modified the algorithm to always prefer fonts with more glyphs
over fonts with less, hopeful that we can load fewer fonts for other
glyphs later.
2023-11-03 22:21:34 -07:00
Mitchell Hashimoto 55f681a0fd
inspector is scaled to native dpi 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto e62a8bbaae
pkg/cimgui: use freetype for font rendering 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto a6dfad9689
pkg/cimgui: requires libcpp 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto 9fb4497675
pkg/cimgui: add osx backend 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto 3ac6e8392d
pkg/cimgui: add metal backend 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto 869e4133f1
apprt/gtk: can render imgui 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto efddef9d1c
build: add cimgui to build 2023-10-24 15:27:13 -07:00
Mitchell Hashimoto aaa74c40c3
pkg/cimgui 2023-10-24 15:27:13 -07:00
Mitchell Hashimoto cbdf52864a
Merge pull request #704 from der-teufel-programming/windows-test
Get `zig build test` working on Windows
2023-10-23 08:52:43 -07:00
Mitchell Hashimoto b9b33ab25d
pkg/fontconfig: make iconv build param non-windows specific 2023-10-23 08:40:25 -07:00
Mitchell Hashimoto 4cb185c593
pkg/harfbuzz: update to 8.2.2 2023-10-20 09:10:34 -07:00
Krzysztof Wolicki b830deb8a9 pkg/fontconfig: windows check more readable 2023-10-19 17:21:23 +02:00
Krzysztof Wolicki 3936b471a8 Disable iconv on Windows by default (enabled via cli flag).
Skip various tests not implemented on windows.
2023-10-19 09:39:20 +02:00
James Tucker 5007e90ae5
pkg/fontconfig: move defines to fix x86_64-windows targets
Some targets were duplicated in the all-targets definition list that
will not build for a Windows target. They're all moved to the
non-Windows configuration. The target now builds against a mingw64
prefix with the appropriate dependencies installed.

Updates #437
2023-10-17 23:24:20 -07:00
Mitchell Hashimoto eda0e8ad04
pkg/apple-sdk: update to not have any broken symlinks 2023-10-17 13:11:27 -07:00
Mitchell Hashimoto 1411015038
font: fallback search should search full discovery chain
Fixes #668

We were previously only checking the first font result in the search.
This also fixes our CoreText scoring algorithm to prioritize faces that
have the codepoint we're searching for.
2023-10-13 12:25:27 -07:00
Mitchell Hashimoto 01a8013533
pkg/harfbuzz: remove accidentally committed archive file 2023-10-09 16:05:55 -07:00
Mitchell Hashimoto 17032632cf
pkg/apple-sdk: do not git clone anymore 2023-10-07 15:31:17 -07:00
Mitchell Hashimoto 8ec6828713
pkg/harfbuzz: download source using zig package manager 2023-10-07 14:51:25 -07:00
Mitchell Hashimoto 6e550bbd6b
pkg/libxml2: download using zig package manager 2023-10-07 14:48:41 -07:00
Mitchell Hashimoto 1127330b3a
font/coretext: score discovered fonts 2023-10-03 09:17:41 -07:00
Mitchell Hashimoto fda56fd11f
pkg/macos: MutableArray, sorting 2023-10-02 22:26:47 -07:00
Mitchell Hashimoto 0021b290cf
pkg: add test targets 2023-10-01 18:43:25 -07:00
Mitchell Hashimoto f0d4e9c7c3
pkg: remove all old build.zig files 2023-10-01 18:35:31 -07:00
Mitchell Hashimoto 4e1b3b3224
fix failing test, freetype needs libpng 2023-10-01 18:33:37 -07:00
Mitchell Hashimoto d71197dc59
no more system_sdk 2023-10-01 17:38:30 -07:00
Mitchell Hashimoto 3a4842a0a5
fix build on linux 2023-10-01 17:32:59 -07:00
Mitchell Hashimoto d1c993b093
pkg/tracy 2023-10-01 17:11:40 -07:00
Mitchell Hashimoto 8395bb7470
pkg/tracy 2023-10-01 17:11:04 -07:00
Mitchell Hashimoto ec26fb7cee
pkg/macos 2023-10-01 17:02:12 -07:00
Mitchell Hashimoto fefbd7afbe
pkg/pixman, utf8proc 2023-10-01 16:59:24 -07:00
Mitchell Hashimoto 2237b43df0
pkg/freetype, harfbuzz modules 2023-10-01 16:57:45 -07:00
Mitchell Hashimoto bc0f5c3012
pkg/fontconfig module 2023-10-01 16:52:36 -07:00
Mitchell Hashimoto 3ed6a02176
pkg/utf8proc 2023-10-01 16:45:39 -07:00
Mitchell Hashimoto 5d52a94792
pkg/apple-sdk: set sysroot 2023-10-01 16:39:19 -07:00
Mitchell Hashimoto b9cc763a3a
pkg/harfbuzz needs to use apple sdk for coretext 2023-10-01 15:33:40 -07:00
Mitchell Hashimoto 5feeac66b2
pkg/pixman 2023-10-01 15:04:55 -07:00
Mitchell Hashimoto 5f8dbb498f
pkg/fontconfig: depend on libxml2 2023-10-01 14:55:47 -07:00
Mitchell Hashimoto 7a27228660
pkg/libxml2 2023-10-01 12:56:20 -07:00
Mitchell Hashimoto 7edb86f9e1
pkg/fontconfig 2023-10-01 12:43:36 -07:00
Mitchell Hashimoto 2312c465c6
use package manager for font stack 2023-10-01 12:32:17 -07:00
Mitchell Hashimoto 6aef48288a
pkg/harfbuzz 2023-10-01 12:23:38 -07:00
Mitchell Hashimoto 7dc3fcc41e
pkg/freetype 2023-10-01 12:12:05 -07:00
Mitchell Hashimoto 6e2b7c607e
pkg/libpng, pkg/zlib use package manager 2023-10-01 11:25:18 -07:00
Jonathan Marler a0911c954e windows: fix fontconfig into libxml runtime crash from implicit func decl
Fixes the next issue on windows.  The fontconfig library is calling
the function xmlCreatePushParserCtxt from libxml2, however, the function
declaration was being omitted because fontconfig was not defining
the LIBXML_PUSH_ENABLED preprocessor symbol.  However, instead of a
compile error, C's support for implicit function declrations allows it
to happily call the function anyway, with the wrong ABI.  The main issue
was the return type being implicitly declared as "int" instead of a
pointer.  On my system this was causing the return pointer to be
truncated to 32 bits and then sign-extended which caused a segfault
once it was dereferenced.

I've gone ahead and added the -Werror=implicit-function-declaration
to fontconfig to avoid these issues in the future.  However, this
flag didn't compile on linux so I've left it as Windows only for now.

I also needed to add the LIBXML_STATIC define because not defining it
causes some functions on windows to be declared with
`__declspec(dllimport)` which results in linker errors since we are
actually statically linking libxml2.
2023-09-18 01:12:56 -06:00
Jonathan Marler a2e881ff4e windows: initial support for zig build test
Makes progress getting "zig build test" to work on windows.  Mostly
fixed issues around build configuration and added some branches throughout
the Zig code to return/throw errors for unimplemented parts.

I also added an initial implementation for getting the home dir.
2023-09-14 03:15:40 -06:00
Mitchell Hashimoto 1ee5b7f91c
font: freetype supports font variation settings 2023-08-28 07:25:09 -07:00
Mitchell Hashimoto 9d0729f17c
font/coretext: ability to set variation axes 2023-08-28 07:25:09 -07:00
Mitchell Hashimoto fb0f80f9ca
macos: add necessary functions for variation axes querying 2023-08-28 07:25:09 -07:00
Mitchell Hashimoto ea3b957bc7
quirks: Menlo/Monaco should disable ligatures by default (#331)
* font: disable default font features for Menlo and Monaco

Both of these fonts have a default ligature on "fi" which makes terminal
rendering super ugly. The easiest thing to do is special-case these
fonts and disable ligatures. It appears other terminals do the same
thing.
2023-08-25 09:29:15 -07:00
Mitchell Hashimoto ec69644de6
move stb to src/stb, add stb_image for png decoding 2023-08-20 22:03:20 -07:00
Mitchell Hashimoto 7ccf86b175
remove imgui and devmode
imgui has been a source of compilation challenges (our fault not theirs)
and devmode hasn't worked in awhile, so drop it.
2023-08-20 08:50:24 -07:00
Mitchell Hashimoto 7659a2a733
build: fix linking bugs for macos test 2023-08-18 08:23:58 -07:00
Mitchell Hashimoto 3d23f26326
input, macos: initial work on keymapper and macos usage of it 2023-08-11 12:01:58 -07:00
Kevin Hovsäter 22b8173164 Fix typos 2023-08-08 14:27:34 +02:00
Mitchell Hashimoto dd18eaab5d
fix various build scripts 2023-08-02 15:06:24 -07:00
Mitchell Hashimoto d649b3f6d4
update zig 2023-08-02 14:39:19 -07:00
Mitchell Hashimoto 4bf8a0d149
font: support skew transform for auto-italics 2023-07-03 15:54:50 -07:00
Mitchell Hashimoto 0a718ec3eb
pkg/macos: do not use bitCast through a function
workaround Zig issue: https://github.com/ziglang/zig/issues/16290
2023-07-01 13:38:10 -07:00
Mitchell Hashimoto d39e3f5428
coretext: improved baseline calculation 2023-07-01 09:23:40 -07:00
Mitchell Hashimoto a74e49833b
coretext: colored glyph rendering 2023-07-01 09:23:40 -07:00
Mitchell Hashimoto 552a1b51d0
coretext: rasterization looking cleaner 2023-07-01 09:23:39 -07:00
Mitchell Hashimoto 45da58188c
fix up for new zig 2023-07-01 09:23:39 -07:00
Mitchell Hashimoto 2a1cbb4f21
coretext: calculate units per em/point 2023-07-01 09:23:39 -07:00
Mitchell Hashimoto 314f9287b1
Update Zig (#164)
* update zig

* pkg/fontconfig: clean up @as

* pkg/freetype,harfbuzz: clean up @as

* pkg/imgui: clean up @as

* pkg/macos: clean up @as

* pkg/pixman,utf8proc: clean up @as

* clean up @as

* lots more @as cleanup

* undo flatpak changes

* clean up @as
2023-06-30 12:15:31 -07:00
Mitchell Hashimoto 56f8e39e5b
Update zig, mach, fmt 2023-06-25 11:08:20 -07:00
Mitchell Hashimoto 7116ce0806
update zig version 2023-05-29 08:24:12 -07:00
Mitchell Hashimoto b196e43ee4
fix some issues for future Zig update 2023-05-19 08:34:07 -07:00
Mitchell Hashimoto 97d9157d22
update zig version 2023-05-07 20:50:51 -07:00
Mitchell Hashimoto 5dc98da9a0
build compiles at least 2023-03-24 19:39:50 -07:00
Mitchell Hashimoto 2b73fbaa0d
iterating on the new for loop syntax 2023-02-27 21:53:09 -08:00
Mitchell Hashimoto 8db30107ae
pkg: fmt 2023-02-27 21:46:59 -08:00
Mitchell Hashimoto ff9af8a07b
lots of progress running a surface but still crashes 2023-02-19 10:44:56 -08:00
Mitchell Hashimoto be75109a1d
new build system 2023-02-14 20:58:33 -08:00
Mitchell Hashimoto 18f20add34
pkg/libuv: delete 2023-02-06 13:07:47 -08:00
Mitchell Hashimoto e9bf2a5680
pkg/objc: extract to zig-objc repo 2023-01-02 21:35:32 -08:00
Mitchell Hashimoto 6f3bc5186d
update to latest zig 2022-12-21 18:30:21 -08:00
Mitchell Hashimoto e210c91d10
update zig version, update @call for newer zig version 2022-12-16 22:34:54 -08:00
Mitchell Hashimoto b21e18a9e6
font: start converting Box font to our abstract canvas interface 2022-12-13 16:16:56 -08:00
Mitchell Hashimoto c8252133a3
update zig version 2022-12-12 22:10:52 -08:00
Mitchell Hashimoto 6ad45f0237
update zig 2022-11-30 16:54:04 -08:00
Mitchell Hashimoto abfffdcabe
pkg/pixman: more getters 2022-11-27 13:54:30 -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 88ff221d6d
pkg/pixman: fill rects 2022-11-25 14:10:25 -08:00
Mitchell Hashimoto f1a052640c
pkg/pixman: rasterize trapezoids 2022-11-25 13:36:17 -08:00
Mitchell Hashimoto 336d2c4e13
pkg/pixman: more image APIs 2022-11-25 11:34:31 -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 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 9b0fbde838
put some config in the devmode UI 2022-11-21 09:09:25 -08:00
Mitchell Hashimoto 1bce3d8e72
pkg/objc: make ptrcast var so that LLVM backend sees sig 2022-11-20 08:19:50 -08:00
Mitchell Hashimoto 2100523822
pkg/objc: correct objc_msgSend call on x86_64 depending on return type
On x86_64, we have to use specialized forms of `objc_msgSend` depending
on the return type (and the byte size of the return type). If we don't
do this, the calling convention is wrong and we'll get a segfault when
objc_msgSend tries to read a register that is [rightly] not set.

On aarch64, we do not have this issue because the calling convention is
different and objc_msgSend handles all cases.
2022-11-19 21:45:38 -08:00
Mitchell Hashimoto da2942e083
font: specific codepoint lookup in internals 2022-11-17 15:49:14 -08:00
Mitchell Hashimoto b91cd8e41c
pkg/macos: character set in range 2022-11-17 15:15:09 -08:00
Mitchell Hashimoto 843dc8ae14
pkg/macos: support CFCharacterSet 2022-11-17 15:09:53 -08:00
Mitchell Hashimoto 7703873142
pkg/fontconfig: charset can add chars 2022-11-17 14:37:36 -08:00
Mitchell Hashimoto 69b91a951b
pkg/objc: autorelease pools 2022-11-14 09:59:09 -08:00
Mitchell Hashimoto 46a9998762
tracy: support naming threads 2022-11-07 07:33:36 -08:00
Mitchell Hashimoto 7b94153458
libuv: Prepare handles 2022-11-07 07:33:29 -08:00
Mitchell Hashimoto afd4800da4
pkg/imgui: support context current 2022-11-06 16:03:03 -08:00
Mitchell Hashimoto 9e3bbc1598
macos: send logs to unified logging 2022-10-31 15:16:29 -07:00