1. 02 2月, 2009 1 次提交
  2. 29 1月, 2009 4 次提交
    • B
      Remove ClassDef->Defined field. This is the comment accompanying it: · c561d69c
      Behdad Esfahbod 提交于
      2009-01-29  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/opentype/harfbuzz-open.h:
              * pango/opentype/harfbuzz-gdef.c (Make_ClassRange),
              (HB_GDEF_Build_ClassDefinition):
              * pango/opentype/harfbuzz-gpos.c (Load_PosClassRule),
              (Load_ChainPosClassRule):
              * pango/opentype/harfbuzz-gsub.c (Load_SubClassRule),
              (Load_ChainSubClassRule):
              * pango/opentype/harfbuzz-open.c (Load_ClassDef1),
              (Load_ClassDef2), (_HB_OPEN_Load_ClassDefinition),
              (_HB_OPEN_Load_EmptyClassDefinition),
              (_HB_OPEN_Free_ClassDefinition):
              Remove ClassDef->Defined field.  This is the comment accompanying it:
      
                The `Defined' field is not defined in the OpenType specification
                but apparently needed for processing fonts like trado.ttf: This
                font refers to a class which contains not a single element.  We
                map such classes to class 0.
      
              The comment is correct that trado.ttf (MS Traditional Arabic) uses
              such classes.  However, in my testing I couldn't identify any
              problems with the font if the special handling is removed.  I also
              processed as many fonts as I could get my hand on and trado.ttf was
              the only not-totally-broken font hitting the special-case code.
              DejaVu fonts hit it too, but I'm sure they do not require the
              special-handling code.  Most probably, that code introduces bugs
              in them.
      
              The special-casing was consuming lots of memory.  EIGHT MEGABYTES
              for loading DejaVu Sans!  While this could be complete fixed, I
              decided to remove the special-handling code altogether.  I don't
              think it will make any real difference, and if it does, we'll fix
              fonts.  Such hacks will not be in harfbuzz-ng anyway.
      
              Bug originally reported by nsf.
      c561d69c
    • B
      Use calloc(), instead of malloc()ing and memset()ing. · 9372edd6
      Behdad Esfahbod 提交于
      2009-01-29  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
              instead of malloc()ing and memset()ing.
      9372edd6
    • B
      Remove old cruft. · 94c21d26
      Behdad Esfahbod 提交于
      2009-01-29  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/opentype/harfbuzz-dump-main.c (main): Remove old cruft.
      94c21d26
    • B
      Allocate all array rows in a single ALLOC call. Saves over 2000 alloc · 0a47c4f7
      Behdad Esfahbod 提交于
      2009-01-29  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/opentype/harfbuzz-gpos.c (Load_BaseArray), (Free_BaseArray):
              Allocate all array rows in a single ALLOC call.  Saves over 2000
              alloc calls when loading DejaVu Sans!
      0a47c4f7
  3. 26 12月, 2008 2 次提交
    • B
      Bug 469049 – Fix all compiler warnings · 549be924
      Behdad Esfahbod 提交于
      2008-12-25  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 469049 – Fix all compiler warnings
      
              * pango-view/viewer-pangocairo.c (render_callback):
              * pango/fonts.c (append_field), (pango_font_description_to_string):
              * pango/opentype/harfbuzz-dump.c:
              * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels):
              * pango/pango-coverage.c (pango_coverage_set):
              * pango/pango-markup.c (span_parse_func):
              * pango/pango-renderer.c
              (pango_renderer_default_draw_error_underline):
              * pango/pango-utils.c (pango_scan_string):
              * pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid),
              (draw_error_underline), (pango_cairo_renderer_class_init):
              Fix all the remaining warnings.
      549be924
    • B
      Fix more warnings. · 719f9eaa
      Behdad Esfahbod 提交于
      2008-12-25  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/modules.c (pango_module_load), (script_info_free):
              * pango/opentype/harfbuzz-gpos.c (HB_Load_GPOS_Table):
              * pango/pango-bidi-type.c:
              * pango/pango-coverage.c (pango_coverage_ref),
              (pango_coverage_unref):
              * pango/pango-engine.c (pango_engine_shape_real_covers),
              (fallback_engine_shape), (fallback_engine_covers):
              * pango/pango-fontmap.c (pango_font_map_init):
              * pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
              (pango_ot_ruleset_new):
              * pango/pangofc-decoder.c (pango_fc_decoder_init),
              (pango_fc_decoder_class_init):
              * pango/pangofc-font.c (pango_fc_font_find_shaper),
              (pango_fc_font_get_coverage):
              * pango/pangofc-fontmap.c (pango_fc_font_map_list_families),
              (pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
              (get_first_font), (_pango_fc_font_map_get_coverage),
              (cleanup_font), (pango_fc_font_description_from_pattern),
              (pango_fc_face_list_sizes), (pango_fc_family_list_faces):
              * pango/pangoft2-fontmap.c (pango_ft2_font_map_get_resolution):
              * pango/pangoft2-render.c (pango_ft2_renderer_init),
              (pango_ft2_renderer_draw_trapezoid):
              * pango/pangoft2.c (pango_ft2_font_get_face),
              (pango_ft2_font_real_unlock_face),
              (pango_ft2_free_glyph_info_callback):
              Fix more warnings.
      719f9eaa
  4. 15 10月, 2008 1 次提交
  5. 30 9月, 2008 1 次提交
  6. 30 6月, 2008 1 次提交
  7. 24 1月, 2008 1 次提交
  8. 17 1月, 2008 1 次提交
  9. 16 1月, 2008 1 次提交
  10. 05 12月, 2007 1 次提交
  11. 30 11月, 2007 2 次提交
    • B
      Undo accidental change. · cd55cfa2
      Behdad Esfahbod 提交于
      cd55cfa2
    • B
      Bug 485536 – underline_position can be zero · 3f05da63
      Behdad Esfahbod 提交于
      2007-11-29  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 485536 – underline_position can be zero
      
              * pango/pango-utils.c (pango_cairo_quantize_line_geometry):
              Document that returned position may be zero.
      
              * pango/pangocairo-win32font.c
              (pango_cairo_win32_font_create_metrics_for_context):
              * pango/pangofc-font.c (get_face_metrics):
              Handle case of underline_position==0 after rounding.
      
      3f05da63
  12. 24 11月, 2007 1 次提交
    • B
      Remove unused macro. · e58278fe
      Behdad Esfahbod 提交于
      2007-11-23  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/opentype/harfbuzz-impl.c: Remove unused macro.
      
      e58278fe
  13. 19 11月, 2007 1 次提交
  14. 07 11月, 2007 3 次提交
  15. 30 10月, 2007 1 次提交
  16. 26 10月, 2007 2 次提交
  17. 25 10月, 2007 3 次提交
  18. 22 10月, 2007 1 次提交
    • B
      Bug 488840 – harfbuzz: protect against ligid overflow · 13b2b963
      Behdad Esfahbod 提交于
      2007-10-21  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 488840 – harfbuzz: protect against ligid overflow
      
              * pango/opentype/harfbuzz-buffer.c (_hb_buffer_allocate_ligid):
              Never return zero, even in case of overflow.
      
              * pango/opentype/harfbuzz-impl.h: Define dummy HB_LIKELY() and
              HB_UNLIKELY(), to be filled later.
      
      13b2b963
  19. 11 10月, 2007 12 次提交