framework/uifw/harfbuzz.git
14 years agoFurther cleanup of sizeof
Behdad Esfahbod [Mon, 10 May 2010 22:08:46 +0000 (18:08 -0400)]
Further cleanup of sizeof

14 years agoRemove CastP completely
Behdad Esfahbod [Mon, 10 May 2010 21:55:03 +0000 (17:55 -0400)]
Remove CastP completely

14 years agoRemove unnecessary casts
Behdad Esfahbod [Mon, 10 May 2010 21:47:22 +0000 (17:47 -0400)]
Remove unnecessary casts

14 years agoMake StructAtOffset take a pointer
Behdad Esfahbod [Mon, 10 May 2010 21:36:03 +0000 (17:36 -0400)]
Make StructAtOffset take a pointer

Is safer.

14 years agoFurther cleanup of DEFINE_SIZE
Behdad Esfahbod [Mon, 10 May 2010 21:28:16 +0000 (17:28 -0400)]
Further cleanup of DEFINE_SIZE

14 years agoCleanup
Behdad Esfahbod [Mon, 10 May 2010 21:04:20 +0000 (17:04 -0400)]
Cleanup

14 years agoRemove ASSERT_SIZE in favor of the safer DEFINE_SIZE_STATIC
Behdad Esfahbod [Mon, 10 May 2010 20:57:29 +0000 (16:57 -0400)]
Remove ASSERT_SIZE in favor of the safer DEFINE_SIZE_STATIC

14 years agoCleanup ASSERT_SIZE_VAR
Behdad Esfahbod [Mon, 10 May 2010 20:38:32 +0000 (16:38 -0400)]
Cleanup ASSERT_SIZE_VAR

14 years agoWhitespace
Behdad Esfahbod [Thu, 6 May 2010 23:37:32 +0000 (19:37 -0400)]
Whitespace

14 years agoSimplify DEFINE_NULL_DATA
Behdad Esfahbod [Thu, 6 May 2010 23:35:19 +0000 (19:35 -0400)]
Simplify DEFINE_NULL_DATA

Using ::min_size.

14 years agoStart cleaning up get_size()
Behdad Esfahbod [Thu, 6 May 2010 23:33:31 +0000 (19:33 -0400)]
Start cleaning up get_size()

So we know when the size is static and when dynamic.

14 years agoRemove the last of SANITIZE macros: SANITIZE_SELF
Behdad Esfahbod [Thu, 6 May 2010 18:48:27 +0000 (14:48 -0400)]
Remove the last of SANITIZE macros: SANITIZE_SELF

14 years agoRemove SANITIZE macro
Behdad Esfahbod [Thu, 6 May 2010 17:30:23 +0000 (13:30 -0400)]
Remove SANITIZE macro

14 years agoCleanup Value casts
Behdad Esfahbod [Thu, 6 May 2010 17:06:15 +0000 (13:06 -0400)]
Cleanup Value casts

14 years agoRemove SANITIZE_WITH_BASE
Behdad Esfahbod [Thu, 6 May 2010 16:55:14 +0000 (12:55 -0400)]
Remove SANITIZE_WITH_BASE

14 years agoRemove SANITIZE_MEM
Behdad Esfahbod [Thu, 6 May 2010 14:26:52 +0000 (10:26 -0400)]
Remove SANITIZE_MEM

14 years agoRename check to check_range
Behdad Esfahbod [Thu, 6 May 2010 13:24:24 +0000 (09:24 -0400)]
Rename check to check_range

14 years agoRemove SANITIZE_ARRAY
Behdad Esfahbod [Thu, 6 May 2010 00:15:14 +0000 (20:15 -0400)]
Remove SANITIZE_ARRAY

14 years agoCosmetic
Behdad Esfahbod [Wed, 5 May 2010 05:49:22 +0000 (01:49 -0400)]
Cosmetic

14 years agoMinor
Behdad Esfahbod [Wed, 5 May 2010 05:40:25 +0000 (01:40 -0400)]
Minor

