Commit Graph

15594 Commits

Author SHA1 Message Date
Matthias Clasen c1a5d20951 [doc] Add a missing comma 2023-01-25 21:53:06 -05:00
Matthias Clasen 8d80d1dd18 [paint] Update expected test results
These tests were affected by recent fixes.
2023-01-25 19:06:51 -05:00
Behdad Esfahbod 570fe998c9 [cairo] Another sweep_gradient fix
k was -1 sometimes.

Fixes the rest of https://roettsch.es/var_colrv1.html
2023-01-25 15:42:24 -07:00
Andres Salomon 13bfef9f01 [COPYING] Another update
Adobe, Inc has copyright in src/hb-subset-cff*, test/api/test-subset*, and
misc other places.

Ebrahim Byagowi has copyright as far back as 2015 in places like
src/hb-directwrite.cc.

Google, Inc has newer copyright into 2022 in places like
src/graph/test-classdef-graph.cc. Also, listing every year was getting a bit
unwieldy, so just do 2010-2022.

Igalia S.L. contributed the stuff in src/hb-ot-math*.

The only references I could find to Martin Hosken & SIL were in
src/hb-graphite2*, and they were 2011, not 2009.

Mozilla's got a bunch of 2015 code in src/hb-ot-shaper-*.

Red Hat has copyright up to 2023 (eg, test/api/test-glyph-names.c).
2023-01-25 15:36:04 -07:00
Behdad Esfahbod ea316b56a0 [cairo] Flip offsets when reversing
Fixes many of the var_colrv1 first row tests.

https://roettsch.es/var_colrv1.html
2023-01-25 15:31:29 -07:00
Behdad Esfahbod 5b05e198cf [cairo] More hb_malloc 2023-01-25 15:24:14 -07:00
Behdad Esfahbod 57352b8bd4 [cairo] Use hb_malloc / hb_free 2023-01-25 15:22:27 -07:00
Behdad Esfahbod a9392c0cbb [cairo] Use hb_swap() 2023-01-25 14:57:02 -07:00
Qunxin Liu 5e86870378 [instancer] compute head/maxp values using only non-empty glyphs 2023-01-25 14:53:19 -07:00
Qunxin Liu d15551c6f3 [instancer] update head table flagbit: allXMinIsLsb 2023-01-25 14:53:19 -07:00
Behdad Esfahbod 2c49eba044 [cairo] Indent 2023-01-25 14:52:39 -07:00
Behdad Esfahbod 2accbdc0b6 [paint] Minor skew 2023-01-25 14:40:04 -07:00
Behdad Esfahbod a4420479a8 Revert "[VarComposite] Fix skew"
This reverts commit 8cf7076309.
2023-01-25 14:37:10 -07:00
Behdad Esfahbod 8cf7076309 [VarComposite] Fix skew 2023-01-25 14:35:35 -07:00
Behdad Esfahbod 626f8e4de3 [paint] Fix skew to match Chrome 2023-01-25 14:33:46 -07:00
Behdad Esfahbod b44ff062e1 [deserialize] Some more 2023-01-25 14:16:46 -07:00
Behdad Esfahbod 57ff696430 [deserialize] One more fix 2023-01-25 14:10:12 -07:00
Behdad Esfahbod e973050986 [hb-buffer-deserialize] Fixups 2023-01-25 14:07:01 -07:00
Behdad Esfahbod a1101f09ca [test-buffer-serialize] Handle too-small out buffer
Need to handle too-small in buffer still.
2023-01-25 13:10:57 -07:00
Behdad Esfahbod 39d50008f8 [hb-info] Format 2023-01-25 12:53:50 -07:00
Behdad Esfahbod 4e2267b729 [hb-info] Add --get-meta 2023-01-25 12:51:53 -07:00
Behdad Esfahbod 42ed6abb6a [hb-info] Add --list-meta 2023-01-25 12:47:16 -07:00
Behdad Esfahbod 2fec4f1c3d [subset] Finish out hb-subset-instancer-solver.cc 2023-01-25 12:21:15 -07:00
Qunxin Liu 90a98dd62a [instancer] fix potential memory leak for compiled glyph bytes
Also calculate max_offsets after glyph bytes are compiled, cause byte
length of a glyph might change after compile
2023-01-25 11:37:19 -07:00
Behdad Esfahbod 223abd72b9 [subset] Add unfinished port of fonttools instancer solver 2023-01-25 11:37:07 -07:00
Behdad Esfahbod 167443e9fc [hb-info] Respect HB_CHAFA=0 2023-01-25 11:37:07 -07:00
Behdad Esfahbod 87df84c386 [hb-info] Fix copyright header 2023-01-25 11:37:07 -07:00
Andres Salomon 0bbc9d5256 [fonts] move OFL-1.1 license to a higher directory
There's a bunch of font directories inside of test/ for which the vast
majority of fonts are licensed under the SIL open font license. We currently
have a COPYING file in test/shape/data/in-house/COPYING that says that most
of the fonts are OFL-1.1, but that doesn't apply to the fonts in, say,
test/api/fonts/ or test/fuzzing/fonts/. Since there are so many OFL-1.1
fonts all over test, let's move the COPYING file to the top-level test/
directory.
2023-01-25 10:07:03 -07:00
Behdad Esfahbod 44a9c4bf59 [COPYING] Update 2023-01-25 09:58:29 -07:00
Andres Salomon c622c6b883 [font] update the license url for TestGVAREight.ttf
The url in the exif data incorrectly links to a proprietary license. However,
permission was granted for distribution under Apache-2 as part of another project,
so link to that project's license instead.

