789652405595e86ebbd6927c611d69347d0e0105
[m17n/m17n-lib.git] / src / ChangeLog
1 2004-08-02  Kenichi Handa  <handa@m17n.org>
2
3         * font.c (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
4         set val to 1 even if it is greater than 1.
5
6         * fontset.c (mfontset_modify_entry): Fix handling of the arg `how'.
7
8 2004-07-29  Kenichi Handa  <handa@m17n.org>
9
10         * font-flt.c (run_rule, run_command, mfont__flt_run): Print more
11         debugging information.
12
13         * internal.h (MDEBUG_PRINT5): New macro.
14
15         * draw.c (layout_glyphs): Don't combine a zero width glyph with
16         the previous one if the zero width glyph has left or right
17         padding.
18
19 2004-07-26  Kenichi Handa  <handa@m17n.org>
20
21         * m17n-X.c (xft_render): Pay attention to members left_padding and
22         right_padding of MGlyph.
23
24         * draw.c (visual_order): Allocate one more elements for arrays as
25         a workaround of fribidi bug.
26         (layout_glyphs): Fix previous change. Check MGlyph->combining_code
27         instead of MGlyph->bidi_sensitive.
28         (layout_glyph_string): Pay attentinon to
29         control->orientation_reversed when padding at the head or tail.
30         Fix adjustment of space glyph width.
31         (get_gstring): If cursor_width or cursor_bidi is changed, don't
32         use a cache.
33
34         * font-ft.c (mfont__ft_drive_otf): Set MGlyph->combining_code
35         instead of MGlyph->bidi_sensitive.
36
37         * internal-gui.h (MGlyph): Delete member bidi_sensitive.
38
39 2004-07-26  Kenichi Handa  <handa@m17n.org>
40
41         * draw.c (visual_order): Don't treat combined glyphs specially.
42         (layout_glyphs): Don't get metrics glyphs that are already ready.
43         Pay attention to MGlyph->bidi_sensitive.  Combine a glyph of zero
44         width with the previous one. 
45         (draw_background): Fix bar cursor position on a r2l glyph.
46
47         * font-flt.c (FontLayoutCmdOTF): Move back from internal-gui.h.
48         (run_rule): Fix place of updating cluster_begin_pos and
49         cluster_end_pos here.
50         (run_otf): Don't set left_padding.
51
52         * font-ft.c (adjust_anchor): Type of argument `code' changed.
53         Caller changed.
54         (mfont__ft_drive_otf): Renamed back from mfont__ft_drive_gsub.
55         Fix handling of GPOS.
56         (mfont__ft_drive_gpos): Delete this function.
57
58         * font.h (mfont__ft_drive_otf): Renamed back from
59         mfont__ft_drive_gsub.
60         (mfont__ft_drive_gpos): Delete extern.
61
62         * internal-gui.h (FontLayoutCmdOTF): Move back to font-flt.c.
63         (MGlyph): Delete member otf_cmd, add member bidi_sensitive.
64
65 2004-07-23  Kenichi Handa  <handa@m17n.org>
66
67         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos with glyphs of
68         the same bidi level.
69
70         * font-ft.c (mfont__ft_drive_gpos): Check bidi-level.
71
72 2004-07-22  Kenichi Handa  <handa@m17n.org>
73
74         * font-flt.c (load_flt): Treat the symbol Mend as end-of-file.
75
76 2004-07-20  Kenichi Handa  <handa@m17n.org>
77
78         * draw.c (render_glyphs): Fix checking of g->code validity.
79
80         * face.c (mface__realize): Set g.type.
81
82 2004-07-18  Kenichi Handa  <handa@m17n.org>
83
84         * Makefile.am: Prepend ${top_srcdir} to all *.la in
85         *_LIBADD/*_LDADD.
86
87         * m17n-gui.c (mframe): Print error message give by dlopen to
88         stderr.
89
90 2004-07-16  Kenichi Handa  <handa@m17n.org>
91
92         * draw.c (compose_glyph_string): Improve the way of deciding a
93         script.  For a character that doesn't have script property, use
94         the last non-latin script.
95
96         * font-ft.c (fc_list): Cancel previous change.
97         (mfont__ft_init): Add more entries in ft_to_prop_name.
98
99 2004-07-15  Kenichi Handa  <handa@m17n.org>
100
101         * draw.c (mdraw_glyph_list): Add the width of padding glyphs to
102         previous or next character glyphs.
103
104 2004-07-14  Kenichi Handa  <handa@m17n.org>
105
106         * draw.c (compose_glyph_string): Be sure to set codes for glyphs
107         of type GLYPH_SPACE.
108
109         * fontset.c (mfont__lookup_fontset): If glyph type is
110         GLYPH_SPACE, get codes for SPACE.
111
112         * internal-gui.h (Mfont): Delete extern.
113
114         * m17n-gui.h (Mfont): Delete duplicated extern.
115
116 2004-07-13  Kenichi Handa  <handa@m17n.org>
117
118         * font-ft.c (DEVICE_DELTA): New macro.
119         (adjust_anchor): New function.
120         (mfont__ft_drive_gsub): Renamed from mfont__ft_drive_otf.  Drive
121         only GSUB.
122         (mfont__ft_drive_gpos): New function.
123
124         * font-flt.c (FontLayoutCmdOTF): Moved to internal-gui.h.
125         (FontLayoutContext): Delete member `rfont'.
126         (run_otf): Set g->otf_cmd.  Call 
127         (mfont__flt_run): Don't set ctx.rfont.  Call mfont__ft_decode_otf
128         only whne HAVE_OTF is defined.
129
130         * fontset.c: Include "config.h".
131
132         * internal-gui.h (FontLayoutCmdOTF): Moved from font-flt.c.
133         (MGlyph): New member otf_cmd.
134
135         * font.h (mfont__ft_drive_gsub): Changed from mfont__ft_drive_otf.
136         (mfont__ft_drive_gpos): Extern it.
137
138         * face.c: Include "config.h".
139
140         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos.
141
142         * input-gui.c: Include "config.h".
143
144         * plist.c: Include "config.h".
145
146 2004-07-06  Kenichi Handa  <handa@m17n.org>
147
148         * m17n-gui.c, m17n-gui.h, m17n-gd.c, m17n-X.h, m17n-X.c,
149         internal-gui.h: Cancel previous changes.
150
151         * m17n-gd.h: Delete it.
152
153         * Makefile.am (libm17n_core_la_LIBADD): New variable.
154         (libm17n_core_la_LDFLAGS): Add -export-dynamic, move
155         @XML2_LD_FLAGS@ to above.
156         (libm17n_la_LIBADD): Add -ldl.
157         (libm17n_la_LDFLAGS): Add -export-dynamic.
158         (X_LD_FLAGS): Fix the order of linking.
159         (libm17n_gui_la_LIBADD): Add ${OPTIONAL_LD_FLAGS}.
160         (libm17n_gui_la_LDFLAGS): Add -export-dynamic, delete above.
161         (libm17n_X_la_LDFLAGS): Add -module.
162         (libm17n_gd_la_SOURCES): Delete m17n-gd.h.
163         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
164         (libm17n_gd_la_LDFLAGS): Add -module.
165         (include_HEADERS): Delete m17n-gd.h.
166
167 2004-06-30  Kenichi Handa  <handa@m17n.org>
168
169         * m17n-gui.c: Adjusted for the change of struct MDeviceDriver.
170         (MDeviceLibraryInterface): Delete it.
171         (register_device_library): Delete it.
172         (m17n__device_library_list): Renamed from device_library_list.
173
174         * m17n-gui.h (M17N_INIT_X, M17N_INIT_GD): New macros.
175         (m17n_init_win): Adjust prototype.
176
177         * m17n-gd.c: Adjusted for the change of struct MDeviceDriver.
178         (m17n_init_gd): New function. 
179
180         * m17n-gd.h: New file.
181
182         * m17n-X.h: Include <m17n-gui.h>.
183         (m17n_init_X): Extern it.
184         (M17N_INIT): Redefine it.
185
186         * m17n-X.c: Adjusted for the change of struct MDeviceDriver.
187         (m17n_init_X): New function.
188
189         * internal-gui.h (m17n__device_library_list): Extern it.
190         (struct MDeviceDriver): New members initialized, init, and fini.
191
192         * Makefile.am (libm17n_X_la_LIBADD): Add ${X_LD_FLAGS} and
193         @XFT2_LD_FLAGS@.
194         (libm17n_X_la_LIBADD): Delete aboves.
195         (libm17n_gd_la_SOURCES): Add m17n-gd.h.
196         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
197         (libm17n_gd_la_LDFLAGS): Delete it.
198         (include_HEADERS): Add m17n-gd.h.
199
200 2004-06-25  Kenichi Handa  <handa@m17n.org>
201
202         * Makefile.am (libm17n_X_la_LDFLAGS): Cancel previous change.
203         (libm17n_gd_la_LDFLAGS): Cancel previous change.
204
205         * m17n-gd.c (gd_render): Don't call FT_Get_Char_Index.
206
207         * font-ft.c (fc_list): If FcFontList finds no font, try
208         FcFontMatch.
209
210         * draw.c (compose_glyph_string): Terminate the last loop after
211         doing default combining if necessary.
212
213 2004-06-24  Kenichi Handa  <handa@m17n.org>
214
215         * draw.c (mdraw_glyph_list): Unref gstring->top at the tail.
216
217         * character.c (mchar_define_property): Add const to an arg.
218
219         * charset.c (mchar_define_charset): Add const to an arg.
220
221         * coding.c (MCodingSystem): Add const to an arg or decoder.
222         (finish_decoding): Add const to an arg.
223         (decode_coding_charset, decode_coding_utf_8)
224         (decode_coding_utf_16, decode_coding_utf_32)
225         (decode_coding_iso_2022, decode_coding_sjis)
226         (mconv_define_coding): Likewise.
227
228         * m17n-X.c (xft_find_metric): Delete unused variable.
229
230         * m17n-core.h (mchar_define_property, mtext_from_data): Adjust
231         prototypes.
232
233         * m17n.h (mchar_define_charset, mconv_define_coding): Adjust
234         prototypes.
235
236         * mtext.c (count_utf_8_chars, count_utf_16_chars)
237         (mtext__from_data, mtext_from_data): Add `const' to an arg.
238
239         * mtext.h (mtext__from_data): Ajust prototype.
240
241 2004-06-23  Kenichi Handa  <handa@m17n.org>
242
243         * draw.c (compose_glyph_string): Always get glyph codes by
244         mface__for_char.
245         (mdraw_glyph_info): Set info->glyph_code and info->logical_width.
246         (mdraw_glyph_list): New function.
247
248         * font-flt.c (mfont__flt_run): Be sure to call
249         rfont->driver->encode_char.
250
251         * font-ft.c (ft_find_metric): Don't call FT_Get_Char_Index.
252         (ft_encode_char): Delete arg C.
253         (ft_render): Don't call FT_Get_Char_Index.
254
255         * font.c (mfont__encodable_p): Delete it.
256         (mfont__encode_char): Be sure to call rfont->driver->encode_char.
257
258         * font.h (struct MFontDriver): Delete arg C of encode_char.
259         (mfont__encodable_p): Delete extern.
260
261         * m17n-X.c (xfont_encode_char): Delete arg C.
262         (xft_find_metric): Don't cal FT_Get_Char_Index.
263         (xft_render): Likewise.
264
265         * m17n-gui.h (MDrawGlyphInfo): New members glyph_code and
266         logical_width.
267         (mdraw_glyph_list): Extern it.
268
269         * Makefile.am (libm17n_X_la_LDFLAGS): Don't include ${X_LD_FLAGS}.
270
271 2004-06-22  Kenichi Handa  <handa@m17n.org>
272
273         * m17n-gui.h (mfontset_lookup): Extern it.
274
275         * m17n-gui.c (m17n_init_win): Delete unnecessary printing.
276
277         * fontset.c (realize_fontset_elements)
278         (free_realized_fontset_elements, update_fontset_elements): New
279         functions.
280         (mfont__realize_fontset): Call realize_fontset_elements.
281         (mfont__free_realized_fontset): Call free_realized_fontset_elements.
282         (mfont__lookup_fontset): If a fontset was modified, update
283         the realized fontset.
284         (mfontset_modify_entry): Increment fontset->tick.
285         (mfontset_lookup): New function.
286
287 2004-06-21  Kenichi Handa  <handa@m17n.org>
288
289         * font-ft.c (mfont__ft_parse_name): Cast the arg to FcNameParse.
290
291         * mtext.c (mtext_dup, mtext_cat, mtext_ncat, mtext_cpy)
292         (mtext_ncpy, mtext_duplicate): Pay attention to the case that the
293         length of source text 0.
294
295 2004-06-21  Kenichi Handa  <handa@m17n.org>
296
297         * mtext.c (INC_POSITION): Use CHAR_UNITS_BY_HEAD_UTF16.
298         (compare): Pay attention to format other than utf-8.
299         (copy): Delete this function.
300         (count_by_utf_8, count_by_utf_16, insert): New functions.
301         (count_utf_16_chars): Fix handling of a surrogate pair.
302         (find_char_forward, find_char_backward): Likewise.
303         (mtext__from_data): Delete unnecessary check.  Fix number of
304         allocated bytes.
305         (mtext_from_data): Don't count items.
306         (mtext_ref_char): Optimize the code.
307         (mtext_set_char): Pay attention to format other than utf-8.
308         (mtext_cat_char): Likewise.
309         (mtext_dup): Don't call copy, instead do allocation here.
310         (mtext_cat): Call insert instead of copy.
311         (mtext_ncat): Likewise.
312         (mtext_cpy): Delete character at first and call insert instead of
313         copy.
314         (mtext_ncpy): Likewise.
315         (mtext_copy): Likewise.
316         (mtext_duplicate): Call insert instead of copy.
317         (mtext_del): Pay attention to format other than utf-8.
318         (mtext_ins): Simply call insert.
319         (mtext_ins_char): Pay attention to format other than utf-8.
320         (mtext_tok): Call insert instead of copy.
321         (mtext_text): Call UNIT_BYTES.
322
323         * textprop.c (mtext__adjust_plist_for_change): New function.
324
325         * character.h (USHORT_SIZE, UINT_SIZE, UNIT_BYTES): New macros.
326         (CHAR_UNITS_UTF16, CHAR_UNITS): Simplified.
327         (CHAR_UNITS_AT): Fix typo.
328         (CHAR_UNITS_BY_HEAD): Fix typo.
329         (STRING_CHAR_AND_UNITS): Fix typo.
330
331         * internal.h (MTEXT_READ_ONLY_P): New macro. 
332
333         * mtext.h (mtext__replace): Delete the extern.
334         (mtext__adjust_foramt): Adjust prototype.
335
336         * plist.c (mplist_deserialize): Adjust the format of MT to utf-8
337         if possible.  Otherwise make a copy of mmt.
338
339         * coding.c (mconv_decode, mconv_gets): Adjust the format of MT to
340         utf-8.
341
342 2004-06-18  Kenichi Handa  <handa@m17n.org>
343
344         * character.h (CHAR_STRING_UTF16): Fix syntax.
345
346 2004-06-16  Kenichi Handa  <handa@m17n.org>
347
348         * Makefile.am (libm17n_gd_la_LIBADD): Delete it.
349         (libm17n_X_la_LIBADD): Delete it.
350         (libm17n_gd_la_LDFLAGS): Don't include @GD_LD_FLAGS@.
351
352         * m17n-X.c (device_open): Add parens in `if' condition.
353
354         * mtext.c (INC_POSITION): Handle format other than utf8 and utf16.
355         (DEC_POSITION): Likewise.
356         (compare): Fix case that mt1->format is MTEXT_FORMAT_UTF_8.
357
358 2004-06-15  Kenichi Handa  <handa@m17n.org>
359
360         * fontset.c (mfont__lookup_fontset): Fix selection of font groups
361         by language.
362
363         * draw.c (compose_glyph_string): If langauge is specified, call
364         mface__for_chars even if a text is all latin.  Fix condition for
365         setting non_ascii_found.
366
367         * m17n-X.c (xft_find_metric): Fix setting of g->lbrearing.
368
369         * m17n.h (minput_char_to_key): Delete extern.
370
371         * m17n-gui.h (minput_event_to_key): Cancel previous change.
372
373         * m17n-gui.c (null_device_open): Set several members of frame.
374
375 2004-06-14  Kenichi Handa  <handa@m17n.org>
376
377         * m17n-gui.h (minput_event_to_key): Delete extern.
378
379         * symbol.h (struct MSymbolStruct): Renamed from MSymbol.
380
381         * m17n-core.h (MSymbol): Defined as "struct MSymbolStruct *".
382
383         * Makefile.am (AM_CPPFLAGS): Refer to @M17NDIR@.
384
385 2004-06-08  Kenichi Handa  <handa@m17n.org>
386
387         * character.c (mchar_put_prop): Don't increment the ref-count of
388         record->table.
389
390 2004-06-04  Kenichi Handa  <handa@m17n.org>
391
392         * m17n-core.c (mdebug__register_object): New function.
393         (mdebug__unregister_object): Likewise.
394
395         * internal.h (mdebug__register_object, mdebug__unregister_object):
396         Extern them.
397         (M17N_OBJECT_REGISTER, M17N_OBJECT_UNREGISTER): Call them
398         respectively.
399
400         * charset.c (mcharset__load_from_database): Don't call
401         mconv__register_charset_coding here.
402
403         * coding.c (find_coding): Get a real name from an element of
404         coding_definition_list.
405         (mconv__register_charset_coding): Set the real name at the top of
406         param.
407         (mcoding__load_from_database): Likewise.
408         (mconv_list_codings): Adjusted for the above change.
409
410 2004-06-03  Kenichi Handa  <handa@m17n.org>
411
412         * coding.c (find_coding): Find by canonicalized name.  Don't have
413         to modify the element of coding_definition_list by
414         mplist__from_plist.
415         (mconv__define_coding_from_charset): Delete it.
416         (mconv__register_charset_coding): Canonicalize sym.
417         (mcoding__load_from_database): Register plist modified by
418         mplist__from_plist.
419
420         * coding.h (mconv__define_coding_from_charset): Don't extern it.
421
422         * font-ft.c (ft_open): Fix setting of rfont->descent.
423
424 2004-06-02  Kenichi Handa  <handa@m17n.org>
425
426         * font.c (enum xlfd_field_idx): Moved from m17n-X.c.
427         (xlfd_parse_name): Merge split_font_name and xfont_parse_name.
428         (xlfd_unparse_name): Renamed from xfont_build_name.
429         (mfont__init): Initialized Mfontconfig.
430         (mfont__free_realized): Unconditionally unref rfont->info.
431         (mfont__select): Free `this' if it's not best.
432         (mfont__open): Don't check frame->realized_font_list.
433         (mfont__parse_name_into_font): New function.
434         (Mfontconfig): New variable.
435         (mfont_from_name): Call mfont_parse_name.
436         (mfont_name): Call mfont_unparse_name.
437         (mdebug_dump_font): Likewise.
438
439         * font.h (struct MFontDriver): Delete members parse_name and
440         build_name.
441         (mfont__ft_parse_name, mfont__ft_unparse_name): Extern them.
442         (mfont__parse_name_into_font): Extern it.
443
444         * font-ft.c: Include "symbol.h".
445         (close_ft): Unconditionally free filename and charmap_list of
446         ft_into.
447         (ft_open): Duplicate base->filename.  Increment ref-count of
448         ft_info->charmap_list.  Free ft_info->charmap_list and
449         ft_info->filename on error.
450         (mfont__ft_parse_name, mfont__ft_unparse_name): New functions.
451
452         * m17n-X.c (xfont_driver): Don't include xfont_parse_name and
453         xfont_build_name.
454         (enum xlfd_field_idx): Moved to font.c.
455         (split_font_name, build_font_name): Likewise.
456         (build_font_list): Call mfont__parse_name_info_font.
457         (xfont_open): Call mfont__unparse_name.  Free name.
458         (xfont_parse_name, xfont_build_name): Moved to font.c
459         (xft_select): Prototype deleted.
460         (device_open): Check HAVE_FREETYPE on using mfont__ft_driver.
461         Call mfont_pase_name.
462
463         * m17n-gui.c (free_frame): Unref frame->font_driver_list.
464         (m17n_fini_win): Add check HAVE_FREETYPE on using null_interface.
465         (mframe): Likewise.
466
467         * m17n-gui.h (mfont_parse_name, mfont_unparse_name, Mfontconfig):
468         Extern them.
469
470         * Makefile.am (linkgui_LDADD): Add libm17n-X.la and libm17n-gd.la.
471
472 2004-06-01  Kenichi Handa  <handa@m17n.org>
473
474         * fontset.c (mfontset_modify_entry): Pay attention to the case
475         that fontset->font_spec_list is NULL.
476
477 2004-05-31  Kenichi Handa  <handa@m17n.org>
478
479         * m17n-gui.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
480
481         * input.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
482
483         * font.c (mfont__select): Print score the a font for debugging.
484
485         * Makefile.am (libm17n_la_LIBADD): Delete -ldl.
486
487         * coding.c (reset_coding_sjis): Check kanji and kana instead of
488         kanji_sym and kana_sym.
489
490 2004-05-28  Kenichi Handa  <handa@m17n.org>
491
492         * Makefile.am (VINFO): New variable.
493         (libm17n_core_la_LDFLAGS, libm17n_la_LDFLAGS)
494         (libm17n_gd_la_LDFLAGS): Include ${VINFO}.
495
496 2004-05-27  Kenichi Handa  <handa@m17n.org>
497
498         The following chanages are to make device dependent functions
499         accessible only from MDeviceDriver structure, and to add GD and
500         null device drivers.  Font drivers get also device dependent.
501
502         * m17n.c (m17n_init): Increament shell_initialized.
503         (m17n_fini): Decremented shell_initialized.
504
505         * m17n-misc.h (enum MErrorCode): New element MERROR_GD.
506
507         * m17n-gui.h (Mdevice, Mdisplay, Mscreen, Mdrawable, Mdepth)
508         (Mwidget, Mcolormap, Mx): Extern them.
509
510         * m17n-gui.c: Include <dlfcn.h> and "config.h".
511         (free_frame): Call frame->driver->close instead of
512         mwin__close_device.
513         (DLOPEN_SHLIB_EXT): New macro.
514         (MDeviceLibraryInterface): New type.
515         (device_library_list): New variable.
516         (register_device_library): New function.
517         (null_device): New variable.
518         (null_device_close, null_device_get_prop)
519         (null_device_realize_face, null_device_free_realized_face): New
520         function.
521         (null_driver): New variable.
522         (null_device_init, null_device_fini, null_device_open): New
523         functions.
524         (null_interface): New variable.
525         (Mfreetype, Mdevice): Declare them.
526         (m17n_init_win): Increment win_initialized.  Initialize Mx, Mgd,
527         Mfreetype, Mdevice, Mdisplay, Mscreen, Mdrawable, Mdevice, and
528         Mwin__Close_Device.  Register drivers for Mx and Mgd.
529         (m17n_fini_win): Decremented win_initialized.  Call "fini"
530         function of all opened devices.  Don't call mwin__fini.
531         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap):
532         Declare them here.
533         (mframe): Handle Mdevice key of PLIST.
534         (mframe_get_prop): Call frame->device->get_prop instead of
535         mwin__device_get_prop.
536
537         * m17n-gd.c: New file.
538
539         * m17n-core.h (M17NLIB_MAJOR_VERSION, M17NLIB_MINOR_VERSION)
540         (M17NLIB_PATCH_LEVEL, M17NLIB_VERSION_NAME): Updated to 1.1.0.
541
542         * m17n-core.c (m17n_init_core): Increate core_initialized.
543         (m17n_fini_core): Decremented core_initialized.
544
545         * m17n-X.h (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget)
546         (Mcolormap): Don't extern them here.
547
548         * m17n-X.c (FRAME_DEVICE): New macro.
549         (FRAME_DISPLAY, FRAME_SCREEN, FRAME_CMAP): Use FRAME_DEVICE.
550         (free_display_info): Use MPLIST_DO.
551         (free_device): Free rface->info.
552         (xft_close): Delete it.
553         (device_init): Renamed from mwin__init.
554         (device_fini): Renamed from mwin__fini.
555         (device_open): Renamed from mwin__open_device.
556         (x_driver): New variable.
557         (MXFontInfo): Delete member frame, add member display.
558         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap, Mxim):
559         Don't declare them here.
560
561         * internal-gui.h (MDeviceType): New enum.
562         (MWDefice): Delete it.
563         (struct MFrame): Change type of device to void *.  New members
564         device_type, driver, font_driver_list.
565         (M_CHECK_WRITABLE, M_CHECK_READABLE): New macros.
566         (MDeviceDriver): New type.
567         (Mx, Mgd, Mfreetype): Extern them.
568         (mwin__XXX): Delete all of them.
569
570         * input-gui.c (win_create_ic): Call frame->driver->XXX instead of
571         mwin__XXX.
572         (win_destroy_ic): Likewise.
573         (adjust_window_and_draw): Likewise.
574         (win_callback): Likewise.
575         (Mxim): Declare it here.
576         (minput_event_to_key): Call M_CHECK_READABLE.
577
578         * fontset.c (mfont__lookup_fontset): Delete local variable
579         font_group.
580
581         * font.h (struct MFontDriver): Delete member close, add members
582         parse_name and build_name.
583         (mfont__driver_list): Delete extern.
584         (mfont__close): Delete extern.
585
586         * font.c (mfont__init): Don't set mfont__driver_list.
587         (mfont__fini): Don't unref mfont__driver_list.
588         (mfont__select): Try font drivers in frame->font_driver_list.  Set
589         driver member of a realized font.
590         (mfont__close): Delete it.
591         (mfont_from_name, mfont_name, mdebug_dump_font): Call driver
592         functions of the default frame.
593
594         * font-ft.c (close_ft): Check ft_info->ft_face and work
595         differently.
596         (add_font_info): Allocate ft_info by M17N_OBJECT.
597         (ft_close): Delete it.
598         (mfont__ft_driver): Don't set ft_close.
599         (ft_select): Increment ref-count of best_font.
600         (ft_open): Decremented ref-count of base.  On error, call
601         FT_Done_Face and free ft_info.
602         (ft_find_metric): Always use XXX_MONO in load_flags.
603         (ft_render): Fix setting of width.  Call
604         frame->driver->draw_points instead of mwin__draw_points.
605         (ft_to_prop): Don't set mfont__driver_list.
606         (mfont__ft_fini): Just unref ft_info.
607
608         * face.c (mface__init): Exchange foreground and background of
609         mface__default.  Call mface_put_prop to set hline of
610         mface_underline,
611         (mface__realize): Call frame->driver->XXX instead of mwin__XXX.
612         (mface__free_realized): Don't call mwin__free_realized_face.
613
614         * draw.c (Mdepth): Don't declare it here.
615         (draw_background): Call frame->driver->XXX instead of mwin__XXX.
616         (render_glyphs, render_glyph_string): Likewise.
617         (mdraw__init): Don't set Mdepth.
618         (mdraw_text, mdraw_image_text, mdraw_text_with_control): Call
619         M_CHECK_WRITABLE.
620         (mdraw_text_per_char_extents): Return 0 on success and -1 on
621         error.
622         (mdraw_text_items): Check FRAME is writable.
623         (mdraw_per_char_extents): Implement body.
624
625         * Makefile.am (lib_LTLIBRARIES): Include libm17n-gui.la and
626         libm17n-gd.la.
627         (OPTIONAL_LD_FLAGS): Include @FONTCONFIG_LD_FLAGS@.
628         (GUI_SOURCES): Delete it.
629         (libm17n_X_la_SOURCES): Don't include ${GUI_SOURCES}.
630         (libm17n_gui_la_SOURCES, libm17n_gui_la_LIBADD)
631         (libm17n_gui_la_LDFLAGS, libm17n_gd_la_SOURCES)
632         (libm17n_gd_la_LIBADD, libm17n_gd_la_LDFLAGS): New targets.
633         (linkgui_LDADD): Set to libm17n-gui.la
634         (linkgui_LDFLAGS): New target.
635         (SRC): Include ${libm17n_gui_la_SOURCES} and
636         ${libm17n_gd_la_SOURCES}.
637
638 2004-05-24  Kenichi Handa  <handa@m17n.org>
639
640         * draw.c (draw_background): Don't draw background even if
641         rface->face.property[MFACE_BACKGROUND] is not Mnil.
642
643 2004-05-22  Kenichi Handa  <handa@m17n.org>
644
645         * m17n-X.c (xft_open_font): Fix anti_alias setting.
646
647 2004-05-20  Kenichi Handa  <handa@m17n.org>
648
649         * m17n-gui.h (MFaceHookFunc): Change this function type to void.
650
651         * m17n-gui.c: Include "plist.h".
652         (mframe): If PLIST is NULL, initialize it to emply plist.
653
654         * m17n-X.c (build_font_list): Don't set property[MFONT_TYPE].
655         (xft_driver): New variable.
656         (xft_select, close_xft, xft_open_font, xft_open, xft_close)
657         (xft_find_metric, xft_render): New function.
658         (mwin__init): Adjusted for the new mfont__driver_list.
659         (mwin__open_device): Assume arg PARAM is not NULL.  Push a newly
660         generated face to PARAM.
661         (mwin__realize_face): Fix setting of box colors.  Don't call hook
662         function here.
663         (mwin__draw_hline): New function.
664         (mwin__xft_close, mwin__xft_open, mwin__xft_get_metric)
665         (mwin__xft_render): Delete these function.
666
667         * internal-gui.h (struct MFrame): New member tick.
668         (struct MGlyphString): New member tick.
669         (mwin__draw_rect, mwin__draw_empty_boxes): Extern them.
670         (mwin__xft_open, mwin__xft_close, mwin__xft_get_metric)
671         (mwin__xft_render): Delete extern.
672
673         * fontset.c (mfont__lookup_fontset): Make the code simpler.
674         (mfontset): Always increment the reference count of returned
675         object.
676
677         * font-ft.c (mfont__ft_fini): Don't include <otf.h> here.
678         (MFTInfo): Moved to font.h.
679         (ft_iso8859_1_font_list): Delete this variable.
680         (set_font_info): Don't set font->property[MFONT_TYPE].
681         (set_font_info): Don't udpate ft_iso8859_1_font_list.
682         (add_font_info): Change type to void.
683         (fc_list): Change anme from xft_list.  Caller changed.  Include
684         FC_FOUNDRY and FC_PIXEL_SIZE in FcObjectSet.
685         (mfont__ft_driver): Change name from ft_driver.  Caller changed.
686         (ft_select): Check HAVE_FONTCONFIG instead of HAVE_XFT2.
687         (close_ft): Don't call mwin__xft_close.  Unref
688         ft_info->extra_info.
689         (ft_open): Don't setup ft_info->fontname.  Don't call
690         mwin__xft_open.
691         (ft_find_metric): Don't call mwin__xft_get_metric.
692         (ft_encode_char): Call rfont->driver->open instead of ft_open.
693         (ft_render): Don't check HAVE_XFT2.  Don't call mwin__xft_render.
694         (mfont__ft_init): Adjusted for new mfont__driver_list.
695         (mfont__ft_fini): Don't unref ft_iso8859_1_font_list.
696
697         * font.c (mfont__driver_list): Make it MPlist.
698         (mfont__init): Adjust initialization of mfont__driver_list.
699         (mfont__fini): Free mfont__driver_list.
700         (mfont__set_spec_from_face): Don't set spec->property[MFONT_TYPE].
701         (mfont__select): Adjusted for the new mfont__driver_list.
702
703         * font.h (enum MFontProperty): Delete MFONT_TYPE.
704         (mfont__drirver_list): Adjust prototype.
705         (MFTInfo): Move to here from fron.c.  Deleve member fontname.
706
707         * face.h (struct MFace): Delete member realized_face_list, add
708         member frame_list.
709         (struct MRealizedFace): Delete member need_update
710         andnofont_rface, add member non_ascii_list.
711         (mface__update_frame_face): Extern it.
712
713         * face.c (hline_prop_list, box_prop_list, noop_hook): New
714         variables.
715         (get_hline_create, get_box_create): New functions.
716         (find_realized_face): Cancel previous change.  Arg RFONT deleted.
717         Use memcmp.
718         (free_face): Cancep previous change.  Free face->frame_list.
719         (serialize_hline): Do nothing if hline->width is zero.
720         (serialize_box): Do nothing if box->width is zero.
721         (mface__init): Setup all properties of mface__default.
722         (mface__fini): Free hline_prop_list and box_prop_list.
723         (mface__realize): Cancel previous change.  Update
724         face->frame_list.  Setup rface->non_ascii_list.
725         (mface__for_chars): Update rface->non_ascii_list.
726         (mface__free_realized): Free rface->non_ascii_list.
727         (mface__update_frame_face): New function.
728         (mface): Initialize face->frame_list.
729         (mface_copy): Likewise.  Just copy MFACE_HLINE and MFACE_BOX
730         properties.
731         (mface_merge): Likewise.
732         (mface_put_prop): If key is Mhline or Mbox, get value by
733         get_hline_create or get_box_create respectively.
734         (mface_put_prop): Update frame->tick and call
735         mface__update_frame_face if necessary.
736         (mface_update): Do nothing if func is noop_hook.
737
738         * draw.c (render_glyphs): If a font is not found, use
739         mwin__draw_empty_boxes.
740         (alloc_gstring): Initialize gstring->tick.
741         (get_gstring): Check gstring->tick.
742
743 2004-05-17  Kenichi Handa  <handa@m17n.org>
744
745         * face.c (find_realized_face): Return value changed.  If RFONT is
746         NULL, avoid unnecessary checking.
747         (free_face): Free face->realized_face_list.
748         (mface__realize): Adjusted for the change of find_realized_face.
749         If it returns a realized face that needs update, free it and
750         realize a new one.  Push a new realized face to
751         frame->realized_face_list instead of appending.
752         (mface__for_chars): Adjusted for the change of find_realized_face.
753         Short cut if the required font is in rface->ascii_rface.
754         (mface_put_prop): Free old value if necessary.  Set need_update
755         member of realized faces to 1.
756
757         * face.h (struct MFace): Delete member tick, add member
758         realized_face_list.
759         (struct MRealizedFace): Delete member tick, add member
760         need_update.
761
762 2004-05-13  Kenichi Handa  <handa@m17n.org>
763
764         * m17n-X.c (mwin__xft_open): Destroy unnecessary patterns.
765
766 2004-05-12  Kenichi Handa  <handa@m17n.org>
767
768         * internal-gui.h (mwin__xft_open): Arguemnt name changed.
769
770         * m17n-X.c (mwin__xft_open): Argument changed to fontname and
771         parse it XftNameParse.
772
773         * font-ft.c (MFTInfo) [HAVE_XFT2]: New member fontname.
774         (all_fonts_scaned): New variable.
775         (set_font_info): FAMILY may be Mnil.
776         (add_font_info): Argument changed.
777         (xft_list): Call add_font_info in it.
778         (ft_list): Likewise.
779         (ft_select): Make it work in the case family is Mnil.
780         (ft_open) [HAVE_XFT2]: Setup ft_info->fontname.
781         (mfont__ft_fini): Set all_fonts_scaned to 0.
782
783         * fontset.c (mfont__lookup_fontset): Don't repeatedly try a font
784         that is failed to open.
785
786 2004-05-10  Kenichi Handa  <handa@m17n.org>
787
788         * m17n-X.c (mwin__xft_render): Don't use anti-alias if the
789         device's depth is 1 (i.e. monochrome).
790
791         * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
792         to work around the problem of libtool.
793
794         * font-ft.c: Include <freetype/ftbdf.h>.
795         (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
796         variables.
797         (mfont__ft_init): Initialize them.
798         (ft_iso8859_1_font_list): New variable.
799         (set_font_info): Detect a font containing iso8859-1 glyphs and
800         register it in ft_iso8859_1_font_list.  If the font is not
801         scalable, assume it as BDF or PCF font and setup SIZE and RESY
802         properties of the font from its properties.
803         (add_font_list): If the font is not scalable, check if it is BDF
804         or PCF font.  If not, ignore it.
805         (ft_select): If FAMILY is Mnil, return NULL only if the requested
806         registry is not iso8859-1.
807         (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
808         ft_iso8859_1_font_list.
809         (ft_find_metric): If the font is not scalable, assume it as BDF
810         or PCF, and get a metric from its properties.
811         (mfont__ft_fini): Free ft_iso8859_1_font_list.
812
813 2004-05-07  Kenichi Handa  <handa@redhat.m17n.org>
814
815         * Makefile.am (libm17n_la_LIBADD): Include -ldl.
816         (libm17n_la_LDFLAGS): Delete it.
817         (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
818         (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
819
820 2004-05-06  Kenichi Handa  <handa@m17n.org>
821
822         * draw.c (compose_glyph_string): Fix previous change.
823
824 2004-04-30  Kenichi Handa  <handa@m17n.org>
825
826         * font-ft.c (ft_list): Delete unused variable `result'.
827         (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
828
829 2004-04-27  Kenichi Handa  <handa@m17n.org>
830
831         * m17n-X.c: Include config.h
832         [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
833         (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
834         (MWDevice) [HAVE_XFT2]: New member xft_draw.
835         (FRAME_CMAP, FRAME_VISUAL): New macros.
836         (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
837         (xfont_driver): Make it static.
838         (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
839         (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
840         info->xft_color_back.
841         (MXftFontInfo) [HAVE_XFT2]: New type.
842         (mwin__xft_close) [HAVE_XFT2]: New function.
843         (mwin__xft_open) [HAVE_XFT2]: New function.
844         (mwin__xft_get_metric) [HAVE_XFT2]: New function.
845         (mwin__xft_render) [HAVE_XFT2]: New function.
846
847         * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
848         (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
849         (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
850         externs.
851
852         * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
853
854         * font-ft.c: Don't include FT_FREETYPE_H here.
855         [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
856         (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
857         (MFTInfo): New member charmap_index.
858         (MFTInfo) [HAVE_XFT2]: New member xft_info.
859         (check_otf_filename): Renamed from check_filename.  Return value
860         changed.
861         (ft_set_property): This function deleted.
862         (set_font_info): New function.
863         (add_font_list): Argument changed.  Add multiple fonts.
864         (xft_list) [HAVE_XFT2]: New function.
865         (ft_list) [not HAVE_XFT2]: New function.
866         (ft_select): Add code for Xft.
867         (close_ft): Likewise.
868         (ft_open): Likewise.
869         (ft_find_metric): Likewise.
870         (ft_encode_char): Likewise.
871         (ft_render): Likewise.
872
873         * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
874
875 2004-04-26  Kenichi Handa  <handa@m17n.org>
876
877         * textprop.c (mtext_attach_property): Declare the return type as
878         `int'.
879
880 2004-04-21  Kenichi Handa  <handa@m17n.org>
881
882         * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
883
884 2004-04-09  Kenichi Handa  <handa@m17n.org>
885
886         * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
887         seq_to.
888         (load_command): Setup above members.
889
890 2004-04-05  Kenichi Handa  <handa@m17n.org>
891
892         * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
893
894 2004-03-30  Kenichi Handa  <handa@m17n.org>
895
896         * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
897         >= 0x10000.
898
899         * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
900         (M17NLIB_VERSION_NAME): Changed to 1.0.2.
901
902 2004-03-29  Kenichi Handa  <handa@m17n.org>
903
904         * Version 1.0 Patch Level 2 released.
905
906 2004-03-29  Kenichi Handa  <handa@m17n.org>
907
908         * charset.c (make_charset): Set charset->fully_loaded and
909         charset->simple correctly.  Don't try to get charset->min_char and
910         charset->max_char for a charset of method subset and superset.
911         Don't load a mapping file here.
912         (mcharset__init): Set unified_max.
913         (mcharset__load_from_database): Free a working plist.
914
915         * coding.c (mcoding__fini): Free all malloced data.
916
917         * input-gui.c (win_create_ic): Set control.as_image for preediting
918         to 0.
919
920         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
921         `count') to initialize the array.
922
923         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
924         M17N_OBJECT_UNREF.
925
926         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
927         rectangle.
928         (mwin__create_window): Fix bug of setting a background pixel of a
929         new window.
930         (mwin__adjust_window): Clear the window before drawing.
931
932         * m17n-core.c (mdebug__report_object): Free array->objectes if
933         necessary.
934         (m17n_init_core): Don't set report_header_printed to 0 here.
935         Fix debugging information.
936         (m17n_fini_core): Set report_header_printed to 0 here.
937
938         * m17n-core.h (mplist_deserialize): Extern it.
939
940         * m17n-gui.c (m17n_fini_win): Fix debugging information.
941
942         * m17n.c (m17n_fini): Fix debugging information.
943
944         * mtext.c (mtext__adjust_foramt): New function.
945
946         * mtext.h (mtext__adjust_foramt): Extern it.
947
948         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
949
950         * plist.h (mplist__deserialize): Don't extern it.
951
952         * symbol.c (msymbol__fini): Set freed_symbols to 0.  Set all
953         elements of symbol_table to NULL.  Report about created and freed
954         symbols if MDEBUG_FINI is set.
955
956 2004-03-22  Kenichi Handa  <handa@m17n.org>
957
958         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
959
960         * m17n.c (m17n_init): Fix the way of checking merror_code.
961
962         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
963
964 2004-03-22  Kenichi Handa  <handa@m17n.org>
965
966         * fontset.c (realize_font_group): Adjust the font size by
967         mfont__resize before selecting a font.
968
969         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
970
971 2004-03-19  Kenichi Handa  <handa@m17n.org>
972
973         * Version 1.0 Patch Level 1 released.
974
975 2004-03-19  Kenichi Handa  <handa@m17n.org>
976
977         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
978
979         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
980
981 2004-03-19  Kenichi Handa  <handa@m17n.org>
982
983         Re-apply the changes forgotten in the released version.
984
985         * charset.c (mcharset__load_from_database): Call
986         mchar_define_charset.
987
988         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
989         (mconv_encode_range): Put Mcoding text property.
990
991 2004-03-18  Kenichi Handa  <handa@m17n.org>
992
993         * draw.c (Mdepth): New variable.
994         (visual_order): Delete unused local var `pos'.
995         (compose_glyph_string): Fix for the case that gstring->glyphs is
996         realloced.  Stop generating glyphs at TO.  Fix handling of
997         control charaters.
998         (layout_glyphs): Get metrics of all glyphs in advance.  Set
999         lbearing and rbearing of base of composition glyph correctly.
1000         Handle left-overhang glyphs correctly.
1001         (alloc_gstring): New arg frame.  Set gstring->anti_alias.  Caller
1002         changed.
1003         (dump_combining_code): Change the defualt off_x character to ".".
1004         (mdraw__init): Initialize Mdepth.
1005
1006         * face.c (work_gstring): New variable
1007         (mface__init): Initialize work_gstring.
1008         (mface__fini): Free work_gstring.glyphs.
1009         (mface__realize): Don't handle videomode property here.  Adjusted
1010         for the change of mfont__get_metric.
1011         (mface__for_chars): Adjusted for the change of mfont__get_metric.
1012
1013         * face.h (enum face_gc): Moved to m17n-X.c.
1014
1015         * font.h (struct MFontDriver): Arguments of find_metric changed.
1016         (mfont__select): Prototype adjusted.
1017         (mfont__get_metric): Likewise.
1018         (mfont__ft_drive_otf): Likewise.
1019         (mfont__flt_run): Likewise.
1020         
1021         * font.c (mfont__select): New argument layouter.  If layouter is
1022         different in the registered font, make a new copy of realized
1023         font.
1024         (mfont__get_metric): Argument changed.  Get metrics of multiple
1025         glyphs.
1026         (mfont_find): Call mfont__select with layouter as Mnil.
1027
1028         * font-flt.c (FontLayoutContext): New member rfont.
1029         (run_otf): Adjusted for the change of mfont__ft_drive_otf.
1030         (mfont__flt_run): Argument changed.  Initialize ctx.rfont.
1031
1032         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
1033         multiple glyphs.
1034         (NUM_POINTS): New macro.
1035         (MPointTable): New type.
1036         (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
1037         (mfont__ft_drive_otf): New argument rfont.
1038
1039         * fontset.c (realize_font_group): Adjusted for the changed of
1040         mfont__select.
1041         (check_fontset_element): This function deleted.
1042
1043         * input-gui.c (adjust_window_and_draw): Locate a preedit window
1044         off the parent window if the preedit text is zero length.
1045
1046         * internal-gui.h (struct MFrame): New members foreground,
1047         background, videomode, font.
1048         (struct MGlyphString): New member anti_alias.
1049         (MDrawPoint): New type.
1050         (mwin__draw_bitmap): Prototype deleted.
1051         (mwin__draw_points): Prototype added.
1052
1053         * m17n-gui.h (MDrawControl): New member anti_alias.
1054
1055         * m17n-gui.c (free_frame): Free frame->font.
1056         (mframe): Set the fontset of frame->face to the default fontset.
1057
1058         * m17n-X.c (RGB_GC): New type.
1059         (enum gc_index): Renamed from enum face_gc.  Member names changed.
1060         (GCInfo): New typel
1061         (struct MWDevice): Members foreground and background deleted.  New
1062         member scratch_gc, gc_list.
1063         (DEFAULT_FONT, FALLBACK_FONT): New macros.
1064         (free_device): Free GCs in device->gc_list.
1065         (get_rgb_gc): New function.
1066         (get_gc): Renamed and argument changed from get_color.
1067         (get_gc_for_anti_alias): New function.
1068         (xfont_find_metric): Arguments changed.  Get metrics of multiple
1069         glyphs.
1070         (set_region): Argument changed.  Caller changed.
1071         (xfont_render): Allways set a font in gc.
1072         (x_error_handler, x_io_error_handler): Define only if
1073         X_SET_ERROR_HANDLER is defined.
1074         (mwin__open_device): Create device->scratch_gc.  Set members
1075         foreground, background, and videomode of frame.  Call
1076         XSetErrorHandler and XSetIOErrorHandler only if
1077         X_SET_ERROR_HANDLER is defined.
1078         (struct gc_list): Deleted.
1079         (REGISTER_GC, UNREGISTER_GC): These macros deleted.
1080         (mwin__realize_face): Adjusted for the change of the format of
1081         rface->info and the charge of set_region.
1082         (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
1083         (mwin__draw_box): Likewise.
1084         (mwin__draw_bitmap): This function deleted.
1085         (mwin__draw_points): New function.
1086         (mwin__verify_region): Adjusted for the change of the format of
1087         rface->info and the charge of set_region.
1088         (mwin__create_window): Inherit backgound pixel from parent.
1089         (mwin__dump_gc): Adjusted for the change of the format of
1090         rface->info.
1091
1092 2004-03-16  Kenichi Handa  <handa@m17n.org>
1093
1094         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
1095
1096         * input.c (M_key_alias): New variable.
1097         (handle_key): Try M_key_alias property of a key too.
1098         (minput__init): Initialize M_key_alias.  Give that property to
1099         symbols in one_char_symbol.  Fix bug of initializing
1100         one_char_symbol.
1101
1102         * draw.c (compose_glyph_string): Don't handle
1103         ignore_formatting_char here.  Include formatting characters in the
1104         range processed by a FTL.
1105         (layout_glyph_string): Handle ignore_formatting_char here.
1106
1107 2004-03-12  Kenichi Handa  <handa@m17n.org>
1108
1109         * input-gui.c (win_create_ic): Enable bidi in status control.
1110
1111         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
1112
1113 2004-03-09  Kenichi Handa  <handa@m17n.org>
1114
1115         * input.c (load_input_method): If title is not specified, use the
1116         input method name as title.
1117
1118         * m17n-X.c (get_color): Make it static.
1119         (xim_create_ic, xim_destroy_ic, x_error_handler)
1120         (x_io_error_handler): Likewise.
1121
1122 2004-03-01  Kenichi Handa  <handa@m17n.org>
1123
1124         * Version 1.0 released.
1125
1126 \f
1127 Copyright (C) 2003, 2004
1128   National Institute of Advanced Industrial Science and Technology (AIST)
1129   Registration Number H15PRO112
1130
1131 This file is part of the m17n library.
1132
1133 The m17n library is free software; you can redistribute it and/or
1134 modify it under the terms of the GNU Lesser General Public License
1135 as published by the Free Software Foundation; either version 2.1 of
1136 the License, or (at your option) any later version.
1137
1138 The m17n library is distributed in the hope that it will be useful,
1139 but WITHOUT ANY WARRANTY; without even the implied warranty of
1140 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1141 Lesser General Public License for more details.
1142
1143 You should have received a copy of the GNU Lesser General Public
1144 License along with the m17n library; if not, write to the Free
1145 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1146 02111-1307, USA.