14 years agoMinor
Behdad Esfahbod [Wed, 5 May 2010 05:39:26 +0000 (01:39 -0400)]
Minor

14 years agoSimplify chaining
Behdad Esfahbod [Wed, 5 May 2010 05:37:58 +0000 (01:37 -0400)]
Simplify chaining

14 years agoRemove APPLY_ARG_DEF and APPLY_ARG
Behdad Esfahbod [Wed, 5 May 2010 05:32:04 +0000 (01:32 -0400)]
Remove APPLY_ARG_DEF and APPLY_ARG

14 years agoPort apply to use hb_trace_t
Behdad Esfahbod [Wed, 5 May 2010 05:30:48 +0000 (01:30 -0400)]
Port apply to use hb_trace_t

14 years agoMove context_length into apply_context
Behdad Esfahbod [Wed, 5 May 2010 05:23:44 +0000 (01:23 -0400)]
Move context_length into apply_context

14 years agoMove buffer into apply_context
Behdad Esfahbod [Wed, 5 May 2010 05:13:09 +0000 (01:13 -0400)]
Move buffer into apply_context

14 years agoMove layout_context into apply_context
Behdad Esfahbod [Wed, 5 May 2010 05:01:05 +0000 (01:01 -0400)]
Move layout_context into apply_context

14 years agoMinor
Behdad Esfahbod [Wed, 5 May 2010 04:32:21 +0000 (00:32 -0400)]
Minor

14 years agoI keep changing my mind about this
Behdad Esfahbod [Wed, 5 May 2010 04:26:16 +0000 (00:26 -0400)]
I keep changing my mind about this

14 years agoRemove SANITIZE_ARG_DEF and SANITIZE_ARG
Behdad Esfahbod [Wed, 5 May 2010 04:23:19 +0000 (00:23 -0400)]
Remove SANITIZE_ARG_DEF and SANITIZE_ARG

14 years agoRemove trace from sanitize_shallow()
Behdad Esfahbod [Wed, 5 May 2010 04:20:16 +0000 (00:20 -0400)]
Remove trace from sanitize_shallow()

14 years agoAdd hb_trace_t
Behdad Esfahbod [Wed, 5 May 2010 04:19:46 +0000 (00:19 -0400)]
Add hb_trace_t

14 years agoMake sanitize_depth variable automatic and not passed through function args
Behdad Esfahbod [Wed, 5 May 2010 03:21:57 +0000 (23:21 -0400)]
Make sanitize_depth variable automatic and not passed through function args

14 years agoUse function template for pass-thru argument
Behdad Esfahbod [Wed, 5 May 2010 02:46:21 +0000 (22:46 -0400)]
Use function template for pass-thru argument

14 years agoMake _hb_sanitize_*() methods of the context object
Behdad Esfahbod [Wed, 5 May 2010 02:42:49 +0000 (22:42 -0400)]
Make _hb_sanitize_*() methods of the context object

14 years agoRemove SANITIZE_THIS
Behdad Esfahbod [Tue, 4 May 2010 19:28:52 +0000 (15:28 -0400)]
Remove SANITIZE_THIS

14 years agoRename SANITIZE_BASE to SANITIZE_WITH_BASE
Behdad Esfahbod [Tue, 4 May 2010 19:12:17 +0000 (15:12 -0400)]
Rename SANITIZE_BASE to SANITIZE_WITH_BASE

14 years agoRemove SANITIZE_OBJ
Behdad Esfahbod [Tue, 4 May 2010 19:01:45 +0000 (15:01 -0400)]
Remove SANITIZE_OBJ

14 years agoRemove SANITIZE_THIS2
Behdad Esfahbod [Tue, 4 May 2010 18:57:55 +0000 (14:57 -0400)]
Remove SANITIZE_THIS2

14 years agoCosmetic
Behdad Esfahbod [Tue, 4 May 2010 18:49:45 +0000 (14:49 -0400)]
Cosmetic

14 years agoRemove SANITIZE_THIS3
Behdad Esfahbod [Tue, 4 May 2010 18:47:05 +0000 (14:47 -0400)]
Remove SANITIZE_THIS3