fixes #4062
2023-01-25 09:27:49 -07:00
Matthias Clasen eb0a025e49 Add a test for glyph names
This verifies that hb_font_get_glyph_name
returns false for nonexisting glyphs.
2023-01-24 21:35:04 -07:00
Behdad Esfahbod 1b143b0f0c [font] Docs 2023-01-24 18:34:04 -07:00
Behdad Esfahbod 64ed03c9be [cff1] Return no name for out-of-range glyph IDs
Was returning .notdef before.
2023-01-24 18:33:34 -07:00
Matthias Clasen c89aebc40b hb-font: Document length limit for glyph names
This is useful information for users of the
hb_font_get_glyph_name() API.
2023-01-24 18:29:06 -07:00
Matthias Clasen dd64266ea4 Add a test for glyph extents
This verifies a recent fix for COLRv1 returning
0,0,-1,1 for extents of non-painting glyphs.
2023-01-24 18:08:22 -07:00
Qunxin Liu 73e6f6cc88 [instancer] enable the missing test 2023-01-24 17:28:51 -07:00
Qunxin Liu 27f72f0deb [instancer] avoid double free for compiled glyph bytes
also increase the HB_GLYF_MAX_POINTS limit to 20000 cause the test file has a
.notdef glyph which is a composite glyph and has 10176 points after
get_points() call
2023-01-24 17:28:51 -07:00
Matthias Clasen ac969fffa2 Update meson summary
Include builtin font callbacks and Cairo integration
in the configuration summary.
2023-01-24 17:08:51 -07:00
Behdad Esfahbod 192361cb4d [hb-info] Show color swatch only if printing to terminal 2023-01-24 17:05:38 -07:00
Behdad Esfahbod 817ec182eb [hb-info] Format 2023-01-24 17:02:08 -07:00
Behdad Esfahbod 66ddeb0737 [hb-info] Change Chafa repeat to 16 2023-01-24 17:01:01 -07:00
Behdad Esfahbod 7a29ded169 [hb-info] Render colors in --list-palette
Uses chafa if available
2023-01-24 16:59:44 -07:00
Behdad Esfahbod b684c6edd4 [hb-cairo] Add hb_cairo_context_t 2023-01-24 12:21:12 -07:00
Behdad Esfahbod 279f13c187 [hb-shape] Write trace output to stderr 2023-01-24 11:50:59 -07:00
Behdad Esfahbod 161d8f9d26 [util] Rename a variable 2023-01-24 11:48:10 -07:00
Behdad Esfahbod 68a790261c [util] If --glyphs doesn't have positions, use glyph advances
Such that eg --glyphs=10 works.
2023-01-24 11:44:53 -07:00
Behdad Esfahbod 91a174f151 [hb-view] Hide --annotate and make it alias for --show-extents 2023-01-24 11:27:35 -07:00
Behdad Esfahbod 8cfb0ed072 [hb-view] --annotate enables --show-extents 2023-01-24 11:24:31 -07:00
Behdad Esfahbod 20fcf5c5b8 [hb-view] Add --show-extents 2023-01-24 11:22:55 -07:00
Behdad Esfahbod 72e13fff65 [COLRv1] Handle void extents 2023-01-24 11:05:38 -07:00