Ebrahim Byagowi
8931bc4a6b
[test] Fix -Wunused-parameter on test-font.c
6 years ago
Behdad Esfahbod
f11c557662
[test] Fix leak
6 years ago
Behdad Esfahbod
77d5c3df07
[font] Add failing test amongst font-func parallels infinite-looping
...
Reported by Nona while updating Android to HarfBuzz 2.0.0.
6 years ago
Behdad Esfahbod
dcfcb950b8
[test] Fix -Wunused-parameter warnings
6 years ago
Ebrahim Byagowi
ef9307fd22
Fix test-font leak issue
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
6 years ago
Philip Withnall
a6ced90efc
test: Fix some memory leaks in test-font.c ( #409 )
...
Coverity IDs: 141039, 141040, 141041
8 years ago
Behdad Esfahbod
da29b43794
Separate nil font-funcs from parent-peeking font-funcs
...
API change: all fonts created with hb_font_create() now inherit from
(ie have parent) hb_font_get_empty().
9 years ago
Behdad Esfahbod
3e905e396b
Add hb_font_set_parent()
...
No reason to not have it. Makes life easier later.
We (hb-ft, hb-ot-font, etc) can use this API to inject new
parent into a font...
9 years ago
Behdad Esfahbod
88da7bba9f
Default font scale to face upem
...
Makes for a better default and avoids nasty inheritance issues.
See mailing list thread "Default hb_font_t scale".
9 years ago
Behdad Esfahbod
1866e17114
Make hb_font_create_sub_font() NOT make parent immutable
...
We don't rely on that. However, whenever hb_font_make_immutable()
is called, it makes its parenting chain immutable.
9 years ago
Behdad Esfahbod
eb0bf3ae66
Relax inert checks
...
Previously, when creating an object from inert inputs (eg:
"hb_font_create(hb_face_get_empty())") we returned the inert
empty object. This is not helpful as there are legitimate
usecases to do that.
We now never return the inert object unless allocation failed.
Tests are revised to reflect.
10 years ago
Behdad Esfahbod
7235f33f9e
Fix misc warnings reported by cppcheck
...
https://bugs.freedesktop.org/show_bug.cgi?id=65544
12 years ago
Behdad Esfahbod
4d6dafd47f
Rename test/ to test/api/
13 years ago
Behdad Esfahbod
2d8ebcb9d0
[API] One last font-funcs API change
...
Now that vertical text works correctly, I'm doing a last round
modification of the font-funcs API to simplify. Expect no more
changes around here.
14 years ago
Behdad Esfahbod
d31691296f
[test] Update to API changes
14 years ago
Behdad Esfahbod
744970af4d
[API] Add support for vertical text
...
Design not final yet, and in fact I'm going to change it immediately,
but this is an standalone change for itself.
14 years ago
Behdad Esfahbod
7fc5a30cb4
[API] Add hb_face_make/is_immutable()
14 years ago
Behdad Esfahbod
0fd8c2f1be
[API] Make get_glyph() callback return a boolean
...
We need to know whether the glyph exists, so we can fallback to
composing / decomposing. Assuming that glyph==0 means "doesn't exist"
wouldn't work for applications like Pango that want to use different
"doesn't exist" glyph codes for different characters. An explicit
return value fixes that.
14 years ago
Behdad Esfahbod
f2c1dd4f74
[test/font] Test font_funcs subclassing
14 years ago
Behdad Esfahbod
14f1e81b77
[test/font] Test empty funcs
14 years ago
Behdad Esfahbod
2ca0b5ae1e
[test/font] Test more
14 years ago
Behdad Esfahbod
7033518f75
[API] Pass face to get_table()
14 years ago
Behdad Esfahbod
ea93e7b27c
[test/font] More tests
14 years ago
Behdad Esfahbod
cdb153175f
[test/font] More tests
14 years ago
Behdad Esfahbod
74d9fa3d9a
[test/font] More get_empty() tests
14 years ago
Behdad Esfahbod
db9f4eb4e0
[test/font] Test get_face() / get_parent()
14 years ago
Behdad Esfahbod
606923bb43
[test/font] Add test_font_properties()
14 years ago
Behdad Esfahbod
da603e8038
[test/font] Start adding tests for hb-font.h
14 years ago
Behdad Esfahbod
6af9cff5e1
[test/unicode] Use text fixture instead of static variables
14 years ago
Behdad Esfahbod
2409d5f8d7
Update Copyright headers
14 years ago
Behdad Esfahbod
fb6291d9c9
[test] Add test for headers included from C and C++
14 years ago
Behdad Esfahbod
acdba3f90b
Prefer C linkage
15 years ago
Behdad Esfahbod
15c7379c16
Revert "Merge remote branch 'martin/master'"
...
This reverts commit 80af2812fb
, reversing
changes made to c442672ec2
.
15 years ago
Martin Hosken
1432ab15c1
Add graphical output to hbtestfont
15 years ago
Behdad Esfahbod
aa62a402a7
Fix Makefile to install hb-ot-shape.h
15 years ago
Behdad Esfahbod
c755cb3e3a
Change header comment
15 years ago
Behdad Esfahbod
8a3511ac6c
Add hb_language_t as well as language/script conversion to OT tags
15 years ago
Behdad Esfahbod
678bed4333
[HB] Add top-level header files
15 years ago
Behdad Esfahbod
0cc7bc59ea
[HB] Move typedef's around
15 years ago
Behdad Esfahbod
35a7383c61
[HB] Simplify refcounting functions
15 years ago
Behdad Esfahbod
0090dc0f67
[HB] Remove hinting setting and use ppem==0 to mean "no hinting"
15 years ago
Behdad Esfahbod
2ebb89d63d
Revert "XX"
...
This reverts commit c939f6aff405ca7b10b1f1538f46148bff719fcb.
15 years ago
Behdad Esfahbod
55520d2af1
XX
15 years ago
Behdad Esfahbod
6c78683c04
[HB] Update copyright years
15 years ago
Behdad Esfahbod
f96ffd43bc
[HB] simplify macros
15 years ago
Behdad Esfahbod
c7d457aa3a
[HB] Ouch. Add files.
15 years ago
Behdad Esfahbod
2d15e72c75
Give it a start at GSUB
16 years ago
Behdad Esfahbod
590d55cbb9
[GDEF] Finish public API
17 years ago
Behdad Esfahbod
64aef3a549
Add copyright notices.
17 years ago
Behdad Esfahbod
8dd1c8b8d6
Clean up file names, add namespace
17 years ago