14 years agoRemove SANITIZE_BASE2
Behdad Esfahbod [Tue, 4 May 2010 18:42:10 +0000 (14:42 -0400)]
Remove SANITIZE_BASE2

14 years agoRemove SANITIZE2
Behdad Esfahbod [Tue, 4 May 2010 18:40:55 +0000 (14:40 -0400)]
Remove SANITIZE2

14 years agoRemove the NEUTER macro, move code to a method
Behdad Esfahbod [Tue, 4 May 2010 18:38:08 +0000 (14:38 -0400)]
Remove the NEUTER macro, move code to a method

14 years agoMake internal method private
Behdad Esfahbod [Tue, 4 May 2010 18:28:18 +0000 (14:28 -0400)]
Make internal method private

14 years ago[main] Recognize Apple SFNTs
Behdad Esfahbod [Tue, 4 May 2010 18:10:18 +0000 (14:10 -0400)]
[main] Recognize Apple SFNTs

14 years agoComment new SFNT tags
Behdad Esfahbod [Tue, 4 May 2010 03:11:16 +0000 (23:11 -0400)]
Comment new SFNT tags

14 years agoCosmetic: Rename HB_LIKELY/HB_UNLIKELY to likely/unlikely
Behdad Esfahbod [Tue, 4 May 2010 02:51:19 +0000 (22:51 -0400)]
Cosmetic: Rename HB_LIKELY/HB_UNLIKELY to likely/unlikely

14 years agoMark a couple functions as inline
Behdad Esfahbod [Tue, 4 May 2010 02:47:22 +0000 (22:47 -0400)]
Mark a couple functions as inline

14 years agoMerge remote branch 'jrmuizel/master'
Behdad Esfahbod [Tue, 4 May 2010 02:46:52 +0000 (22:46 -0400)]
Merge remote branch 'jrmuizel/master'

14 years agoHB_UNUSED is unneeded on static inline functions
Jeff Muizelaar [Tue, 4 May 2010 02:27:56 +0000 (22:27 -0400)]
HB_UNUSED is unneeded on static inline functions

14 years agoInclude the tags from the Apple specification for TrueType fonts
Jeff Muizelaar [Mon, 3 May 2010 19:03:53 +0000 (15:03 -0400)]
Include the tags from the Apple specification for TrueType fonts

14 years agoRemove unused method
Behdad Esfahbod [Mon, 3 May 2010 01:14:21 +0000 (21:14 -0400)]
Remove unused method

14 years agoWhitespace
Behdad Esfahbod [Sun, 2 May 2010 22:14:25 +0000 (18:14 -0400)]
Whitespace

14 years ago[GPOS] Speedup apply_value()
Behdad Esfahbod [Thu, 29 Apr 2010 18:31:56 +0000 (14:31 -0400)]
[GPOS] Speedup apply_value()

14 years ago[ft] Disallow getting the entire font data with tag=0
Behdad Esfahbod [Thu, 29 Apr 2010 18:15:32 +0000 (14:15 -0400)]
[ft] Disallow getting the entire font data with tag=0

14 years agoRename HB_GNUC_UNUSED -> HB_UNUSED
Behdad Esfahbod [Thu, 29 Apr 2010 17:56:44 +0000 (13:56 -0400)]
Rename HB_GNUC_UNUSED -> HB_UNUSED

14 years agoDefine HB_FUNC for portability to non-gcc
Behdad Esfahbod [Thu, 29 Apr 2010 17:54:01 +0000 (13:54 -0400)]
Define HB_FUNC for portability to non-gcc

14 years ago[sanitize] Make debug code always available to the compiler
Behdad Esfahbod [Thu, 29 Apr 2010 17:48:26 +0000 (13:48 -0400)]
[sanitize] Make debug code always available to the compiler

Such that we don't break debug build all the time.

14 years agoConvert to uppercase in hb_ot_tag_from_language()
Behdad Esfahbod [Thu, 29 Apr 2010 08:41:41 +0000 (04:41 -0400)]
Convert to uppercase in hb_ot_tag_from_language()

