src/hb-open-file-private.hh


Log

Author Commit Date CI Message
Behdad Esfahbod 63f57f4d 2018-05-08T16:56:11 Mark more unsized array's as arrayZ
Ebrahim Byagowi b799fc80 2018-04-11T18:36:09 minor, use LOffsetTo and LArrayOf whenever possible (#966)
Ebrahim Byagowi 2a236063 2018-03-23T18:37:01 Fix llvm-gcc-4.2 compile issue and add a macOS bot to test it (#899)
Behdad Esfahbod dc5c7927 2018-02-23T16:42:06 [subset] Caclculate head table checksum adjustment Test still fails, because we do not serialize tables in the same order that fonttools subsetter does.
Behdad Esfahbod ec2538c8 2018-02-23T15:51:26 [subset] Fix checksum calc out-of-bounds access
Garret Rieger 8e614ade 2018-02-20T17:36:54 [subset] Reverse table order for font serialization to match what OTS expects.
Rod Sheeter 62c7d677 2018-02-12T10:09:35 C-style comments
Behdad Esfahbod 570d5237 2018-02-10T13:24:22 [subset] Merge remote-tracking branch 'googlefonts/master'
Behdad Esfahbod 71130a20 2018-02-10T13:15:57 Replace Supplier.advance with Supplier::operator+=
Rod Sheeter 5cca0c07 2018-02-08T19:05:46 fix comment
Rod Sheeter a19138e6 2018-02-08T19:03:41 comment the serialization of table
Behdad Esfahbod 77ad8b5c 2018-02-07T21:54:33 TODO
Behdad Esfahbod 941bbd9f 2018-02-07T21:49:01 [subset] Fix thinko
Behdad Esfahbod 931f8b7e 2018-02-07T21:42:03 Fix another thinko
Behdad Esfahbod c479a599 2018-02-07T21:13:10 [subset] Assemble font
Behdad Esfahbod c9acab3c 2018-02-07T17:12:55 Whitespace
Behdad Esfahbod 6b19178e 2018-01-10T03:07:30 Prefix int types with HB Such a headache that Windows defines UINT8, ...; Just prefix it.
Behdad Esfahbod 6f335ed1 2017-11-14T21:06:07 Replace USHORT/SHORT/ULONG/etc with UINT16/INT16/UINT32/etc
ebraminio 102f5ead 2017-11-01T02:10:18 Enable PSVita (arm-none-eabi) compile again and add it to CI (#594)
Behdad Esfahbod 6c04dcb2 2017-10-31T20:11:00 Use bsearch() for large SFNT table directories
Behdad Esfahbod b0e33da0 2017-10-31T20:05:37 Add BinSearchArrayOf<>
Behdad Esfahbod 94b3cafc 2017-10-11T17:22:44 Add hb_face_get_table_tags() New API: hb_face_get_table_tags() Fixes https://github.com/behdad/harfbuzz/issues/560
Behdad Esfahbod 5e156fa5 2017-01-22T20:28:56 Add LOffsetTo<>
Behdad Esfahbod 9a13ed45 2016-02-22T11:44:45 Make FixedVersion a template
Behdad Esfahbod b4715901 2015-09-29T14:57:02 Define return_trace() Not functional change (expected!).
Behdad Esfahbod de2118ed 2015-02-17T17:27:44 Make sanitize() a const method This makes a lot of code safer. We only try modifying the object in one place, after making sure it's safe to do so. So, do a const_cast<> in that one place...
Behdad Esfahbod 153beebb 2014-12-12T19:46:09 [ot] Make sure all toplevel tables have tableTag
Behdad Esfahbod 7627100f 2014-07-11T14:54:42 Mark unsigned integer literals with the u suffix Simplifies hb_in_range() calls as the type can be inferred. The rest is obsessiveness, I admit.
Behdad Esfahbod 7d4ada66 2014-06-27T17:30:59 Mark unsed members with a "Z" suffix There may be more. There are members that are by definition redundant or reserved and not needed, NOT what we *currently* don't use. I'm sure there's more...
Behdad Esfahbod 3084767e 2014-06-27T15:24:35 Minor: Remove LongArrayOf
Behdad Esfahbod bb6ecf2c 2014-06-27T15:13:44 Minor: Remove LongOffsetArrayOf and LongOffsetLongArrayOf
Behdad Esfahbod be218c68 2012-11-23T15:32:14 Pass this object to trace macros
Behdad Esfahbod 7d52e660 2012-11-16T18:49:54 Whitespace
Behdad Esfahbod 7c8e844d 2012-08-28T17:57:49 Use namespace for OpenType tables Avoids USHORT, SHORT, ULONG, LONG clashes with Windows API.
Behdad Esfahbod ec8d2494 2012-07-24T15:40:37 Make data members of various OpenType structs protected instead of private Should fix warnings generated when building with -Wunused-private-field. Based on patch from Jonathan Kew.
Behdad Esfahbod 0ab8c862 2012-05-11T01:25:34 Annotate SANITIZE return values More to come, for APPLY, CLOSURE, etc.
Behdad Esfahbod c605bbbb 2011-08-04T20:00:53 Remove C++ guards from source files Where causing issues for people with MSVC.
Behdad Esfahbod 4f28fbdd 2011-05-31T12:33:11 Fix TTC header handling Also change the Version type to avoid similar bugs in the future. Reported by Grigori Goronzy.
Behdad Esfahbod 2409d5f8 2011-04-21T17:14:28 Update Copyright headers
Behdad Esfahbod 22c53765 2010-12-14T23:51:29 Rename TableDirectory to TableRecord as per OpenType 1.6
Behdad Esfahbod acdba3f9 2010-07-23T15:11:18 Prefer C linkage
Behdad Esfahbod 2f418f57 2010-07-07T22:07:40 Remove useless TODO
Behdad Esfahbod d7cfb3b2 2010-05-13T14:18:49 s/\<context\>/c/g
Behdad Esfahbod 4c20d8c0 2010-05-10T23:27:54 Sprinkle a few strategic likely()'s Shrinks the code size by some 2% even.
Behdad Esfahbod b5db4f1e 2010-05-10T22:22:22 Clean up NO_INDEX
Behdad Esfahbod dacebcad 2010-05-10T19:45:41 Simplify unions
Behdad Esfahbod 0eb9fc6e 2010-05-10T19:01:17 Change DEFINE_SIZE_VAR to DEFINE_SIZE_ARRAY
Behdad Esfahbod bea34c7c 2010-05-10T17:28:16 Further cleanup of DEFINE_SIZE
Behdad Esfahbod b3651231 2010-05-10T16:57:29 Remove ASSERT_SIZE in favor of the safer DEFINE_SIZE_STATIC
Behdad Esfahbod 569da92b 2010-05-10T16:38:32 Cleanup ASSERT_SIZE_VAR
Behdad Esfahbod e45d3f86 2010-05-06T19:33:31 Start cleaning up get_size() So we know when the size is static and when dynamic.
Behdad Esfahbod b1576176 2010-05-06T14:48:27 Remove the last of SANITIZE macros: SANITIZE_SELF
Behdad Esfahbod 4f252fed 2010-05-06T13:30:23 Remove SANITIZE macro
Behdad Esfahbod 41a93d2c 2010-05-06T12:55:14 Remove SANITIZE_WITH_BASE
Behdad Esfahbod 1cd1e117 2010-05-05T20:15:14 Remove SANITIZE_ARRAY
Behdad Esfahbod 583d7f95 2010-05-05T01:49:22 Cosmetic
Behdad Esfahbod 39840474 2010-05-05T00:23:19 Remove SANITIZE_ARG_DEF and SANITIZE_ARG
Behdad Esfahbod bb029af9 2010-05-04T15:28:52 Remove SANITIZE_THIS
Behdad Esfahbod ce5694c7 2010-05-04T14:10:18 [main] Recognize Apple SFNTs
Behdad Esfahbod 710500a9 2010-05-03T23:11:16 Comment new SFNT tags
Behdad Esfahbod 64d3fc8d 2010-05-03T22:51:19 Cosmetic: Rename HB_LIKELY/HB_UNLIKELY to likely/unlikely
Behdad Esfahbod 6b84198f 2010-05-03T22:46:52 Merge remote branch 'jrmuizel/master'
Jeff Muizelaar 4ce578ed 2010-05-03T15:03:53 Include the tags from the Apple specification for TrueType fonts
Behdad Esfahbod 631d10b7 2010-05-02T21:14:21 Remove unused method
Behdad Esfahbod 690b9194 2010-04-25T22:51:05 Remove use of flexible arrays Also remove wrong ASSERT_SIZE that would trigger only when not using flexible arrays (which was the case on win32, but not with gcc).
Behdad Esfahbod efb324a4 2010-04-23T16:22:54 Remove GET_FOR_DATA macros The major-version check is now handled by sanitize. If major doesn't match, we reject and fall back to the Null object.
Behdad Esfahbod f1aaa2a4 2010-04-23T15:19:50 Add TODO
Behdad Esfahbod ef66ebea 2010-04-23T14:40:36 Remove unused parameter
Behdad Esfahbod 1aa4666b 2010-04-23T13:32:03 Cleanup OpenTypeFontFile
Behdad Esfahbod ae4190ca 2010-04-23T12:33:02 Properly define separate structs for TTCHeader and TTCHeaderVersion1
Behdad Esfahbod a0bb49c5 2010-04-22T18:47:03 Add comment re bsearch effect on sanitize
Behdad Esfahbod a3263aa7 2010-04-22T18:29:09 Convert the last set of cast macros to templates
Behdad Esfahbod 1856184b 2010-04-22T14:15:11 Fail sanitize on major version mismatch We handle major-version differences via get_for_data(), so sanitize should never see a major version mismatch.
Behdad Esfahbod df3f505d 2010-04-22T14:11:33 More sanitize cleanup
Behdad Esfahbod 8015a8c7 2010-04-22T11:06:30 Don't sanitize raw table data That part is performed by individual table sanitize.
Behdad Esfahbod 079dc401 2010-04-22T10:47:12 Avoid overflow in TableDirectory sanitize
Behdad Esfahbod c755cb3e 2010-04-22T00:11:43 Change header comment
Behdad Esfahbod 0dfcc13a 2010-04-21T23:41:26 Rename ConstCharP to CharP (overloaded now)
Behdad Esfahbod 62c0fd75 2010-04-21T23:30:48 Cleanup de-const-casting during sanitize
Behdad Esfahbod 198facdc 2010-04-21T13:35:36 Use templates for const char * casts
Behdad Esfahbod ffd321af 2010-04-21T00:14:12 Simplify Tag struct
Behdad Esfahbod 4b8487d8 2010-03-16T03:46:17 Fix the mystery bug! A couple bugs joined forces to exhibit the mystery behavior of crashes / infinite loops on OS X / wrong kerning / invalid memory access. Pooh! The bugs were involved: - Wrong pointer math with ValueRecord in PairPosFormat1 - Fallout from avoiding flex arrays, code not correctly updated to remove sizeof() usage. We strictly never use sizeof() directly now. And the PairPos code is cleaned up. Should fix them all. Bugs are: Bug 605655 - Pango 1.26.2 introduces kerning bug Bug 611229 - Pango reads from uninitialized memory Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X We were also doing wrong math converting Device adjustments to hb_position_t. Fallout from FreeType days. Should shift 16, not 6. Fixed that too. There's still another bug: we don't sanitize Device records referenced from value records. Fixing that also.
Behdad Esfahbod 636f017e 2009-11-10T12:56:35 Remove obsolete TODO item
Behdad Esfahbod d3480ba3 2009-11-03T10:47:29 Don't use zero-sized arrays It's not part of the standard and MSVC doesn't like it. It makes the code a lot less elegant than it used to be, but I think it should work now.
Behdad Esfahbod 3e2401f6 2009-08-28T17:17:11 [HB] Rename DEBUG to TRACE where appropriate
Behdad Esfahbod 20b035da 2009-08-10T19:00:36 [HB] Put C++ inline's back Apparetly in C++, inline means a totally different thing.
Behdad Esfahbod bff3c0fd 2009-08-07T19:46:30 [HB] Remove clumsy macros and improve API
Behdad Esfahbod e605c367 2009-08-06T18:27:28 [HB] Rebrand XXX as TODO
Behdad Esfahbod 71a8344a 2009-08-06T14:28:18 [HB] Remove a few 'inline's, though the compiler mostly ignores them
Behdad Esfahbod b28815c1 2009-08-04T22:35:36 [HB] Add sanitize debugging facilities
Behdad Esfahbod 7edb430f 2009-08-04T22:06:57 [HB] Rename open-types to open-type; beauty
Behdad Esfahbod 2870ac5e 2009-08-04T22:43:47 [HB] Add missing sanitize
Behdad Esfahbod 9bd629cc 2009-08-04T21:42:23 [HB] Fix warnings
Behdad Esfahbod 2765d333 2009-08-04T20:50:18 [HB] Add XXX
Behdad Esfahbod b508e5cc 2009-08-04T15:07:24 [HB] open-file sanitize()
Behdad Esfahbod cd3827ee 2009-08-04T02:09:34 [HB] More sanitize()
Behdad Esfahbod 196598bb 2009-08-04T11:04:32 [Hb] Use reinterpret casts instead of direct casts to char *
Behdad Esfahbod 5f5b24f9 2009-08-02T20:03:12 [OT] Rename C++ header files from *.h to *.hh