Commit graph

42 commits

Author SHA1 Message Date
Ali Chraghi
5d533a8e3a freetype::harfbuzz: complete common binding 2022-06-13 09:22:26 -07:00
Ali Chraghi
128cf8098c freetype: use u32 instead of usize 2022-06-13 09:22:26 -07:00
Ali Chraghi
1c6e796df6 freetype: increase LoadFlags max size 2022-06-11 15:53:54 -07:00
Ali Chraghi
c02a3fbaf4 freetype::harfbuzz: complete buffer binding 2022-06-11 15:53:54 -07:00
Ali Chraghi
ffc7c3aa68 freetype: fix function namings
some functions should start with `get`
2022-06-11 15:53:54 -07:00
Stephen Gutekanst
7d7eb807f8 freetype: fix failing test / do not return pointer to stack
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-10 13:42:52 -07:00
Stephen Gutekanst
80157a99fc freetype: update upstream to include OT sources
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-10 13:42:14 -07:00
Jamie Brandon
15c71f5135 freetype: Avoid dereferencing null bitmap buffer.
For some characters (eg \r) the returned glyph will have .{.rows = 0, .width=0, .pitch = 0, .buffer = null}. In zig null[0..0] causes a panic rather than returning an empty slice.
2022-06-10 12:55:19 -07:00
Ali Chraghi
86053d9969 freetype: update upstream 2022-06-10 12:53:10 -07:00
Ali Chraghi
cdce9fb223 freetype: sync harfbuzz sources with upstream 2022-06-10 12:53:10 -07:00
Ali Chraghi
9c585693b1 freetype: find and fix bugs by fixing refAllDecls() 2022-06-10 12:53:10 -07:00
Ali Chraghi
2b7527b028 freetype:harfbuzz: 100% blob and 50% buffer binding 2022-06-10 12:53:10 -07:00
Ali Chraghi
d98bfab809 freetype: rename freetype_pkg to pkg 2022-06-10 12:53:10 -07:00
Ali Chraghi
82e1990009 freetype: init harfbuzz binding 2022-06-07 19:23:33 -07:00
Ali Chraghi
04a0a79ef6 freetype: ~99% Core-API Coverage
- breaking structure changes
- optimazed examples
- more tests
2022-06-07 19:23:33 -07:00
Stephen Gutekanst
322ead9218 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 05:02:04 -07:00
Stephen Gutekanst
c2111e0691 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:39:45 -07:00
Stephen Gutekanst
539b643267 CI: rename macos-gnu target -> macos-none
Reflecting breaking change in latest version of Zig

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
3a81754973 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
kamidev
68190e863a Change std.build.Pkg.path -> std.build.Pkg.source
Fixes breaking change in latest Zig master, see https://github.com/ziglang/zig/pull/11557
2022-05-29 08:25:52 -07:00
Ali Chraghi
f96b5758fd freetype: update example runner usage 2022-05-28 10:08:34 -07:00
Ali Chraghi
a1f756b4cd freetype: reduce code size 2022-05-27 20:50:56 -07:00
Ali Chraghi
643753c80a freetype: rename convertError to intToError 2022-05-27 20:50:56 -07:00
Ali Chraghi
b92770404f freetype: add a wrapper for outline functions 2022-05-27 20:50:56 -07:00
Ali Chraghi
18369e8c9b freetype: ziggify C structs 2022-05-27 20:50:56 -07:00
iddev5
336134c996 freetype: change example names to match mach convention
General mach examples use ``long-example-name`` case but freetype was
using ``snake_case`` right now, which is inconsistent and midly
inconvenient to use.

Renamed: glyph_to_svg -> glyph-to-svg, single_glyph -> single-glyph
2022-05-25 23:08:45 -07:00
Ali Chraghi
017b469e2f freetype: add running examples instruction 2022-05-25 09:06:43 -07:00
Ali Chraghi
ca0db5a701 freetype: example runner in zig build & new glyph_to_svg example 2022-05-25 09:05:57 -07:00
Ali Chraghi
7a8aee8665 freetype: implement some functions binding 2022-05-25 09:05:57 -07:00
Pierre Curto
1a082ef5a7
freetype: README: fix build.zig example (#300) 2022-05-25 06:21:08 -07:00
Stephen Gutekanst
6922435110
freetype: add usage instructions 2022-05-24 12:22:00 -07:00
Stephen Gutekanst
b146f47037 freetype: build: add package to tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Ali Chraghi
14ecaa6a7e freetype: build: overall improvements 2022-05-24 11:55:07 -07:00
Stephen Gutekanst
ddaba2db87 freetype: ensure upstream/ submodule is cloned
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
d109720a3b freetype: add subrepo .gitmodules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
045dda287d freetype: add upstream submodule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
a65859d04a freetype: move example fonts to upstream repo
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
240278fb4d freetype: add freetype license file for clarity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Ali Chraghi
b50dade2fd freetype: initial import @ 4e2b158
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
0d2675507d freetype: add .gitattributes, .gitignore
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
f083b3da0d freetype: README: credit Ali properly
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00
Stephen Gutekanst
cb7bd5f2f9 freetype: initialize subrepository
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -07:00