[HarfBuzz] harfbuzz-ng: Branch 'master' - 2 commits
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Jan 26 09:59:20 PST 2010
TODO | 3 +++
src/hb-ot-layout.cc | 5 +++--
src/hb-ot-layout.h | 1 -
3 files changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 555d11273ee4c30e84eda3a78ffadb3ee7da65d0
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Tue Jan 26 12:58:59 2010 -0500
[GDEF] Fix bug in building synthetic GDEF
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc
index cf4fc9d..4a17af2 100644
--- a/src/hb-ot-layout.cc
+++ b/src/hb-ot-layout.cc
@@ -44,6 +44,8 @@ _hb_ot_layout_init (hb_face_t *face)
{
hb_ot_layout_t *layout = &face->ot_layout;
+ memset (layout, 0, sizeof (*layout));
+
layout->gdef_blob = Sanitizer<GDEF>::sanitize (hb_face_get_table (face, HB_OT_TAG_GDEF));
layout->gdef = &Sanitizer<GDEF>::lock_instance (layout->gdef_blob);
@@ -279,7 +281,6 @@ hb_ot_layout_set_glyph_class (hb_face_t *face,
void
hb_ot_layout_build_glyph_classes (hb_face_t *face,
- uint16_t num_total_glyphs,
hb_codepoint_t *glyphs,
unsigned char *klasses,
uint16_t count)
@@ -293,7 +294,7 @@ hb_ot_layout_build_glyph_classes (hb_face_t *face,
return;
if (layout->new_gdef.len == 0) {
- layout->new_gdef.klasses = (unsigned char *) calloc (num_total_glyphs, sizeof (unsigned char));
+ layout->new_gdef.klasses = (unsigned char *) calloc (count, sizeof (unsigned char));
layout->new_gdef.len = count;
}
diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h
index 8edca8e..c65b059 100644
--- a/src/hb-ot-layout.h
+++ b/src/hb-ot-layout.h
@@ -68,7 +68,6 @@ hb_ot_layout_set_glyph_class (hb_face_t *face,
void
hb_ot_layout_build_glyph_classes (hb_face_t *face,
- uint16_t num_total_glyphs,
hb_codepoint_t *glyphs,
unsigned char *klasses,
uint16_t count);
commit 70834d89c30a56fcd78825fbc28fc9c6bec31124
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Tue Jan 26 12:17:37 2010 -0500
[TODO] Add kern/GPOS interaction
diff --git a/TODO b/TODO
index 4df3daf..3bff487 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,6 @@
+
+- kern/GPOS interaction
+
- Use size_t in sanitize?
- Buffer error handling?
- Better define HB_INTERNAL
More information about the HarfBuzz
mailing list