*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
index e2a7752..31407ff 100644 (file)
@@ -1,3 +1,328 @@
+2004-08-16  Kenichi Handa  <handa@m17n.org>
+
+       * Version 1.1.0 released.
+
+2004-08-13  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlang__init): Add Dhivehi.
+
+       * m17n-gui.c (Mx, Mfreetype): Delete it.
+       (m17n_init_win): Don't initialize Mx and Mfreetype here.
+
+       * m17n-gui.h (Mfreetype, Mxft): Extern them.
+       (mfont_resize_ratio): Extern it.
+       (MDrawGlyphInfo): New member logical_width;
+       (MDrawGlyph): New type.
+       (mdraw_glyph_list): Prototype adjusted.
+
+       * m17n-X.c (xfont_open): Set type and fontp members.
+       (xft_open): Likewise.
+
+       * internal-gui.h (Mx, Mfreetype): Delete extern.
+
+       * font.h (struct MRealizedFont): New member type and fontp.
+
+       * font.c (mfont__init): Initialize Mx, Mfreetype, and Mxft.
+       (Mx, Mfreetype): Declare here.
+       (Mxft): New variable.
+       (mfont_resize_ratio): New function.
+
+       * font-ft.c (ft_open): Set type and fontp members.
+
+       * draw.c (mdraw_glyph_list): Argument type changed.  Don't set
+       glyph_code member.
+
+2004-08-11  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (ft_find_metric): Call FT_Load_Glyph with
+       FT_LOAD_DEFAULT.
+
+2004-08-06  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (mfont__ft_drive_otf): Fix for the case that no GSUB
+       feature to apply.
+
+       * font-flt.c (run_otf): Print debugging information if necessary.
+
+2004-08-05  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (mfont__ft_drive_otf): Fix sign of g->yoff.  Support
+       positioning_type 5 and 6.  Switch simplified.
+
+2004-08-04  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (mfont__ft_drive_otf): Call OTF_drive_gdef.
+
+2004-08-02  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
+       set val to 1 even if it is greater than 1.
+
+       * fontset.c (mfontset_modify_entry): Fix handling of the arg `how'.
+
+2004-07-29  Kenichi Handa  <handa@m17n.org>
+
+       * font-flt.c (run_rule, run_command, mfont__flt_run): Print more
+       debugging information.
+
+       * internal.h (MDEBUG_PRINT5): New macro.
+
+       * draw.c (layout_glyphs): Don't combine a zero width glyph with
+       the previous one if the zero width glyph has left or right
+       padding.
+
+2004-07-26  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-X.c (xft_render): Pay attention to members left_padding and
+       right_padding of MGlyph.
+
+       * draw.c (visual_order): Allocate one more elements for arrays as
+       a workaround of fribidi bug.
+       (layout_glyphs): Fix previous change. Check MGlyph->combining_code
+       instead of MGlyph->bidi_sensitive.
+       (layout_glyph_string): Pay attentinon to
+       control->orientation_reversed when padding at the head or tail.
+       Fix adjustment of space glyph width.
+       (get_gstring): If cursor_width or cursor_bidi is changed, don't
+       use a cache.
+
+       * font-ft.c (mfont__ft_drive_otf): Set MGlyph->combining_code
+       instead of MGlyph->bidi_sensitive.
+
+       * internal-gui.h (MGlyph): Delete member bidi_sensitive.
+
+2004-07-26  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (visual_order): Don't treat combined glyphs specially.
+       (layout_glyphs): Don't get metrics glyphs that are already ready.
+       Pay attention to MGlyph->bidi_sensitive.  Combine a glyph of zero
+       width with the previous one. 
+       (draw_background): Fix bar cursor position on a r2l glyph.
+
+       * font-flt.c (FontLayoutCmdOTF): Move back from internal-gui.h.
+       (run_rule): Fix place of updating cluster_begin_pos and
+       cluster_end_pos here.
+       (run_otf): Don't set left_padding.
+
+       * font-ft.c (adjust_anchor): Type of argument `code' changed.
+       Caller changed.
+       (mfont__ft_drive_otf): Renamed back from mfont__ft_drive_gsub.
+       Fix handling of GPOS.
+       (mfont__ft_drive_gpos): Delete this function.
+
+       * font.h (mfont__ft_drive_otf): Renamed back from
+       mfont__ft_drive_gsub.
+       (mfont__ft_drive_gpos): Delete extern.
+
+       * internal-gui.h (FontLayoutCmdOTF): Move back to font-flt.c.
+       (MGlyph): Delete member otf_cmd, add member bidi_sensitive.
+
+2004-07-23  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (layout_glyphs): Call mfont__ft_drive_gpos with glyphs of
+       the same bidi level.
+
+       * font-ft.c (mfont__ft_drive_gpos): Check bidi-level.
+
+2004-07-22  Kenichi Handa  <handa@m17n.org>
+
+       * font-flt.c (load_flt): Treat the symbol Mend as end-of-file.
+
+2004-07-20  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (render_glyphs): Fix checking of g->code validity.
+
+       * face.c (mface__realize): Set g.type.
+
+2004-07-18  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.am: Prepend ${top_srcdir} to all *.la in
+       *_LIBADD/*_LDADD.
+
+       * m17n-gui.c (mframe): Print error message give by dlopen to
+       stderr.
+
+2004-07-16  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (compose_glyph_string): Improve the way of deciding a
+       script.  For a character that doesn't have script property, use
+       the last non-latin script.
+
+       * font-ft.c (fc_list): Cancel previous change.
+       (mfont__ft_init): Add more entries in ft_to_prop_name.
+
+2004-07-15  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (mdraw_glyph_list): Add the width of padding glyphs to
+       previous or next character glyphs.
+
+2004-07-14  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (compose_glyph_string): Be sure to set codes for glyphs
+       of type GLYPH_SPACE.
+
+       * fontset.c (mfont__lookup_fontset): If glyph type is
+       GLYPH_SPACE, get codes for SPACE.
+
+       * internal-gui.h (Mfont): Delete extern.
+
+       * m17n-gui.h (Mfont): Delete duplicated extern.
+
+2004-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (DEVICE_DELTA): New macro.
+       (adjust_anchor): New function.
+       (mfont__ft_drive_gsub): Renamed from mfont__ft_drive_otf.  Drive
+       only GSUB.
+       (mfont__ft_drive_gpos): New function.
+
+       * font-flt.c (FontLayoutCmdOTF): Moved to internal-gui.h.
+       (FontLayoutContext): Delete member `rfont'.
+       (run_otf): Set g->otf_cmd.  Call 
+       (mfont__flt_run): Don't set ctx.rfont.  Call mfont__ft_decode_otf
+       only whne HAVE_OTF is defined.
+
+       * fontset.c: Include "config.h".
+
+       * internal-gui.h (FontLayoutCmdOTF): Moved from font-flt.c.
+       (MGlyph): New member otf_cmd.
+
+       * font.h (mfont__ft_drive_gsub): Changed from mfont__ft_drive_otf.
+       (mfont__ft_drive_gpos): Extern it.
+
+       * face.c: Include "config.h".
+
+       * draw.c (layout_glyphs): Call mfont__ft_drive_gpos.
+
+       * input-gui.c: Include "config.h".
+
+       * plist.c: Include "config.h".
+
+2004-07-06  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.c, m17n-gui.h, m17n-gd.c, m17n-X.h, m17n-X.c,
+       internal-gui.h: Cancel previous changes.
+
+       * m17n-gd.h: Delete it.
+
+       * Makefile.am (libm17n_core_la_LIBADD): New variable.
+       (libm17n_core_la_LDFLAGS): Add -export-dynamic, move
+       @XML2_LD_FLAGS@ to above.
+       (libm17n_la_LIBADD): Add -ldl.
+       (libm17n_la_LDFLAGS): Add -export-dynamic.
+       (X_LD_FLAGS): Fix the order of linking.
+       (libm17n_gui_la_LIBADD): Add ${OPTIONAL_LD_FLAGS}.
+       (libm17n_gui_la_LDFLAGS): Add -export-dynamic, delete above.
+       (libm17n_X_la_LDFLAGS): Add -module.
+       (libm17n_gd_la_SOURCES): Delete m17n-gd.h.
+       (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
+       (libm17n_gd_la_LDFLAGS): Add -module.
+       (include_HEADERS): Delete m17n-gd.h.
+
+2004-06-30  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.c: Adjusted for the change of struct MDeviceDriver.
+       (MDeviceLibraryInterface): Delete it.
+       (register_device_library): Delete it.
+       (m17n__device_library_list): Renamed from device_library_list.
+
+       * m17n-gui.h (M17N_INIT_X, M17N_INIT_GD): New macros.
+       (m17n_init_win): Adjust prototype.
+
+       * m17n-gd.c: Adjusted for the change of struct MDeviceDriver.
+       (m17n_init_gd): New function. 
+
+       * m17n-gd.h: New file.
+
+       * m17n-X.h: Include <m17n-gui.h>.
+       (m17n_init_X): Extern it.
+       (M17N_INIT): Redefine it.
+
+       * m17n-X.c: Adjusted for the change of struct MDeviceDriver.
+       (m17n_init_X): New function.
+
+       * internal-gui.h (m17n__device_library_list): Extern it.
+       (struct MDeviceDriver): New members initialized, init, and fini.
+
+       * Makefile.am (libm17n_X_la_LIBADD): Add ${X_LD_FLAGS} and
+       @XFT2_LD_FLAGS@.
+       (libm17n_X_la_LIBADD): Delete aboves.
+       (libm17n_gd_la_SOURCES): Add m17n-gd.h.
+       (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
+       (libm17n_gd_la_LDFLAGS): Delete it.
+       (include_HEADERS): Add m17n-gd.h.
+
+2004-06-25  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.am (libm17n_X_la_LDFLAGS): Cancel previous change.
+       (libm17n_gd_la_LDFLAGS): Cancel previous change.
+
+       * m17n-gd.c (gd_render): Don't call FT_Get_Char_Index.
+
+       * font-ft.c (fc_list): If FcFontList finds no font, try
+       FcFontMatch.
+
+       * draw.c (compose_glyph_string): Terminate the last loop after
+       doing default combining if necessary.
+
+2004-06-24  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (mdraw_glyph_list): Unref gstring->top at the tail.
+
+       * character.c (mchar_define_property): Add const to an arg.
+
+       * charset.c (mchar_define_charset): Add const to an arg.
+
+       * coding.c (MCodingSystem): Add const to an arg or decoder.
+       (finish_decoding): Add const to an arg.
+       (decode_coding_charset, decode_coding_utf_8)
+       (decode_coding_utf_16, decode_coding_utf_32)
+       (decode_coding_iso_2022, decode_coding_sjis)
+       (mconv_define_coding): Likewise.
+
+       * m17n-X.c (xft_find_metric): Delete unused variable.
+
+       * m17n-core.h (mchar_define_property, mtext_from_data): Adjust
+       prototypes.
+
+       * m17n.h (mchar_define_charset, mconv_define_coding): Adjust
+       prototypes.
+
+       * mtext.c (count_utf_8_chars, count_utf_16_chars)
+       (mtext__from_data, mtext_from_data): Add `const' to an arg.
+
+       * mtext.h (mtext__from_data): Ajust prototype.
+
+2004-06-23  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (compose_glyph_string): Always get glyph codes by
+       mface__for_char.
+       (mdraw_glyph_info): Set info->glyph_code and info->logical_width.
+       (mdraw_glyph_list): New function.
+
+       * font-flt.c (mfont__flt_run): Be sure to call
+       rfont->driver->encode_char.
+
+       * font-ft.c (ft_find_metric): Don't call FT_Get_Char_Index.
+       (ft_encode_char): Delete arg C.
+       (ft_render): Don't call FT_Get_Char_Index.
+
+       * font.c (mfont__encodable_p): Delete it.
+       (mfont__encode_char): Be sure to call rfont->driver->encode_char.
+
+       * font.h (struct MFontDriver): Delete arg C of encode_char.
+       (mfont__encodable_p): Delete extern.
+
+       * m17n-X.c (xfont_encode_char): Delete arg C.
+       (xft_find_metric): Don't cal FT_Get_Char_Index.
+       (xft_render): Likewise.
+
+       * m17n-gui.h (MDrawGlyphInfo): New members glyph_code and
+       logical_width.
+       (mdraw_glyph_list): Extern it.
+
+       * Makefile.am (libm17n_X_la_LDFLAGS): Don't include ${X_LD_FLAGS}.
+
 2004-06-22  Kenichi Handa  <handa@m17n.org>
 
        * m17n-gui.h (mfontset_lookup): Extern it.