Behdad Esfahbod
a4b1900913
Add hb_static_mutex_t
14 years ago
Behdad Esfahbod
56eb5ad6f9
Move code around
...
Mutex (and Windows.h by extension) are fairly isolated now.
14 years ago
Behdad Esfahbod
d292885893
[ft] Fix font->face handling
...
Don't use _cached()
14 years ago
Behdad Esfahbod
2000179487
Move Win32 thread-safety stuff to hb-object-private.h
...
The Win32 definitions for LONG, ULONG, etc conflicts with
hb-open-type.h. Avoid that by making sure hb-object-private.h
and hb-open-type.h are not included in the same compilation unit.
14 years ago
Behdad Esfahbod
266b34418c
Refactor to keep hb-object-private.h and hb-open-type.h separate
...
Needed to be able to include <Windows.h> from hb-object-private.h.
14 years ago
Behdad Esfahbod
d4141a44b9
[blob] Implement sub_blob() in terms of create()
...
Fixes problem with uninitialized sub_blob->mutex among other things.
Reported by Bradley Grainger.
14 years ago
Behdad Esfahbod
fc52e9e44c
Implement win32 thread-safety stuff
...
Patch from Bradley Grainger.
14 years ago
Behdad Esfahbod
f55272ecde
Add hb_mutex_free() and use it
...
Based on patch by Bradley Grainger.
14 years ago
Behdad Esfahbod
8d5186484b
Cosmetic
14 years ago
Behdad Esfahbod
72657e4ce7
[API] Make hb_font_create() take a face and reference it
14 years ago
Behdad Esfahbod
cec6611c5c
Protect NULL in a couple places
14 years ago
Behdad Esfahbod
5a5030366e
Fix bug in array growth implementation
...
With this, test/object is now passing. Yay!
14 years ago
Behdad Esfahbod
16123e1070
Fix bug in map implementation
14 years ago
Behdad Esfahbod
1cd5969f25
[object] Fix bug in get_user_data() implementation
14 years ago
Behdad Esfahbod
db99589529
[test/object] Add test for object lifecycle stuff
...
Revealed many bugs in the (untested and known buggy) user_data
support.
14 years ago
Behdad Esfahbod
f74d6c81f1
Cosmetic
14 years ago
Behdad Esfahbod
4911062d5b
[API] Rename hb_blob_create_empty() to hb_blob_get_empty()
14 years ago
Behdad Esfahbod
1ab1d3e38c
[face] Return nil face if blob is inert
14 years ago
Behdad Esfahbod
e87867cb88
[buffer] Fail in _create() if we cannot pre-allocate the requested size
14 years ago
Behdad Esfahbod
cd361ec9a1
Cosmetic
14 years ago
Behdad Esfahbod
c784c67a28
[unicode] Make _get_parent() return _nil object instead of NULL
14 years ago
Behdad Esfahbod
07e22779ab
[test/unicode] Add script roundtrip tests for glib and ICU
14 years ago
Behdad Esfahbod
7cda65935c
[test/unicode] Better test chainup
14 years ago
Behdad Esfahbod
250c59225e
[test/unicode] Port the _custom test to test all property setters
14 years ago
Behdad Esfahbod
e74b5b339a
[test/unicode] Test Unicode 5.2+ but don't fail
14 years ago
Behdad Esfahbod
c763aa42b4
[test/buffer] Clean up testing
...
Getting the hang of how to cleanly use gtest.
14 years ago
Behdad Esfahbod
819e9d9e53
Minor
14 years ago
Behdad Esfahbod
03034acb8a
[icu] Make sure we return script UNKNOWN instead of INVALID
14 years ago
Behdad Esfahbod
d02985ec5a
ISO 15924 fixes
...
Update to http://unicode.org/iso15924
Fixes some of the test failures in test-unicode with ICU. Still
one more to fix before the test passes.
14 years ago
Behdad Esfahbod
e8e29c725a
[test/unicode] Add log messages
...
Use with --verbose to see what's failing
14 years ago
Behdad Esfahbod
208c2c3150
Minor
14 years ago
Behdad Esfahbod
60833efaf1
[test/unicode] Add testing of all unicode properties
...
ICU fails for now.
14 years ago
Behdad Esfahbod
da96ee072f
[test/unicode] Test is/make_immutable()
14 years ago
Behdad Esfahbod
6af9cff5e1
[test/unicode] Use text fixture instead of static variables
14 years ago
Behdad Esfahbod
13db3d40bf
[test/buffer] Add UTF-16 tests
14 years ago
Behdad Esfahbod
243673d601
[test/buffer] Add more extensive UTF-8 test data from glib
14 years ago
Behdad Esfahbod
dfec67f958
[test/buffer] Add initial utf-8 tests
14 years ago
Behdad Esfahbod
aafe395ab5
Add test suite infrastructure
...
Wraps around glib for convenience and ease of use.
14 years ago
Behdad Esfahbod
c7ffe2ad5f
[API Remove hb_font_funcs_copy()
...
Will be adding font_funcs subclassing instead.
14 years ago
Behdad Esfahbod
30f34d08d4
[TODO] Remove finished items
14 years ago
Behdad Esfahbod
080a0eb7d8
Add _hb_unsigned_int_mul_overflows
14 years ago
Behdad Esfahbod
1d39d6e42b
Desable possibly lethal test on 64-bit machines
14 years ago
Behdad Esfahbod
3264042873
[test/buffer] Test pre_allocate() and allocation_successful()
14 years ago
Behdad Esfahbod
123aa04f7b
Fix possible but improbable overflow in hb_array_t
14 years ago
Behdad Esfahbod
e0db4b868f
[buffer] More error handling
...
Should be all set now.
14 years ago
Behdad Esfahbod
15c57e04bf
[test/buffer] Add test pre_alloc(); hangs in the buffer code right now
...
Because the following loop overflows:
while (size > new_allocated)
new_allocated += (new_allocated >> 1) + 32;
14 years ago
Behdad Esfahbod
1e5527e2d6
[test/buffer] Test reset(), set_length(), and set/get_unicode_data()
14 years ago
Behdad Esfahbod
db126b5448
[test/buffer] Test reverse() and reverse_clusters()
14 years ago
Behdad Esfahbod
5fa849b77d
[API] Add _set/get_user_data() for all objects
14 years ago
Behdad Esfahbod
852e08ec8f
Move code around
14 years ago