14 years agoMore contour point use
Behdad Esfahbod [Thu, 29 Apr 2010 07:59:06 +0000 (03:59 -0400)]
More contour point use

14 years ago[gdef] Fix delta scale
Behdad Esfahbod [Thu, 29 Apr 2010 07:48:27 +0000 (03:48 -0400)]
[gdef] Fix delta scale

14 years ago[gdef] Fix rounding
Behdad Esfahbod [Thu, 29 Apr 2010 07:48:11 +0000 (03:48 -0400)]
[gdef] Fix rounding

14 years ago[gdef] Implement getting contour point
Behdad Esfahbod [Thu, 29 Apr 2010 07:47:00 +0000 (03:47 -0400)]
[gdef] Implement getting contour point

14 years agoMake sure mirroring is done in original direction
Behdad Esfahbod [Thu, 29 Apr 2010 07:39:39 +0000 (03:39 -0400)]
Make sure mirroring is done in original direction

Reported by Jonathan Kew.

14 years agoUse BCP47 private-use tags for OpenType tag language string mapping
Behdad Esfahbod [Thu, 29 Apr 2010 07:31:03 +0000 (03:31 -0400)]
Use BCP47 private-use tags for OpenType tag language string mapping

14 years agoMinor
Behdad Esfahbod [Thu, 29 Apr 2010 07:11:32 +0000 (03:11 -0400)]
Minor

14 years agoFix bug in hb_language_from_string()
Behdad Esfahbod [Thu, 29 Apr 2010 06:58:38 +0000 (02:58 -0400)]
Fix bug in hb_language_from_string()

Reported by Jonathan Kew.

14 years agoUse const_cast
Behdad Esfahbod [Thu, 29 Apr 2010 06:28:54 +0000 (02:28 -0400)]
Use const_cast

14 years agoAdd const
Behdad Esfahbod [Thu, 29 Apr 2010 06:27:20 +0000 (02:27 -0400)]
Add const

14 years agoRename apply_context -> context
Behdad Esfahbod [Thu, 29 Apr 2010 06:25:30 +0000 (02:25 -0400)]
Rename apply_context -> context

14 years agoRename
Behdad Esfahbod [Thu, 29 Apr 2010 06:24:25 +0000 (02:24 -0400)]
Rename

14 years ago[apply] Use a context object to reduce number of parameters passed around
Behdad Esfahbod [Thu, 29 Apr 2010 06:19:21 +0000 (02:19 -0400)]
[apply] Use a context object to reduce number of parameters passed around

14 years agoFurther simplify tracing
Behdad Esfahbod [Thu, 29 Apr 2010 05:47:30 +0000 (01:47 -0400)]
Further simplify tracing

14 years agoSimplify trace code
Behdad Esfahbod [Thu, 29 Apr 2010 05:40:26 +0000 (01:40 -0400)]
Simplify trace code

14 years ago[sanitize] Make debug code always available to the compiler
Behdad Esfahbod [Thu, 29 Apr 2010 00:25:22 +0000 (20:25 -0400)]
[sanitize] Make debug code always available to the compiler

Such that we don't break debug build all the time.

14 years ago[gsubgpos] Make debug code always available to the compiler
Behdad Esfahbod [Wed, 28 Apr 2010 19:15:09 +0000 (15:15 -0400)]
[gsubgpos] Make debug code always available to the compiler

Such that we don't break debug build all the time.

14 years agoFix compiler warning about value unused
Behdad Esfahbod [Wed, 28 Apr 2010 17:33:09 +0000 (13:33 -0400)]
Fix compiler warning about value unused

14 years ago[object] Make debug code always available to the compiler
Behdad Esfahbod [Wed, 28 Apr 2010 17:29:55 +0000 (13:29 -0400)]
[object] Make debug code always available to the compiler

Such that we don't break debug build all the time.

14 years agoMinor
Behdad Esfahbod [Wed, 28 Apr 2010 17:18:41 +0000 (13:18 -0400)]
Minor

