src/hb-common.h


Log

Author Commit Date CI Message
Behdad Esfahbod 1a6b5ac6 2018-10-11T21:22:49 Add HB_DEPRECATED_FOR and mark relevant symbols
Behdad Esfahbod fb4f4383 2018-10-08T22:44:16 Add HB_DEPRECATED Fixes https://github.com/harfbuzz/harfbuzz/issues/1232
Behdad Esfahbod 90dd255e 2018-09-30T18:19:54 Change _HB_SCRIPT_MAX_VALUE from 0xFFFFFFFF to 0x7FFFFFFF Fixes https://github.com/harfbuzz/harfbuzz/issues/504
Behdad Esfahbod 00cd00e6 2018-09-30T05:34:30 Tweak HB_TAG and HB_UNTAG uint32_t was getting promoted to signed int, which is not what we wanted... Wow, clang has become good at generating warnings... ../../src/hb-common.h:349:29: warning: signed shift result (0xFF000000) sets the sign bit of the shift expression's type ('int') and becomes negative [-Wshift-sign-overflow] _HB_SCRIPT_MAX_VALUE = HB_TAG_MAX, /*< skip >*/ ^~~~~~~~~~ ../../src/hb-common.h:93:20: note: expanded from macro 'HB_TAG_MAX' define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/hb-common.h:89:57: note: expanded from macro 'HB_TAG' define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<<16)|(((uint8_t)(c3))<<8)|((uint8_t)(c4)))) ~~~~~~~~~~~~~~~^ ~~ ../../src/hb-common.h:349:3: warning: ISO C restricts enumerator values to range of 'int' (4294967295 is too large) [-Wpedantic] _HB_SCRIPT_MAX_VALUE = HB_TAG_MAX, /*< skip >*/ ^ ~~~~~~~~~~
Behdad Esfahbod becd84aa 2018-09-11T01:26:18 Add HB_FEATURE_GLOBAL_START/END Fixes https://github.com/harfbuzz/harfbuzz/issues/1141 New API: HB_FEATURE_GLOBAL_START HB_FEATURE_GLOBAL_END
Behdad Esfahbod 060e6b4a 2018-06-05T17:31:46 Update to Unicode 11.0.0 UCDN is not updated yet.
Tor Andersson 8f4c1230 2018-04-13T23:01:54 Reinstate support for Visual Studio 2005
Ebrahim Byagowi f24b0b97 2018-04-12T13:40:45 Update the links and revive the dead ones
Behdad Esfahbod fbb937b6 2017-10-15T12:04:16 Don't use NULL in public headers
Behdad Esfahbod cbec0cd6 2017-10-02T18:26:52 Remove some really old cruft
Behdad Esfahbod 1535f8c6 2017-10-02T16:12:18 Add Unicode 10 scripts
Behdad Esfahbod d2f249e7 2017-01-22T17:42:33 Stub out doc comments for new symbols
Behdad Esfahbod bb1e1926 2017-01-21T17:41:37 [var] Rename var_coord to variation Looks much better.
Behdad Esfahbod b3c0714b 2017-01-20T20:30:03 [var] Add hb_var_coord_t and parsing routines
Behdad Esfahbod 72364103 2017-01-20T20:16:53 Move code around
Behdad Esfahbod 691086f1 2016-05-06T12:08:18 Add Unicode 9 beta scripts These are frozen, so good time to add.
Behdad Esfahbod bc5198fe 2016-05-06T11:59:05 Whitespace
Khaled Hosny 8ab797c5 2015-12-29T17:42:16 [docs] A bit more buffers documentation
Chun-wei Fan 835bbdc7 2015-11-19T18:34:12 Public headers: Decorate public symbols with HB_EXTERN This prepares the headers for exporting symbols using visibility attributes or __declspec(dllexport), so that we do not need to maintain symbols listing files, as this is what was and is done in GLib and GTK+.
Behdad Esfahbod b8811429 2015-09-03T15:53:22 Fix Since tags Fixes https://github.com/behdad/harfbuzz/issues/103
Behdad Esfahbod 64a2726e 2015-07-15T01:36:39 Add Unicode 8.0 scripts Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1183209
Behdad Esfahbod 104484ce 2014-08-11T18:23:43 Minor
Behdad Esfahbod fe6788bc 2014-07-25T12:40:56 Typo
Behdad Esfahbod 1132a7dd 2014-07-20T01:17:40 Add HB_TAG_MAX_SIGNED / _HB_SCRIPT_MAX_VALUE_SIGNED To make C language police happy.
Behdad Esfahbod df999763 2014-07-19T17:31:23 [gobject] Skip _HB_SCRIPT_MAX_VALUE Fixes https://github.com/behdad/harfbuzz/pull/38
Behdad Esfahbod 62587bfc 2014-04-28T15:07:21 [unicode7] Declare Unicode 7 scripts
Behdad Esfahbod dc61294a 2014-04-28T14:58:28 [unicode7] Add missing ISO 15924 tags
Jonathan Kew 7691a154 2014-01-29T14:07:58 Ensure hb_script_t can safely hold any hb_tag_t value it's given. Fixes https://github.com/behdad/harfbuzz/pull/21
Behdad Esfahbod 133eeba6 2013-10-27T00:24:59 Minor See: https://github.com/prezi/harfbuzz-js/pull/1/files#r7032397
Behdad Esfahbod cd361c3c 2013-09-06T16:20:21 Minor change to hb_language_t Let me know if this breaks anyone's anything.
Behdad Esfahbod 4dc798de 2013-08-26T20:39:00 Add hb-deprecated.h, and rename a couple enum values Add deprecated alias for old name.
Behdad Esfahbod 700a15fe 2013-08-26T17:49:36 Add HB_DISABLE_DEPRECATED That moment that you have to accept that you made API mistakes...
Behdad Esfahbod 54e6f6c5 2013-08-09T14:34:54 Clean up list of Unicode scripts Rename HB_SCRIPT_CANADIAN_ABORIGINAL to HB_SCRIPT_CANADIAN_SYLLABICS and a macro for the old name.
Behdad Esfahbod e30ebd27 2012-09-06T22:09:06 Add hb_feature_to/from_string()
Behdad Esfahbod 06b192c4 2012-08-08T15:23:45 Minor
Behdad Esfahbod 37191ede 2012-08-08T14:59:09 Minor
Behdad Esfahbod 21fdcee0 2012-08-01T16:23:44 Add hb_unicode_combining_class_t
Behdad Esfahbod 5c5bc962 2012-07-13T10:15:37 Allow overriding HB_BEGIN_DECLS / HB_END_DECLS
Behdad Esfahbod 1bc1cb36 2012-06-16T15:21:55 Make source more digestable for gobject-introspection
Behdad Esfahbod 38a83019 2012-04-14T19:40:18 Minor
Behdad Esfahbod fe28b997 2012-04-14T19:19:26 Add HB_DIRECTION_IS_VALID
Behdad Esfahbod 5e88aa66 2012-04-14T18:51:50 Remove public enum names again As was reported to me, glib-mkenum does not understand named enums, so remove for now.
Behdad Esfahbod 4bf90f64 2012-04-12T17:38:23 Make HB_DIRECTION_INVALID be zero This changes all the HB_DIRECTION_* enum member values, but is nicer, in preparation for making hb_segment_properties_t public.
Behdad Esfahbod c6035cf8 2012-04-12T13:23:59 Add names to enums gdb was showing <anonymous enum> instead of useful stuff, so name all our enums.
Behdad Esfahbod d1c9eb45 2012-04-12T13:17:44 Make it an error to include non-top-level headers Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but never things like hb-shape.h directly. This makes it easier to refactor headers later on without breaking compatibility.
Behdad Esfahbod cad3821f 2012-03-07T17:13:25 More sorting by Unicode version This is the most convenient way to browse scripts.
Behdad Esfahbod fa2673c1 2012-03-07T15:52:02 More Unicode script age annotation, and a couple more RTL scripts Cross-checked with Mark Davis's spreadsheet at http://goo.gl/x9ilM
Behdad Esfahbod 7da435f0 2012-03-07T15:20:20 Separate Unicode 3.1 and Unicode 3.2 additions
Behdad Esfahbod f32c0012 2012-03-07T12:53:34 Add Unicode 6.1.0 scripts
Behdad Esfahbod a5283563 2012-03-07T12:38:39 Whitespace
Behdad Esfahbod 4c9fe88d 2011-08-26T09:18:53 [API] Make all _from_string() functions take a len parameter Can be -1 for NUL-terminated string. This is useful for passing parts of a larger string to a function without having to copy or modify the string first. Affected functions: hb_tag_t hb_tag_from_string() hb_direction_from_string() hb_language_from_string() hb_script_from_string()
Behdad Esfahbod c214cff5 2011-08-14T15:17:16 Start adding gobject-introspection support
Behdad Esfahbod 77a32876 2011-08-13T17:16:45 Minor
Behdad Esfahbod 5157e12a 2011-07-21T00:12:33 Rename HB_UNICODE_GENERAL_CATEGORY_COMBINING_MARK to HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK Spacing_Mark is the current Unicode long-name for this property value. The previous name was wrongly carried from glib.
Behdad Esfahbod 902ab866 2011-06-10T23:08:54 GNOME Bug 652227 - Unconditional use of stdint.h
Behdad Esfahbod 1a64f6e1 2011-05-13T22:55:32 [API] Add HB_LANGUAGE_INVALID
Behdad Esfahbod d3b30be3 2011-05-11T18:06:12 [API] Add HB_UNTAG() Useful in C API only.
Behdad Esfahbod 34fb5521 2011-05-06T00:04:28 [API] Add hb_language_get_default() It uses locale information to detect default language. It's used by hb_shape() whenever language is not set on the buffer. Not sure how to properly test it in the test suite. Tested by observing that with DejaVu Sans we select the proper local glyph version for U+431 under Serbian locale. See http://www.pango.org/ScriptGallery
Behdad Esfahbod d02985ec 2011-05-02T12:35:14 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.
Behdad Esfahbod 29c67d3f 2011-04-27T21:22:32 Add initial implementation of user_data to objects
Behdad Esfahbod 39a840ae 2011-04-27T14:48:19 [API] Add hb_direction_from/to_string() And hb-view --direction argument.
Behdad Esfahbod 2409d5f8 2011-04-21T17:14:28 Update Copyright headers
Behdad Esfahbod 62879eeb 2011-04-18T23:40:21 [API] Use ISO 15924 tags for hb_script_t This simplifies the code, reduces static data, and makes the design more extensible to future additions of new scripts.
Behdad Esfahbod 00bec2c9 2011-04-15T19:16:54 Move enum types to hb-common.h
Behdad Esfahbod 3cbdf70e 2011-04-15T12:32:06 Make hb_language_t typesafe
Behdad Esfahbod 8e4bb3ca 2011-04-11T17:55:58 Fold hb-language.[ch] into hb-common.[ch]
Behdad Esfahbod 4188096a 2011-04-11T14:58:28 Make HB_TAG_CHAR4 private It's just sugar.
Behdad Esfahbod 07233581 2011-04-11T13:12:37 Rename HB_TAG_STR() to HB_TAG_CHAR4() The problem with HB_TAG_STR() was that it expected a string of size 4 exactly, and unlike hb_tag_from_string() it doesn't pad the tag with space characters. So, the new name is more appropriate.
Behdad Esfahbod d77b7620 2011-04-11T12:29:52 Add few more paratheses to the HB_TAG macro Never hurts.
Behdad Esfahbod ae9eeaff 2011-04-11T11:49:08 Remove warning message from public header file Since we now assert thos in hb-private.h, the int types cannot be wrong. (Except for when someone else includes hb-common.h in a very broken configuration, but that's not our problem!) Plus, we don't use inline in the public headers, so remove that too.
Behdad Esfahbod 3286fc0e 2011-03-16T14:53:32 Let hb_shape() guess script and direction... - Rename HB_SCRIPT_INVALID_CODE to HB_SCRIPT_INVALID - Add HB_DIRECTION_INVALID - Make hb_script_get_horizontal_direction() public - Make hb_shape() guess script from buffer text (first non-common non-inherit script) if buffer script is set to HB_SCRIPT_INVALID (this is NOT the default.) - Make hb_shape() guess direction from buffer script if buffer direction is set to HB_DIRECTION_INVALID (this is NOT the default.) - Make hb-view.c set INVALID script and direction on the buffer. The above changes are meant to make hb-view fairly useful for uni-script uni-direction text. The guessing behavior however is NOT the default of hb_shape() and must be asked for explicitly. This is intended, because the guess is not a suitable substitute to full-fledged bidi and script segmentation. It's just a testing tool.
Behdad Esfahbod 6cb8c349 2010-10-27T14:27:03 Add hb_var_int_t
Behdad Esfahbod acdba3f9 2010-07-23T15:11:18 Prefer C linkage
Behdad Esfahbod 83f34677 2010-05-21T13:43:49 Add hb_tag_from_string()
Behdad Esfahbod 0a4399ca 2010-05-19T15:45:06 Fix scale issues hb_font_set_scale() now sets the value to be used to represent a unit pixel. For example, if rendering a 10px font with a 26.6 representation, you would set scale to (10 << 6). For 10px in 16.16 you would set it to (10 << 16). This space should be the same space that the get_glyph_metrics and get_kerning callbacks work in.
Behdad Esfahbod 1ce4dc95 2010-05-12T18:29:25 Use bit tricks for HB_DIRECTION_IS_* We already depend on the exact values of the direction enum in HB_DIRECTION_REVERSE(), so we may as well use that.
Behdad Esfahbod 22da7fd9 2010-05-12T18:23:21 Rename a few files to be C++ sources In anticipation for buffer revamp coming.
Behdad Esfahbod c755cb3e 2010-04-22T00:11:43 Change header comment
Behdad Esfahbod 314b460d 2009-12-20T13:58:50 Add HB_DIRECTION_IS_FORWARD/BACKWARD
Behdad Esfahbod ff44f88d 2009-11-06T19:48:16 Handle shaping in non-native direction
Behdad Esfahbod cd7555ee 2009-11-03T15:16:10 Namespace MSVC defines in public header
Behdad Esfahbod ffbe0a85 2009-11-03T10:52:45 More MSVC fixes from Jonathan Kew
Behdad Esfahbod cc4c096a 2009-11-02T18:13:17 MSVC has no stdint.h
Behdad Esfahbod 468769b8 2009-08-08T16:53:23 [HB] Rename hb_ot_layout_feature_mask_t to hb_mask_t
Behdad Esfahbod 0ead481a 2009-08-02T17:41:36 [HB] Port ot-layout to new public API
Behdad Esfahbod 0cc7bc59 2009-08-01T21:38:39 [HB] Move typedef's around
Behdad Esfahbod 35a7383c 2009-08-01T19:30:31 [HB] Simplify refcounting functions
Behdad Esfahbod 0090dc0f 2009-07-30T16:28:45 [HB] Remove hinting setting and use ppem==0 to mean "no hinting"
Behdad Esfahbod 55520d2a 2009-06-10T23:26:51 XX
Behdad Esfahbod 2ebb89d6 2009-07-25T19:09:01 Revert "XX" This reverts commit c939f6aff405ca7b10b1f1538f46148bff719fcb.
Behdad Esfahbod 6c78683c 2009-05-25T03:22:19 [HB] Update copyright years
Behdad Esfahbod f96ffd43 2009-05-24T15:01:16 [HB] simplify macros
Behdad Esfahbod c7d457aa 2009-05-21T12:46:29 [HB] Ouch. Add files.
Behdad Esfahbod 2d15e72c 2009-04-15T19:50:16 Give it a start at GSUB
Behdad Esfahbod 590d55cb 2008-01-24T19:13:50 [GDEF] Finish public API
Behdad Esfahbod 64aef3a5 2008-01-23T16:14:38 Add copyright notices.
Behdad Esfahbod 8dd1c8b8 2008-01-23T05:00:30 Clean up file names, add namespace