13b1b7975c9e93c19d8f5e6233b3d056eb3a32d1
[m17n/m17n-lib.git] / src / ChangeLog
1 2004-05-10  Kenichi Handa  <handa@m17n.org>
2
3         * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
4         to work around the problem of libtool.
5
6         * font-ft.c: Include <freetype/ftbdf.h>.
7         (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
8         variables.
9         (mfont__ft_init): Initialize them.
10         (ft_iso8859_1_font_list): New variable.
11         (set_font_info): Detect a font containing iso8859-1 glyphs and
12         register it in ft_iso8859_1_font_list.  If the font is not
13         scalable, assume it as BDF or PCF font and setup SIZE and RESY
14         properties of the font from its properties.
15         (add_font_list): If the font is not scalable, check if it is BDF
16         or PCF font.  If not, ignore it.
17         (ft_select): If FAMILY is Mnil, return NULL only if the requested
18         registry is not iso8859-1.
19         (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
20         ft_iso8859_1_font_list.
21         (ft_find_metric): If the font is not scalable, assume it as BDF
22         or PCF, and get a metric from its properties.
23         (mfont__ft_fini): Free ft_iso8859_1_font_list.
24
25 2004-05-07  Kenichi Handa  <handa@redhat.m17n.org>
26
27         * Makefile.am (libm17n_la_LIBADD): Include -ldl.
28         (libm17n_la_LDFLAGS): Delete it.
29         (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
30         (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
31
32 2004-05-06  Kenichi Handa  <handa@m17n.org>
33
34         * draw.c (compose_glyph_string): Fix previous change.
35
36 2004-04-30  Kenichi Handa  <handa@m17n.org>
37
38         * font-ft.c (ft_list): Delete unused variable `result'.
39         (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
40
41 2004-04-27  Kenichi Handa  <handa@m17n.org>
42
43         * m17n-X.c: Include config.h
44         [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
45         (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
46         (MWDevice) [HAVE_XFT2]: New member xft_draw.
47         (FRAME_CMAP, FRAME_VISUAL): New macros.
48         (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
49         (xfont_driver): Make it static.
50         (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
51         (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
52         info->xft_color_back.
53         (MXftFontInfo) [HAVE_XFT2]: New type.
54         (mwin__xft_close) [HAVE_XFT2]: New function.
55         (mwin__xft_open) [HAVE_XFT2]: New function.
56         (mwin__xft_get_metric) [HAVE_XFT2]: New function.
57         (mwin__xft_render) [HAVE_XFT2]: New function.
58
59         * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
60         (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
61         (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
62         externs.
63
64         * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
65
66         * font-ft.c: Don't include FT_FREETYPE_H here.
67         [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
68         (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
69         (MFTInfo): New member charmap_index.
70         (MFTInfo) [HAVE_XFT2]: New member xft_info.
71         (check_otf_filename): Renamed from check_filename.  Return value
72         changed.
73         (ft_set_property): This function deleted.
74         (set_font_info): New function.
75         (add_font_list): Argument changed.  Add multiple fonts.
76         (xft_list) [HAVE_XFT2]: New function.
77         (ft_list) [not HAVE_XFT2]: New function.
78         (ft_select): Add code for Xft.
79         (close_ft): Likewise.
80         (ft_open): Likewise.
81         (ft_find_metric): Likewise.
82         (ft_encode_char): Likewise.
83         (ft_render): Likewise.
84
85         * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
86
87 2004-04-26  Kenichi Handa  <handa@m17n.org>
88
89         * textprop.c (mtext_attach_property): Declare the return type as
90         `int'.
91
92 2004-04-21  Kenichi Handa  <handa@m17n.org>
93
94         * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
95
96 2004-04-09  Kenichi Handa  <handa@m17n.org>
97
98         * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
99         seq_to.
100         (load_command): Setup above members.
101
102 2004-04-05  Kenichi Handa  <handa@m17n.org>
103
104         * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
105
106 2004-03-30  Kenichi Handa  <handa@m17n.org>
107
108         * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
109         >= 0x10000.
110
111         * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
112         (M17NLIB_VERSION_NAME): Changed to 1.0.2.
113
114 2004-03-29  Kenichi Handa  <handa@m17n.org>
115
116         * Version 1.0 Patch Level 2 released.
117
118 2004-03-29  Kenichi Handa  <handa@m17n.org>
119
120         * charset.c (make_charset): Set charset->fully_loaded and
121         charset->simple correctly.  Don't try to get charset->min_char and
122         charset->max_char for a charset of method subset and superset.
123         Don't load a mapping file here.
124         (mcharset__init): Set unified_max.
125         (mcharset__load_from_database): Free a working plist.
126
127         * coding.c (mcoding__fini): Free all malloced data.
128
129         * input-gui.c (win_create_ic): Set control.as_image for preediting
130         to 0.
131
132         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
133         `count') to initialize the array.
134
135         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
136         M17N_OBJECT_UNREF.
137
138         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
139         rectangle.
140         (mwin__create_window): Fix bug of setting a background pixel of a
141         new window.
142         (mwin__adjust_window): Clear the window before drawing.
143
144         * m17n-core.c (mdebug__report_object): Free array->objectes if
145         necessary.
146         (m17n_init_core): Don't set report_header_printed to 0 here.
147         Fix debugging information.
148         (m17n_fini_core): Set report_header_printed to 0 here.
149
150         * m17n-core.h (mplist_deserialize): Extern it.
151
152         * m17n-gui.c (m17n_fini_win): Fix debugging information.
153
154         * m17n.c (m17n_fini): Fix debugging information.
155
156         * mtext.c (mtext__adjust_foramt): New function.
157
158         * mtext.h (mtext__adjust_foramt): Extern it.
159
160         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
161
162         * plist.h (mplist__deserialize): Don't extern it.
163
164         * symbol.c (msymbol__fini): Set freed_symbols to 0.  Set all
165         elements of symbol_table to NULL.  Report about created and freed
166         symbols if MDEBUG_FINI is set.
167
168 2004-03-22  Kenichi Handa  <handa@m17n.org>
169
170         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
171
172         * m17n.c (m17n_init): Fix the way of checking merror_code.
173
174         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
175
176 2004-03-22  Kenichi Handa  <handa@m17n.org>
177
178         * fontset.c (realize_font_group): Adjust the font size by
179         mfont__resize before selecting a font.
180
181         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
182
183 2004-03-19  Kenichi Handa  <handa@m17n.org>
184
185         * Version 1.0 Patch Level 1 released.
186
187 2004-03-19  Kenichi Handa  <handa@m17n.org>
188
189         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
190
191         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
192
193 2004-03-19  Kenichi Handa  <handa@m17n.org>
194
195         Re-apply the changes forgotten in the released version.
196
197         * charset.c (mcharset__load_from_database): Call
198         mchar_define_charset.
199
200         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
201         (mconv_encode_range): Put Mcoding text property.
202
203 2004-03-18  Kenichi Handa  <handa@m17n.org>
204
205         * draw.c (Mdepth): New variable.
206         (visual_order): Delete unused local var `pos'.
207         (compose_glyph_string): Fix for the case that gstring->glyphs is
208         realloced.  Stop generating glyphs at TO.  Fix handling of
209         control charaters.
210         (layout_glyphs): Get metrics of all glyphs in advance.  Set
211         lbearing and rbearing of base of composition glyph correctly.
212         Handle left-overhang glyphs correctly.
213         (alloc_gstring): New arg frame.  Set gstring->anti_alias.  Caller
214         changed.
215         (dump_combining_code): Change the defualt off_x character to ".".
216         (mdraw__init): Initialize Mdepth.
217
218         * face.c (work_gstring): New variable
219         (mface__init): Initialize work_gstring.
220         (mface__fini): Free work_gstring.glyphs.
221         (mface__realize): Don't handle videomode property here.  Adjusted
222         for the change of mfont__get_metric.
223         (mface__for_chars): Adjusted for the change of mfont__get_metric.
224
225         * face.h (enum face_gc): Moved to m17n-X.c.
226
227         * font.h (struct MFontDriver): Arguments of find_metric changed.
228         (mfont__select): Prototype adjusted.
229         (mfont__get_metric): Likewise.
230         (mfont__ft_drive_otf): Likewise.
231         (mfont__flt_run): Likewise.
232         
233         * font.c (mfont__select): New argument layouter.  If layouter is
234         different in the registered font, make a new copy of realized
235         font.
236         (mfont__get_metric): Argument changed.  Get metrics of multiple
237         glyphs.
238         (mfont_find): Call mfont__select with layouter as Mnil.
239
240         * font-flt.c (FontLayoutContext): New member rfont.
241         (run_otf): Adjusted for the change of mfont__ft_drive_otf.
242         (mfont__flt_run): Argument changed.  Initialize ctx.rfont.
243
244         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
245         multiple glyphs.
246         (NUM_POINTS): New macro.
247         (MPointTable): New type.
248         (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
249         (mfont__ft_drive_otf): New argument rfont.
250
251         * fontset.c (realize_font_group): Adjusted for the changed of
252         mfont__select.
253         (check_fontset_element): This function deleted.
254
255         * input-gui.c (adjust_window_and_draw): Locate a preedit window
256         off the parent window if the preedit text is zero length.
257
258         * internal-gui.h (struct MFrame): New members foreground,
259         background, videomode, font.
260         (struct MGlyphString): New member anti_alias.
261         (MDrawPoint): New type.
262         (mwin__draw_bitmap): Prototype deleted.
263         (mwin__draw_points): Prototype added.
264
265         * m17n-gui.h (MDrawControl): New member anti_alias.
266
267         * m17n-gui.c (free_frame): Free frame->font.
268         (mframe): Set the fontset of frame->face to the default fontset.
269
270         * m17n-X.c (RGB_GC): New type.
271         (enum gc_index): Renamed from enum face_gc.  Member names changed.
272         (GCInfo): New typel
273         (struct MWDevice): Members foreground and background deleted.  New
274         member scratch_gc, gc_list.
275         (DEFAULT_FONT, FALLBACK_FONT): New macros.
276         (free_device): Free GCs in device->gc_list.
277         (get_rgb_gc): New function.
278         (get_gc): Renamed and argument changed from get_color.
279         (get_gc_for_anti_alias): New function.
280         (xfont_find_metric): Arguments changed.  Get metrics of multiple
281         glyphs.
282         (set_region): Argument changed.  Caller changed.
283         (xfont_render): Allways set a font in gc.
284         (x_error_handler, x_io_error_handler): Define only if
285         X_SET_ERROR_HANDLER is defined.
286         (mwin__open_device): Create device->scratch_gc.  Set members
287         foreground, background, and videomode of frame.  Call
288         XSetErrorHandler and XSetIOErrorHandler only if
289         X_SET_ERROR_HANDLER is defined.
290         (struct gc_list): Deleted.
291         (REGISTER_GC, UNREGISTER_GC): These macros deleted.
292         (mwin__realize_face): Adjusted for the change of the format of
293         rface->info and the charge of set_region.
294         (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
295         (mwin__draw_box): Likewise.
296         (mwin__draw_bitmap): This function deleted.
297         (mwin__draw_points): New function.
298         (mwin__verify_region): Adjusted for the change of the format of
299         rface->info and the charge of set_region.
300         (mwin__create_window): Inherit backgound pixel from parent.
301         (mwin__dump_gc): Adjusted for the change of the format of
302         rface->info.
303
304 2004-03-16  Kenichi Handa  <handa@m17n.org>
305
306         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
307
308         * input.c (M_key_alias): New variable.
309         (handle_key): Try M_key_alias property of a key too.
310         (minput__init): Initialize M_key_alias.  Give that property to
311         symbols in one_char_symbol.  Fix bug of initializing
312         one_char_symbol.
313
314         * draw.c (compose_glyph_string): Don't handle
315         ignore_formatting_char here.  Include formatting characters in the
316         range processed by a FTL.
317         (layout_glyph_string): Handle ignore_formatting_char here.
318
319 2004-03-12  Kenichi Handa  <handa@m17n.org>
320
321         * input-gui.c (win_create_ic): Enable bidi in status control.
322
323         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
324
325 2004-03-09  Kenichi Handa  <handa@m17n.org>
326
327         * input.c (load_input_method): If title is not specified, use the
328         input method name as title.
329
330         * m17n-X.c (get_color): Make it static.
331         (xim_create_ic, xim_destroy_ic, x_error_handler)
332         (x_io_error_handler): Likewise.
333
334 2004-03-01  Kenichi Handa  <handa@m17n.org>
335
336         * Version 1.0 released.
337
338 \f
339 Copyright (C) 2003, 2004
340   National Institute of Advanced Industrial Science and Technology (AIST)
341   Registration Number H15PRO112
342
343 This file is part of the m17n library.
344
345 The m17n library is free software; you can redistribute it and/or
346 modify it under the terms of the GNU Lesser General Public License
347 as published by the Free Software Foundation; either version 2.1 of
348 the License, or (at your option) any later version.
349
350 The m17n library is distributed in the hope that it will be useful,
351 but WITHOUT ANY WARRANTY; without even the implied warranty of
352 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
353 Lesser General Public License for more details.
354
355 You should have received a copy of the GNU Lesser General Public
356 License along with the m17n library; if not, write to the Free
357 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
358 02111-1307, USA.