14 years ago[blob] Make debug code always available to the compiler
Behdad Esfahbod [Wed, 28 Apr 2010 17:16:38 +0000 (13:16 -0400)]
[blob] Make debug code always available to the compiler

Such that we don't break debug build all the time.

14 years agoFix build. Ouch!
Behdad Esfahbod [Wed, 28 Apr 2010 17:10:36 +0000 (13:10 -0400)]
Fix build.  Ouch!

14 years agoFix debug build
Behdad Esfahbod [Wed, 28 Apr 2010 17:09:40 +0000 (13:09 -0400)]
Fix debug build

14 years ago[object] Actually handle malloc() failure
Behdad Esfahbod [Wed, 28 Apr 2010 03:28:10 +0000 (23:28 -0400)]
[object] Actually handle malloc() failure

Caught by John Daggett.

14 years agoFix Device::get_size() calculation
Behdad Esfahbod [Mon, 26 Apr 2010 14:07:35 +0000 (10:07 -0400)]
Fix Device::get_size() calculation

14 years agoRename Var to Obj
Behdad Esfahbod [Mon, 26 Apr 2010 03:01:45 +0000 (23:01 -0400)]
Rename Var to Obj

14 years agoRemove use of flexible arrays
Behdad Esfahbod [Mon, 26 Apr 2010 02:51:05 +0000 (22:51 -0400)]
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).

14 years agoCleanup hb_face_create_for_data()
Behdad Esfahbod [Sat, 24 Apr 2010 00:49:18 +0000 (20:49 -0400)]
Cleanup hb_face_create_for_data()

14 years agoAllow get_table() to return NULL
Behdad Esfahbod [Fri, 23 Apr 2010 23:59:53 +0000 (19:59 -0400)]
Allow get_table() to return NULL

14 years agoTypo
Behdad Esfahbod [Fri, 23 Apr 2010 23:43:40 +0000 (19:43 -0400)]
Typo

14 years agoRemove lock_instance()
Behdad Esfahbod [Fri, 23 Apr 2010 21:53:32 +0000 (17:53 -0400)]
Remove lock_instance()

14 years agoAdd different casts from pointer and ref to avoid bugs
Behdad Esfahbod [Fri, 23 Apr 2010 20:35:01 +0000 (16:35 -0400)]
Add different casts from pointer and ref to avoid bugs

14 years agoRemove GET_FOR_DATA macros
Behdad Esfahbod [Fri, 23 Apr 2010 20:22:54 +0000 (16:22 -0400)]
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.

14 years agoAdd TODO
Behdad Esfahbod [Fri, 23 Apr 2010 19:19:50 +0000 (15:19 -0400)]
Add TODO

14 years agoZero glyph metrics before calling user callback
Behdad Esfahbod [Fri, 23 Apr 2010 18:56:55 +0000 (14:56 -0400)]
Zero glyph metrics before calling user callback

14 years agoMore warning fixes
Behdad Esfahbod [Fri, 23 Apr 2010 18:44:55 +0000 (14:44 -0400)]
More warning fixes

14 years agoRemove unused parameter
Behdad Esfahbod [Fri, 23 Apr 2010 18:40:36 +0000 (14:40 -0400)]
Remove unused parameter

14 years agoFix compile warnings (HB_GNUC_UNUSED)
Behdad Esfahbod [Fri, 23 Apr 2010 18:39:10 +0000 (14:39 -0400)]
Fix compile warnings (HB_GNUC_UNUSED)

14 years agoNo need to keep blob in sanitize context
Behdad Esfahbod [Fri, 23 Apr 2010 18:07:34 +0000 (14:07 -0400)]
No need to keep blob in sanitize context

14 years agoWhen sanitizing, delay making writable
Behdad Esfahbod [Fri, 23 Apr 2010 17:57:10 +0000 (13:57 -0400)]
When sanitizing, delay making writable

Before, as soon as we needed to make an edit, we tried to make the blob
writable inplace.  That grows code unnecessarily though.  We can simply
fail, make writable, then start again.  That's indeed what the fallback
was doing anyway.