(m17n_init_core): Set merror_code to MERROR_NONE at
[m17n/m17n-lib.git] / src / ChangeLog
1 2005-03-09  handa  <handa@m17n.org>
2
3         * m17n-gui.c (m17n_init_win): Set merror_code to MERROR_NONE before
4         calling m17n_init ().
5
6         * m17n.c (m17n_init): Set merror_code to MERROR_NONE before
7         calling m17n_init_core ().
8
9 2005-02-28  Kenichi Handa  <handa@m17n.org>
10
11         * font-flt.c (mfont__flt_run): Add resulting code sequence in
12         debug info.
13
14 2005-02-17  Kenichi Handa  <handa@m17n.org>
15
16         * input.c: Include <sys/types.h>, <dirent.h>, and "database.h".
17         (M_description, M_command, M_variable): New variables.
18         (load_im_info_keys): New variables.
19         (load_im_info, check_command_keyseq, get_description_advance)
20         (parse_command_list, get_command_list, parse_variable_list)
21         (get_variable_list, input_method_hook): New functions.
22         (command_list, variable_list): New variables.
23         (minput__init): Put input_method_hook to Minput_method.
24         Initialize M_description, M_command, M_variable, Mdetail_text,
25         load_im_info_keys, command_list, variable_list.
26         (minput__fini): Unref command_list, variable_list, load_im_info_keys.
27         (Mdetail_text): New variable.
28         (minput_get_description, minput_get_commands)
29         (minput_assign_command_keys, minput_get_variables)
30         (minput_set_variable): New functions.
31
32         * m17n.h (Mdetail_text, minput_get_description, minput_get_commands)
33         (minput_assign_command_keys, minput_get_variables)
34         (minput_set_variable): Extern them.
35
36         * plist.c (UNGETC): Just decrement st->p.
37         (read_mtext_element): New arg skip.
38         (read_integer_element): Likewise.
39         (read_symbol_element): Likewise.
40         (read_element): New arg KEYS.
41         (mplist__from_plist): Don't increment ref-count of NULL object.
42         (mplist__from_file): New arg KEYS.
43         (mplist_put): Don't increment ref-count of NULL object.
44         (mplist_add): Likewise.
45         (mplist_push): Likewise.
46         (mplist_set): Likewise.  Call M17N_OBJECT_UNREF unconditionally.
47
48         * plist.h (mplist__from_file): Prototype adjusted.
49
50         * database.c (mdatabase__dir_list): Renamed from mdb_dir_list.
51         (get_database_stream): New function.
52         (load_database): Use get_database_stream.
53         (M_database_hook): New variable
54         (mdatabase__init): Initialize M_database_hook.
55         (mdatabase__load_for_keys): New function.
56         (mdatabase_find, mdatabase_list, mdatabase_define): Check hook
57         function.
58         (mdatabase_define): Free mdb->extra_info if necessary.
59
60         * database.h (mdatabase__dir_list, M_database_hook)
61         (mdatabase__load_for_keys): Extern them.
62         (MDatabaseHookFunc): New type.
63
64         * internal.h (M17N_OBJECT_UNREF): When freed, set OBJECT to NULL.
65
66 2004-12-27  Kenichi Handa  <handa@m17n.org>
67
68         * Version 1.2.0 released.
69
70 2004-12-27  Kenichi Handa  <handa@m17n.org>
71
72         * input.c (minput_filter): Don't reset ic->xxx_changed.
73
74         * mtext.c (mtext_from_data): Fix documentation.
75
76 2004-12-25  Kenichi Handa  <handa@m17n.org>
77
78         * m17n-core.h (M17NLIB_MINOR_VERSION): Update to 2.
79         (M17NLIB_VERSION_NAME): Update to "1.2.".
80
81 2004-12-24  Kenichi Handa  <handa@m17n.org>
82
83         * input.c (reset_ic): Set key_unhandled to 0.
84
85 2004-12-21  Kenichi Handa  <handa@m17n.org>
86
87         * m17n-gui.h (mfont_from_spec): Delete extern.
88
89         * input-gui.c (win_callback): Handle Minput_reset.
90         (minput__win_init): Register reset_ic as a callback for
91         Minput_reset.
92
93         * input.c (reset_ic): New arg IGNORE which is ignored.  Caller
94         changed.  At first, shift to the initial state.
95         (minput__init): Initialize Minput_reset.  Register reset_ic as a
96         callback for Minput_reset.
97         (Minput_reset): New variable.
98         (minput_filter): Always set ic->xxx_changed to 0.
99         (minput_reset_ic): New function.
100         (integer_value): Fix typo ('>' -> '<') and calculation of length
101         of preedit text.
102
103         * m17n-core.c (merror_code): Change type to `int'.
104
105         * m17n-misc.h (merror_code): Adjust type.
106
107         * m17n.h (Minput_reset, minput_reset_ic): Extern them.
108
109         * m17n-core.h (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Adjust types.
110         (mtext_change_prop): Delete extern.
111
112         * mtext.c (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Change types
113         to `int'.  Move the documents to m17n-core.h.
114
115 2004-12-13  Kenichi Handa  <handa@m17n.org>
116
117         * m17n-core.h (m17n_object): Rename extern from m17n_object_setup.
118         (MTextProperty): Document it.
119
120 2004-12-09  Kenichi Handa  <handa@m17n.org>
121
122         * m17n-core.h: Fix typo (MTextStatus -> M17NStatus).
123
124 2004-12-03  Kenichi Handa  <handa@m17n.org>
125
126         * internal.h (m17n__core_initialized, m17n__shell_initialized,
127         m17n__gui_initialized): New externs.
128
129         * m17n-core.h (enum M17NStatus): New enum.
130         (m17n_status): Extern it.
131
132         * m17n-core.c (core_initialized): Delete this variable.
133         (m17n__core_initialized, m17n__shell_initialized,
134         m17n__gui_initialized): New variables.
135         (m17n_init_core, m17n_fini_core): Check m17n__core_initialized
136         instead of core_initialized.
137         (m17n_status): New function.
138
139         * m17n.c (shell_initialized): Delete this variable.
140         (m17n_init, m17n_fini): Check m17n__shell_initialized instead of
141         shell_initialized.
142
143         * m17n-gui.h (m17n_init_win): Adjust the prototype.
144
145         * m17n-gui.c (win_initialized): Delete this variable.
146         (m17n_init_win, m17n_fini_win): Check m17n__gui_initialized
147         instead of gui_initialized.
148
149 2004-11-19  Kenichi Handa  <handa@m17n.org>
150
151         * input.c (reset_ic): Check if ic_info->state is NULL.
152         (filter): If ic_info->state is NULL, return 0.
153         (load_input_method): Don't unref `maps' it it's not created.
154
155 2004-11-15  Kenichi Handa  <handa@m17n.org>
156
157         * input.c (find_candidates_group): If INDEX is -1, find the last
158         candidate group.
159         (take_action_list): If the previous of the first candidate is
160         requested, select the last candidate.
161
162 2004-11-08  Kenichi Handa  <handa@m17n.org>
163
164         * m17n-X.c (device_open): Try at most 32 fonts to find a
165         non-autoscaled font.
166
167         * font.c (xlfd_parse_name): Fix previous change.
168
169 2004-11-05  Kenichi Handa  <handa@m17n.org>
170
171         * font.c: (commont_style): Include dummy elements "slanted" and
172         "rslanted" to prefer "o" to "r" if "i" is requested.
173
174         * font-ft.c (ft_to_prop): Fix "oblique" entry.
175
176 2004-10-29  Kenichi Handa  <handa@m17n.org>
177
178         * font.c (xlfd_parse_name): If avgwidth is 0, set the size to 0.
179
180         * m17n-X.c (MXFont): Change type of the member `sizes' to int.
181         New members smallest and larger.
182         (SET_SIZE, HAVE_SIZE): Adjusted for the above change.
183         (xfont_registry_list): Likewise.
184         (xfont_select): Likewise.
185         
186
187 2004-10-28  Kenichi Handa  <handa@m17n.org>
188
189         * m17n-X.c (xfont_registry_list): Include '-' before PIXEL_SIZE in
190         font name comparison.
191         (xfont_select): Fix logic for selecting a larger size font.
192
193 2004-10-25  Kenichi Handa  <handa@m17n.org>
194
195         * input.c (take_action_list): Initialize `ret' to 0 for "=", "<",
196         ">" actions.
197
198 2004-10-22  Kenichi Handa  <handa@m17n.org>
199
200         * input.c (update_candidate): Renamed from udpate_candidate.
201         (take_action_list): Show more debugging info on arithmetic commands.
202
203         * m17n-X.c (device_open): Fix previous change.
204
205         * draw.c (compose_glyph_string): Don't get face property at the
206         end of M-text.
207
208 2004-10-21  Kenichi Handa  <handa@m17n.org>
209
210         * draw.c (compose_glyph_string): Fix for the case of category
211         being Mnil.
212
213 2004-10-19  Kenichi Handa  <handa@m17n.org>
214
215         * input.c (mdebug_mask): New variable.
216         (shift_state): Print debug information.
217         (take_action_list): Likewise.
218         (handle_key): Likewise.
219
220 2004-10-14  Kenichi Handa  <handa@m17n.org>
221
222         * m17n-X.c (device_open): Accept Mxft as the value of key Mfont.
223
224 2004-10-13  Kenichi Handa  <handa@m17n.org>
225
226         * m17n-X.c (device_open): Be sure to register at least one font
227         driver.
228
229         * font-ft.c: Include <freetype/ftbdf.h> conditionally.  Check
230         HAVE_FTBDF_H before calling FT_Get_BDF_Property.
231
232 2004-10-12  Kenichi Handa  <handa@m17n.org>
233
234         * draw.c (alloc_gstring): Fix previous change.
235
236         * font-ft.c (ft_list_generic): Fix for the case of not
237         HAVE_FONTCONFIG.
238
239         * m17n-X.c (mwin__parse_event): Fix for non-ASCII keys.
240
241         * font.c (mfont_list): If no font is found, return NULL.
242         (load_font_encoding_table): Put entries of nil registry first.
243         (find_encoding): Adjust for the above change.
244
245 2004-10-11  Kenichi Handa  <handa@m17n.org>
246
247         * m17n-gui.h (mfont_list): Adjust prototype.
248
249         * m17n-X.c (xfont_list): New arg maxnum.
250
251         * font.h (struct MFontDriver): Change prototype of <list>.
252
253         * font-ft.c (fc_generic_family_list): Delete it.
254         (Mserif, Msans_serif, Mmonospace): Delete them.
255         (M_generic_family_info): New variable.
256         (enum GenericFamilyType): New enum.
257         (struct GenericFamilyInfo): New struct.
258         (generic_family_table): New variable.
259         (set_font_info): New arg style. Don't check 0xA0..0xBF to decide
260         iso8859-1.
261         (add_font_info): Get style here.
262         (ft_list_family): Don't initialize fc_config here.  Don't list
263         generic families.
264         (ft_list_generic): New function.
265         (ft_select): Pay attention to generic familes here.
266         (ft_open): Fix calculation of ascent and descent.
267         (ft_list): Pay attention to generic families.
268         (mfont__ft_init): Initialize M_generic_family_info,
269         generic_family_table, and fc_config..
270         (mfont__ft_fini): Finalize generic_family_table.
271
272         * draw.c (compose_glyph_string): Use more constant font for
273         glyphs.  Adjust for the member change in MGlyph.
274         (layout_glyph_string): Adjust for the member change in MGlyph.
275         (alloc_gstring): Intilize scracth_glyph to avoid
276         compose_glyph_string on it.
277         (get_gstring): Don't call compose_glyph_string on scracth_glyph.
278         (mdraw_coordinates_position): Fix previous change.
279
280         * internal-gui.h (glyph_category): New enum.
281         (MGlyph): Change type of <category> to enum glyph_category.
282
283         * face.c (mface__realize): Delete args langauge and charset.
284         (mface__for_chars): Fix for the case that glyphs have different
285         rfaces.
286         (mface__update_frame_face): Adjust for mface__realize change.
287
288         * face.h (mface__realize): Adjust prototype.
289
290 2004-10-05  Kenichi Handa  <handa@m17n.org>
291
292         * language.c (mlang__init): Add Akan.
293
294 2004-10-04  Kenichi Handa  <handa@m17n.org>
295
296         * font-ft.c (add_font_info): Add instead of push the element.
297         (ft_list_family): For generic fonts, try all
298         substituted. families.
299
300         * font-flt.c (UPDATE_CLUSTER_RANGE): New macro.
301         (run_rule): Don't update cluster range here.
302         (run_command): Update cluster range on appending a glyph.
303         (run_otf): Update cluster range for glyphs generated by OTF.
304
305 2004-10-02  Kenichi Handa  <handa@m17n.org>
306
307         * m17n-X.c (device_open): Handle Mfont key in PLIST.
308
309 2004-09-30  Kenichi Handa  <handa@m17n.org>
310
311         * font-ft.c (ft_select): Ignore family on calling mfont__score.
312
313 2004-09-30  Kenichi Handa  <handa@m17n.org>
314
315         * font.h: Include <fontconfig/fontconfig.h>.
316         (MFTInfo): New member langset.
317         (mfont__encoding_list): Extern it.
318
319         * font.c (mfont__encoding_list): New function.
320         (mdebug_dump_font_list): New function.
321
322         * font-ft.c: Don't include <fontconfig/fontconfig.h> here.
323         (Mserif, Msans_serif, Mmonospace, Mmedium, Mr, Mnull): New
324         variables.
325         (ft_family_list): New variable.
326         (set_font_info): New arg basep.  Callers changed.
327         (fc_list): Check the return value of FcPatternGetString.
328         (add_font_info): New arg plist.  Callers changed. Update
329         ft_family_list.
330         (ft_list_family): New function (merged fc_list and ft_list_all).
331         (ft_select): Use ft_list_family.
332         (ft_list): Likewise.  If FONT is not NULL, check all fonts.  Fix
333         typo (== -> !=).
334         (mfont__ft_init): Initialize above new variables.
335         (mfont__ft_fini): Free ft_family_list.
336         (STRDUP_LOWER): New macro.
337         (set_font_info): Use STRDUP_LOWER.
338         (ft_list_family): Avoid duplicate addition of font path.  Use
339         STRDUP_LOWER.
340         (fc_decode_prop): Fix typo.
341
342         * m17n-X.c (MDisplayInfo): New member all_fonts_scaned.
343         (xfont_registry_list): Change argument disp_info to frame.
344         Callers changed.
345         (xfont_list_all): New function.
346         (xfont_list): If FONT is not NULL, check all fonts.
347
348 2004-09-28  Kenichi Handa  <handa@m17n.org>
349
350         * m17n-X.c (MXFont, MXFontList): New types.
351         (MDisplayInfo): Delete members font_registry_list,
352         iso8859_1_family_list, iso10646_1_family_list, new members
353         font_list, base_font_list.
354         (free_display_info): Adusted for the change of MDisplayInfo.
355         (xfont_driver): Initialize with xfont_list.
356         (font_compare): New function.
357         (build_font_list): Deleted.
358         (xfont_registry_list): New function.
359         (xfont_select): Use xfont_registry_list.
360         (xfont_list): New function.
361         (device_open): Adusted for the change of MDisplayInfo.
362
363         * font-ft.c (add_font_info): New arg languages.  Callers changed.
364         (fc_list): Get languages from fonts..
365         (ft_list_all): Renamed from ft_list.  Callers changed.
366         (ft_list): New function.
367         (mfont__ft_driver): Initalize with ft_list.
368
369         * font.c (mfont_list): New function.
370
371         * font.h (struct MFontDriver): New member `list'.
372         (MFTInfo): New member languages.
373
374         * m17n-gui.h (mfont_list): Extern it.
375
376 2004-09-27  Kenichi Handa  <handa@m17n.org>
377
378         * internal-gui.h (struct MGlyphString): Delete members mt,
379         sub_width, sub_lbrearing, sub_rbearing, and region.
380
381         * draw.c (MSubTextExtents): New type.
382         (layout_glyphs): New arg extents.  Set its members.
383         (layout_glyph_string): Adjusted for the above change.
384         (alloc_gstring): Don't set gstring->mt.
385         (truncate_gstring): Call line_break function with mt instead of
386         gstring->mt.
387
388 2004-09-22  Kenichi Handa  <handa@m17n.org>
389
390         * mtext.c (count_utf_16_chars): Count each code of invalid
391         surrogates as one.
392
393 2004-09-19  Kenichi Handa  <handa@m17n.org>
394
395         * mtext.c (default_utf_16, default_utf_32): Rename them to
396         MTEXT_FORMAT_UTF_16 and MTEXT_FORMAT_UTF_32 respectively.  Caller
397         changed.
398
399         * m17n-core.h (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Extern
400         them.
401
402 2004-09-13  Kenichi Handa  <handa@m17n.org>
403
404         * draw.c (Mlatin): Don't declare it here.
405         (visual_order): Fix reordering of combining characters.
406         (compose_glyph_string): Fix detection of script.
407         (layout_glyphs): Don't fix reordering of combining characters
408         here.
409         (layout_glyph_string): Pay attention to
410         control->disable_overlapping_adjustment.
411         (truncate_gstring): Include at least on character in a line.
412         (get_gstring): Always scan one full line.
413         (mdraw__init): Don't initialize Mlatin here.
414         (mdraw_text_per_char_extents): Fix iteration.  If a glyph doesn't
415         have a font, use ascent/descent of an ASCII font.  Allow
416         ink_array_return and logical_array_return to be NULL.
417         (mdraw_coordinates_position): Fix iteration.
418
419         * font-ft.c (MFTtoProp): Member completely changed.
420         (ft_to_prop): Adjusted for the above change.
421         (ft_to_prop_size): Likewise.
422         (set_font_info): Adjusted for the change of MFTtoProp.
423         (fc_generic_family_list): New variable.
424         (fc_list): Add special handling of generic font names.
425         (mfont__ft_init): Adjusted for the change of MFTtoProp.
426         Initialize fc_generic_family_list.
427         (mfont__ft_fini): Don't free ft_to_prop.  Free
428         fc_generic_family_list.
429         (FC_vs_M17N_font_prop): New type.
430         (fc_weight_table, fc_slant_table, fc_width_table): New variables.
431         (fc_decode_prop, fc_encode_prop): New functions.
432         (mfont__ft_parse_name): Use fc_decode_prop.
433         (mfont__ft_unparse_name): Use fc_encode_prop.
434
435         * m17n-X.c (MDisplayInfo): Delete member realized_font_list.
436         (MWDevice): Add member realized_font_list.
437         (free_display_info): Don't free disp_info->realized_font_list.
438         (free_device): Free device->realized_fontset_list.
439         (xft_find_metric): Use gstring->frame instead of rfont->frame.
440         (device_open): Don't initialize disp_info->realized_font_list.
441         (device_open): Initialize device->realized_font_list and set it to
442         frame->realized_font_list.
443
444         * fontset.c (try_font_group): New function.
445         (mfont__lookup_fontset): Use try_font_group.
446
447         * font.c (common_weight): Change the order of "regular".
448
449         * face.c (Mlatin): Don't make it static.
450         (mface__realize): Be sure to set work_gstring.frame.
451         (mface__for_chars): Likewise.
452
453         * mtext.c (mdebug_dump_mtext): Fix for the case of mt->format >
454         MTEXT_FORMAT_UTF_8.
455
456         * internal-gui.h (Mlatin): Extern it.
457
458         * m17n-gui.h (MDrawControl): New member
459         disable_overlapping_adjustment.
460
461 2004-09-06  Kenichi Handa  <handa@m17n.org>
462
463         * font-flt.c (run_otf): Fix typo ('}'->']').
464
465         * internal-gui.h (MAKE_PRECOMPUTED_COMBINDING_CODE)
466         (COMBINING_PRECOMPUTED_P): New macros.
467
468         * draw.c (layout_glyphs): Handle precomputed combining code.
469
470         * font-ft.c (mfont__ft_drive_otf): Set g->combining_code to a
471         precomupted combining code.
472
473 2004-09-03  Kenichi Handa  <handa@m17n.org>
474
475         * font-ft.c (mfont__ft_drive_otf): Use malloc and free for
476         otf_gstring.glyphs.
477
478 2004-08-27  Kenichi Handa  <handa@m17n.org>
479
480         * face.c (mface_put_prop): If the new value is the same as the
481         current one, don't increment frame->tick.
482
483 2004-08-25  Kenichi Handa  <handa@m17n.org>
484
485         * fontset.c (mfontset): Initialize font_spec_list member.
486         (mfontset_copy): Load fontset if necessary.
487
488         * m17n-gui.h (MDrawGlyphInfo): Change the member name 'this' to
489         'metrics' to for C++.
490
491         * draw.c (mdraw_glyph_info): Adjusted for the member name change
492         (this -> metics).
493
494 2004-08-16  Kenichi Handa  <handa@m17n.org>
495
496         * Version 1.1.0 released.
497
498 2004-08-13  Kenichi Handa  <handa@m17n.org>
499
500         * language.c (mlang__init): Add Dhivehi.
501
502         * m17n-gui.c (Mx, Mfreetype): Delete it.
503         (m17n_init_win): Don't initialize Mx and Mfreetype here.
504
505         * m17n-gui.h (Mfreetype, Mxft): Extern them.
506         (mfont_resize_ratio): Extern it.
507         (MDrawGlyphInfo): New member logical_width;
508         (MDrawGlyph): New type.
509         (mdraw_glyph_list): Prototype adjusted.
510
511         * m17n-X.c (xfont_open): Set type and fontp members.
512         (xft_open): Likewise.
513
514         * internal-gui.h (Mx, Mfreetype): Delete extern.
515
516         * font.h (struct MRealizedFont): New member type and fontp.
517
518         * font.c (mfont__init): Initialize Mx, Mfreetype, and Mxft.
519         (Mx, Mfreetype): Declare here.
520         (Mxft): New variable.
521         (mfont_resize_ratio): New function.
522
523         * font-ft.c (ft_open): Set type and fontp members.
524
525         * draw.c (mdraw_glyph_list): Argument type changed.  Don't set
526         glyph_code member.
527
528 2004-08-11  Kenichi Handa  <handa@m17n.org>
529
530         * font-ft.c (ft_find_metric): Call FT_Load_Glyph with
531         FT_LOAD_DEFAULT.
532
533 2004-08-06  Kenichi Handa  <handa@m17n.org>
534
535         * font-ft.c (mfont__ft_drive_otf): Fix for the case that no GSUB
536         feature to apply.
537
538         * font-flt.c (run_otf): Print debugging information if necessary.
539
540 2004-08-05  Kenichi Handa  <handa@m17n.org>
541
542         * font-ft.c (mfont__ft_drive_otf): Fix sign of g->yoff.  Support
543         positioning_type 5 and 6.  Switch simplified.
544
545 2004-08-04  Kenichi Handa  <handa@m17n.org>
546
547         * font-ft.c (mfont__ft_drive_otf): Call OTF_drive_gdef.
548
549 2004-08-02  Kenichi Handa  <handa@m17n.org>
550
551         * font.c (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
552         set val to 1 even if it is greater than 1.
553
554         * fontset.c (mfontset_modify_entry): Fix handling of the arg `how'.
555
556 2004-07-29  Kenichi Handa  <handa@m17n.org>
557
558         * font-flt.c (run_rule, run_command, mfont__flt_run): Print more
559         debugging information.
560
561         * internal.h (MDEBUG_PRINT5): New macro.
562
563         * draw.c (layout_glyphs): Don't combine a zero width glyph with
564         the previous one if the zero width glyph has left or right
565         padding.
566
567 2004-07-26  Kenichi Handa  <handa@m17n.org>
568
569         * m17n-X.c (xft_render): Pay attention to members left_padding and
570         right_padding of MGlyph.
571
572         * draw.c (visual_order): Allocate one more elements for arrays as
573         a workaround of fribidi bug.
574         (layout_glyphs): Fix previous change. Check MGlyph->combining_code
575         instead of MGlyph->bidi_sensitive.
576         (layout_glyph_string): Pay attentinon to
577         control->orientation_reversed when padding at the head or tail.
578         Fix adjustment of space glyph width.
579         (get_gstring): If cursor_width or cursor_bidi is changed, don't
580         use a cache.
581
582         * font-ft.c (mfont__ft_drive_otf): Set MGlyph->combining_code
583         instead of MGlyph->bidi_sensitive.
584
585         * internal-gui.h (MGlyph): Delete member bidi_sensitive.
586
587 2004-07-26  Kenichi Handa  <handa@m17n.org>
588
589         * draw.c (visual_order): Don't treat combined glyphs specially.
590         (layout_glyphs): Don't get metrics glyphs that are already ready.
591         Pay attention to MGlyph->bidi_sensitive.  Combine a glyph of zero
592         width with the previous one. 
593         (draw_background): Fix bar cursor position on a r2l glyph.
594
595         * font-flt.c (FontLayoutCmdOTF): Move back from internal-gui.h.
596         (run_rule): Fix place of updating cluster_begin_pos and
597         cluster_end_pos here.
598         (run_otf): Don't set left_padding.
599
600         * font-ft.c (adjust_anchor): Type of argument `code' changed.
601         Caller changed.
602         (mfont__ft_drive_otf): Renamed back from mfont__ft_drive_gsub.
603         Fix handling of GPOS.
604         (mfont__ft_drive_gpos): Delete this function.
605
606         * font.h (mfont__ft_drive_otf): Renamed back from
607         mfont__ft_drive_gsub.
608         (mfont__ft_drive_gpos): Delete extern.
609
610         * internal-gui.h (FontLayoutCmdOTF): Move back to font-flt.c.
611         (MGlyph): Delete member otf_cmd, add member bidi_sensitive.
612
613 2004-07-23  Kenichi Handa  <handa@m17n.org>
614
615         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos with glyphs of
616         the same bidi level.
617
618         * font-ft.c (mfont__ft_drive_gpos): Check bidi-level.
619
620 2004-07-22  Kenichi Handa  <handa@m17n.org>
621
622         * font-flt.c (load_flt): Treat the symbol Mend as end-of-file.
623
624 2004-07-20  Kenichi Handa  <handa@m17n.org>
625
626         * draw.c (render_glyphs): Fix checking of g->code validity.
627
628         * face.c (mface__realize): Set g.type.
629
630 2004-07-18  Kenichi Handa  <handa@m17n.org>
631
632         * Makefile.am: Prepend ${top_srcdir} to all *.la in
633         *_LIBADD/*_LDADD.
634
635         * m17n-gui.c (mframe): Print error message give by dlopen to
636         stderr.
637
638 2004-07-16  Kenichi Handa  <handa@m17n.org>
639
640         * draw.c (compose_glyph_string): Improve the way of deciding a
641         script.  For a character that doesn't have script property, use
642         the last non-latin script.
643
644         * font-ft.c (fc_list): Cancel previous change.
645         (mfont__ft_init): Add more entries in ft_to_prop_name.
646
647 2004-07-15  Kenichi Handa  <handa@m17n.org>
648
649         * draw.c (mdraw_glyph_list): Add the width of padding glyphs to
650         previous or next character glyphs.
651
652 2004-07-14  Kenichi Handa  <handa@m17n.org>
653
654         * draw.c (compose_glyph_string): Be sure to set codes for glyphs
655         of type GLYPH_SPACE.
656
657         * fontset.c (mfont__lookup_fontset): If glyph type is
658         GLYPH_SPACE, get codes for SPACE.
659
660         * internal-gui.h (Mfont): Delete extern.
661
662         * m17n-gui.h (Mfont): Delete duplicated extern.
663
664 2004-07-13  Kenichi Handa  <handa@m17n.org>
665
666         * font-ft.c (DEVICE_DELTA): New macro.
667         (adjust_anchor): New function.
668         (mfont__ft_drive_gsub): Renamed from mfont__ft_drive_otf.  Drive
669         only GSUB.
670         (mfont__ft_drive_gpos): New function.
671
672         * font-flt.c (FontLayoutCmdOTF): Moved to internal-gui.h.
673         (FontLayoutContext): Delete member `rfont'.
674         (run_otf): Set g->otf_cmd.  Call 
675         (mfont__flt_run): Don't set ctx.rfont.  Call mfont__ft_decode_otf
676         only whne HAVE_OTF is defined.
677
678         * fontset.c: Include "config.h".
679
680         * internal-gui.h (FontLayoutCmdOTF): Moved from font-flt.c.
681         (MGlyph): New member otf_cmd.
682
683         * font.h (mfont__ft_drive_gsub): Changed from mfont__ft_drive_otf.
684         (mfont__ft_drive_gpos): Extern it.
685
686         * face.c: Include "config.h".
687
688         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos.
689
690         * input-gui.c: Include "config.h".
691
692         * plist.c: Include "config.h".
693
694 2004-07-06  Kenichi Handa  <handa@m17n.org>
695
696         * m17n-gui.c, m17n-gui.h, m17n-gd.c, m17n-X.h, m17n-X.c,
697         internal-gui.h: Cancel previous changes.
698
699         * m17n-gd.h: Delete it.
700
701         * Makefile.am (libm17n_core_la_LIBADD): New variable.
702         (libm17n_core_la_LDFLAGS): Add -export-dynamic, move
703         @XML2_LD_FLAGS@ to above.
704         (libm17n_la_LIBADD): Add -ldl.
705         (libm17n_la_LDFLAGS): Add -export-dynamic.
706         (X_LD_FLAGS): Fix the order of linking.
707         (libm17n_gui_la_LIBADD): Add ${OPTIONAL_LD_FLAGS}.
708         (libm17n_gui_la_LDFLAGS): Add -export-dynamic, delete above.
709         (libm17n_X_la_LDFLAGS): Add -module.
710         (libm17n_gd_la_SOURCES): Delete m17n-gd.h.
711         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
712         (libm17n_gd_la_LDFLAGS): Add -module.
713         (include_HEADERS): Delete m17n-gd.h.
714
715 2004-06-30  Kenichi Handa  <handa@m17n.org>
716
717         * m17n-gui.c: Adjusted for the change of struct MDeviceDriver.
718         (MDeviceLibraryInterface): Delete it.
719         (register_device_library): Delete it.
720         (m17n__device_library_list): Renamed from device_library_list.
721
722         * m17n-gui.h (M17N_INIT_X, M17N_INIT_GD): New macros.
723         (m17n_init_win): Adjust prototype.
724
725         * m17n-gd.c: Adjusted for the change of struct MDeviceDriver.
726         (m17n_init_gd): New function. 
727
728         * m17n-gd.h: New file.
729
730         * m17n-X.h: Include <m17n-gui.h>.
731         (m17n_init_X): Extern it.
732         (M17N_INIT): Redefine it.
733
734         * m17n-X.c: Adjusted for the change of struct MDeviceDriver.
735         (m17n_init_X): New function.
736
737         * internal-gui.h (m17n__device_library_list): Extern it.
738         (struct MDeviceDriver): New members initialized, init, and fini.
739
740         * Makefile.am (libm17n_X_la_LIBADD): Add ${X_LD_FLAGS} and
741         @XFT2_LD_FLAGS@.
742         (libm17n_X_la_LIBADD): Delete aboves.
743         (libm17n_gd_la_SOURCES): Add m17n-gd.h.
744         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
745         (libm17n_gd_la_LDFLAGS): Delete it.
746         (include_HEADERS): Add m17n-gd.h.
747
748 2004-06-25  Kenichi Handa  <handa@m17n.org>
749
750         * Makefile.am (libm17n_X_la_LDFLAGS): Cancel previous change.
751         (libm17n_gd_la_LDFLAGS): Cancel previous change.
752
753         * m17n-gd.c (gd_render): Don't call FT_Get_Char_Index.
754
755         * font-ft.c (fc_list): If FcFontList finds no font, try
756         FcFontMatch.
757
758         * draw.c (compose_glyph_string): Terminate the last loop after
759         doing default combining if necessary.
760
761 2004-06-24  Kenichi Handa  <handa@m17n.org>
762
763         * draw.c (mdraw_glyph_list): Unref gstring->top at the tail.
764
765         * character.c (mchar_define_property): Add const to an arg.
766
767         * charset.c (mchar_define_charset): Add const to an arg.
768
769         * coding.c (MCodingSystem): Add const to an arg or decoder.
770         (finish_decoding): Add const to an arg.
771         (decode_coding_charset, decode_coding_utf_8)
772         (decode_coding_utf_16, decode_coding_utf_32)
773         (decode_coding_iso_2022, decode_coding_sjis)
774         (mconv_define_coding): Likewise.
775
776         * m17n-X.c (xft_find_metric): Delete unused variable.
777
778         * m17n-core.h (mchar_define_property, mtext_from_data): Adjust
779         prototypes.
780
781         * m17n.h (mchar_define_charset, mconv_define_coding): Adjust
782         prototypes.
783
784         * mtext.c (count_utf_8_chars, count_utf_16_chars)
785         (mtext__from_data, mtext_from_data): Add `const' to an arg.
786
787         * mtext.h (mtext__from_data): Ajust prototype.
788
789 2004-06-23  Kenichi Handa  <handa@m17n.org>
790
791         * draw.c (compose_glyph_string): Always get glyph codes by
792         mface__for_char.
793         (mdraw_glyph_info): Set info->glyph_code and info->logical_width.
794         (mdraw_glyph_list): New function.
795
796         * font-flt.c (mfont__flt_run): Be sure to call
797         rfont->driver->encode_char.
798
799         * font-ft.c (ft_find_metric): Don't call FT_Get_Char_Index.
800         (ft_encode_char): Delete arg C.
801         (ft_render): Don't call FT_Get_Char_Index.
802
803         * font.c (mfont__encodable_p): Delete it.
804         (mfont__encode_char): Be sure to call rfont->driver->encode_char.
805
806         * font.h (struct MFontDriver): Delete arg C of encode_char.
807         (mfont__encodable_p): Delete extern.
808
809         * m17n-X.c (xfont_encode_char): Delete arg C.
810         (xft_find_metric): Don't cal FT_Get_Char_Index.
811         (xft_render): Likewise.
812
813         * m17n-gui.h (MDrawGlyphInfo): New members glyph_code and
814         logical_width.
815         (mdraw_glyph_list): Extern it.
816
817         * Makefile.am (libm17n_X_la_LDFLAGS): Don't include ${X_LD_FLAGS}.
818
819 2004-06-22  Kenichi Handa  <handa@m17n.org>
820
821         * m17n-gui.h (mfontset_lookup): Extern it.
822
823         * m17n-gui.c (m17n_init_win): Delete unnecessary printing.
824
825         * fontset.c (realize_fontset_elements)
826         (free_realized_fontset_elements, update_fontset_elements): New
827         functions.
828         (mfont__realize_fontset): Call realize_fontset_elements.
829         (mfont__free_realized_fontset): Call free_realized_fontset_elements.
830         (mfont__lookup_fontset): If a fontset was modified, update
831         the realized fontset.
832         (mfontset_modify_entry): Increment fontset->tick.
833         (mfontset_lookup): New function.
834
835 2004-06-21  Kenichi Handa  <handa@m17n.org>
836
837         * font-ft.c (mfont__ft_parse_name): Cast the arg to FcNameParse.
838
839         * mtext.c (mtext_dup, mtext_cat, mtext_ncat, mtext_cpy)
840         (mtext_ncpy, mtext_duplicate): Pay attention to the case that the
841         length of source text 0.
842
843 2004-06-21  Kenichi Handa  <handa@m17n.org>
844
845         * mtext.c (INC_POSITION): Use CHAR_UNITS_BY_HEAD_UTF16.
846         (compare): Pay attention to format other than utf-8.
847         (copy): Delete this function.
848         (count_by_utf_8, count_by_utf_16, insert): New functions.
849         (count_utf_16_chars): Fix handling of a surrogate pair.
850         (find_char_forward, find_char_backward): Likewise.
851         (mtext__from_data): Delete unnecessary check.  Fix number of
852         allocated bytes.
853         (mtext_from_data): Don't count items.
854         (mtext_ref_char): Optimize the code.
855         (mtext_set_char): Pay attention to format other than utf-8.
856         (mtext_cat_char): Likewise.
857         (mtext_dup): Don't call copy, instead do allocation here.
858         (mtext_cat): Call insert instead of copy.
859         (mtext_ncat): Likewise.
860         (mtext_cpy): Delete character at first and call insert instead of
861         copy.
862         (mtext_ncpy): Likewise.
863         (mtext_copy): Likewise.
864         (mtext_duplicate): Call insert instead of copy.
865         (mtext_del): Pay attention to format other than utf-8.
866         (mtext_ins): Simply call insert.
867         (mtext_ins_char): Pay attention to format other than utf-8.
868         (mtext_tok): Call insert instead of copy.
869         (mtext_text): Call UNIT_BYTES.
870
871         * textprop.c (mtext__adjust_plist_for_change): New function.
872
873         * character.h (USHORT_SIZE, UINT_SIZE, UNIT_BYTES): New macros.
874         (CHAR_UNITS_UTF16, CHAR_UNITS): Simplified.
875         (CHAR_UNITS_AT): Fix typo.
876         (CHAR_UNITS_BY_HEAD): Fix typo.
877         (STRING_CHAR_AND_UNITS): Fix typo.
878
879         * internal.h (MTEXT_READ_ONLY_P): New macro. 
880
881         * mtext.h (mtext__replace): Delete the extern.
882         (mtext__adjust_foramt): Adjust prototype.
883
884         * plist.c (mplist_deserialize): Adjust the format of MT to utf-8
885         if possible.  Otherwise make a copy of mmt.
886
887         * coding.c (mconv_decode, mconv_gets): Adjust the format of MT to
888         utf-8.
889
890 2004-06-18  Kenichi Handa  <handa@m17n.org>
891
892         * character.h (CHAR_STRING_UTF16): Fix syntax.
893
894 2004-06-16  Kenichi Handa  <handa@m17n.org>
895
896         * Makefile.am (libm17n_gd_la_LIBADD): Delete it.
897         (libm17n_X_la_LIBADD): Delete it.
898         (libm17n_gd_la_LDFLAGS): Don't include @GD_LD_FLAGS@.
899
900         * m17n-X.c (device_open): Add parens in `if' condition.
901
902         * mtext.c (INC_POSITION): Handle format other than utf8 and utf16.
903         (DEC_POSITION): Likewise.
904         (compare): Fix case that mt1->format is MTEXT_FORMAT_UTF_8.
905
906 2004-06-15  Kenichi Handa  <handa@m17n.org>
907
908         * fontset.c (mfont__lookup_fontset): Fix selection of font groups
909         by language.
910
911         * draw.c (compose_glyph_string): If langauge is specified, call
912         mface__for_chars even if a text is all latin.  Fix condition for
913         setting non_ascii_found.
914
915         * m17n-X.c (xft_find_metric): Fix setting of g->lbrearing.
916
917         * m17n.h (minput_char_to_key): Delete extern.
918
919         * m17n-gui.h (minput_event_to_key): Cancel previous change.
920
921         * m17n-gui.c (null_device_open): Set several members of frame.
922
923 2004-06-14  Kenichi Handa  <handa@m17n.org>
924
925         * m17n-gui.h (minput_event_to_key): Delete extern.
926
927         * symbol.h (struct MSymbolStruct): Renamed from MSymbol.
928
929         * m17n-core.h (MSymbol): Defined as "struct MSymbolStruct *".
930
931         * Makefile.am (AM_CPPFLAGS): Refer to @M17NDIR@.
932
933 2004-06-08  Kenichi Handa  <handa@m17n.org>
934
935         * character.c (mchar_put_prop): Don't increment the ref-count of
936         record->table.
937
938 2004-06-04  Kenichi Handa  <handa@m17n.org>
939
940         * m17n-core.c (mdebug__register_object): New function.
941         (mdebug__unregister_object): Likewise.
942
943         * internal.h (mdebug__register_object, mdebug__unregister_object):
944         Extern them.
945         (M17N_OBJECT_REGISTER, M17N_OBJECT_UNREGISTER): Call them
946         respectively.
947
948         * charset.c (mcharset__load_from_database): Don't call
949         mconv__register_charset_coding here.
950
951         * coding.c (find_coding): Get a real name from an element of
952         coding_definition_list.
953         (mconv__register_charset_coding): Set the real name at the top of
954         param.
955         (mcoding__load_from_database): Likewise.
956         (mconv_list_codings): Adjusted for the above change.
957
958 2004-06-03  Kenichi Handa  <handa@m17n.org>
959
960         * coding.c (find_coding): Find by canonicalized name.  Don't have
961         to modify the element of coding_definition_list by
962         mplist__from_plist.
963         (mconv__define_coding_from_charset): Delete it.
964         (mconv__register_charset_coding): Canonicalize sym.
965         (mcoding__load_from_database): Register plist modified by
966         mplist__from_plist.
967
968         * coding.h (mconv__define_coding_from_charset): Don't extern it.
969
970         * font-ft.c (ft_open): Fix setting of rfont->descent.
971
972 2004-06-02  Kenichi Handa  <handa@m17n.org>
973
974         * font.c (enum xlfd_field_idx): Moved from m17n-X.c.
975         (xlfd_parse_name): Merge split_font_name and xfont_parse_name.
976         (xlfd_unparse_name): Renamed from xfont_build_name.
977         (mfont__init): Initialized Mfontconfig.
978         (mfont__free_realized): Unconditionally unref rfont->info.
979         (mfont__select): Free `this' if it's not best.
980         (mfont__open): Don't check frame->realized_font_list.
981         (mfont__parse_name_into_font): New function.
982         (Mfontconfig): New variable.
983         (mfont_from_name): Call mfont_parse_name.
984         (mfont_name): Call mfont_unparse_name.
985         (mdebug_dump_font): Likewise.
986
987         * font.h (struct MFontDriver): Delete members parse_name and
988         build_name.
989         (mfont__ft_parse_name, mfont__ft_unparse_name): Extern them.
990         (mfont__parse_name_into_font): Extern it.
991
992         * font-ft.c: Include "symbol.h".
993         (close_ft): Unconditionally free filename and charmap_list of
994         ft_into.
995         (ft_open): Duplicate base->filename.  Increment ref-count of
996         ft_info->charmap_list.  Free ft_info->charmap_list and
997         ft_info->filename on error.
998         (mfont__ft_parse_name, mfont__ft_unparse_name): New functions.
999
1000         * m17n-X.c (xfont_driver): Don't include xfont_parse_name and
1001         xfont_build_name.
1002         (enum xlfd_field_idx): Moved to font.c.
1003         (split_font_name, build_font_name): Likewise.
1004         (build_font_list): Call mfont__parse_name_info_font.
1005         (xfont_open): Call mfont__unparse_name.  Free name.
1006         (xfont_parse_name, xfont_build_name): Moved to font.c
1007         (xft_select): Prototype deleted.
1008         (device_open): Check HAVE_FREETYPE on using mfont__ft_driver.
1009         Call mfont_pase_name.
1010
1011         * m17n-gui.c (free_frame): Unref frame->font_driver_list.
1012         (m17n_fini_win): Add check HAVE_FREETYPE on using null_interface.
1013         (mframe): Likewise.
1014
1015         * m17n-gui.h (mfont_parse_name, mfont_unparse_name, Mfontconfig):
1016         Extern them.
1017
1018         * Makefile.am (linkgui_LDADD): Add libm17n-X.la and libm17n-gd.la.
1019
1020 2004-06-01  Kenichi Handa  <handa@m17n.org>
1021
1022         * fontset.c (mfontset_modify_entry): Pay attention to the case
1023         that fontset->font_spec_list is NULL.
1024
1025 2004-05-31  Kenichi Handa  <handa@m17n.org>
1026
1027         * m17n-gui.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
1028
1029         * input.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
1030
1031         * font.c (mfont__select): Print score the a font for debugging.
1032
1033         * Makefile.am (libm17n_la_LIBADD): Delete -ldl.
1034
1035         * coding.c (reset_coding_sjis): Check kanji and kana instead of
1036         kanji_sym and kana_sym.
1037
1038 2004-05-28  Kenichi Handa  <handa@m17n.org>
1039
1040         * Makefile.am (VINFO): New variable.
1041         (libm17n_core_la_LDFLAGS, libm17n_la_LDFLAGS)
1042         (libm17n_gd_la_LDFLAGS): Include ${VINFO}.
1043
1044 2004-05-27  Kenichi Handa  <handa@m17n.org>
1045
1046         The following chanages are to make device dependent functions
1047         accessible only from MDeviceDriver structure, and to add GD and
1048         null device drivers.  Font drivers get also device dependent.
1049
1050         * m17n.c (m17n_init): Increament shell_initialized.
1051         (m17n_fini): Decremented shell_initialized.
1052
1053         * m17n-misc.h (enum MErrorCode): New element MERROR_GD.
1054
1055         * m17n-gui.h (Mdevice, Mdisplay, Mscreen, Mdrawable, Mdepth)
1056         (Mwidget, Mcolormap, Mx): Extern them.
1057
1058         * m17n-gui.c: Include <dlfcn.h> and "config.h".
1059         (free_frame): Call frame->driver->close instead of
1060         mwin__close_device.
1061         (DLOPEN_SHLIB_EXT): New macro.
1062         (MDeviceLibraryInterface): New type.
1063         (device_library_list): New variable.
1064         (register_device_library): New function.
1065         (null_device): New variable.
1066         (null_device_close, null_device_get_prop)
1067         (null_device_realize_face, null_device_free_realized_face): New
1068         function.
1069         (null_driver): New variable.
1070         (null_device_init, null_device_fini, null_device_open): New
1071         functions.
1072         (null_interface): New variable.
1073         (Mfreetype, Mdevice): Declare them.
1074         (m17n_init_win): Increment win_initialized.  Initialize Mx, Mgd,
1075         Mfreetype, Mdevice, Mdisplay, Mscreen, Mdrawable, Mdevice, and
1076         Mwin__Close_Device.  Register drivers for Mx and Mgd.
1077         (m17n_fini_win): Decremented win_initialized.  Call "fini"
1078         function of all opened devices.  Don't call mwin__fini.
1079         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap):
1080         Declare them here.
1081         (mframe): Handle Mdevice key of PLIST.
1082         (mframe_get_prop): Call frame->device->get_prop instead of
1083         mwin__device_get_prop.
1084
1085         * m17n-gd.c: New file.
1086
1087         * m17n-core.h (M17NLIB_MAJOR_VERSION, M17NLIB_MINOR_VERSION)
1088         (M17NLIB_PATCH_LEVEL, M17NLIB_VERSION_NAME): Updated to 1.1.0.
1089
1090         * m17n-core.c (m17n_init_core): Increate core_initialized.
1091         (m17n_fini_core): Decremented core_initialized.
1092
1093         * m17n-X.h (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget)
1094         (Mcolormap): Don't extern them here.
1095
1096         * m17n-X.c (FRAME_DEVICE): New macro.
1097         (FRAME_DISPLAY, FRAME_SCREEN, FRAME_CMAP): Use FRAME_DEVICE.
1098         (free_display_info): Use MPLIST_DO.
1099         (free_device): Free rface->info.
1100         (xft_close): Delete it.
1101         (device_init): Renamed from mwin__init.
1102         (device_fini): Renamed from mwin__fini.
1103         (device_open): Renamed from mwin__open_device.
1104         (x_driver): New variable.
1105         (MXFontInfo): Delete member frame, add member display.
1106         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap, Mxim):
1107         Don't declare them here.
1108
1109         * internal-gui.h (MDeviceType): New enum.
1110         (MWDefice): Delete it.
1111         (struct MFrame): Change type of device to void *.  New members
1112         device_type, driver, font_driver_list.
1113         (M_CHECK_WRITABLE, M_CHECK_READABLE): New macros.
1114         (MDeviceDriver): New type.
1115         (Mx, Mgd, Mfreetype): Extern them.
1116         (mwin__XXX): Delete all of them.
1117
1118         * input-gui.c (win_create_ic): Call frame->driver->XXX instead of
1119         mwin__XXX.
1120         (win_destroy_ic): Likewise.
1121         (adjust_window_and_draw): Likewise.
1122         (win_callback): Likewise.
1123         (Mxim): Declare it here.
1124         (minput_event_to_key): Call M_CHECK_READABLE.
1125
1126         * fontset.c (mfont__lookup_fontset): Delete local variable
1127         font_group.
1128
1129         * font.h (struct MFontDriver): Delete member close, add members
1130         parse_name and build_name.
1131         (mfont__driver_list): Delete extern.
1132         (mfont__close): Delete extern.
1133
1134         * font.c (mfont__init): Don't set mfont__driver_list.
1135         (mfont__fini): Don't unref mfont__driver_list.
1136         (mfont__select): Try font drivers in frame->font_driver_list.  Set
1137         driver member of a realized font.
1138         (mfont__close): Delete it.
1139         (mfont_from_name, mfont_name, mdebug_dump_font): Call driver
1140         functions of the default frame.
1141
1142         * font-ft.c (close_ft): Check ft_info->ft_face and work
1143         differently.
1144         (add_font_info): Allocate ft_info by M17N_OBJECT.
1145         (ft_close): Delete it.
1146         (mfont__ft_driver): Don't set ft_close.
1147         (ft_select): Increment ref-count of best_font.
1148         (ft_open): Decremented ref-count of base.  On error, call
1149         FT_Done_Face and free ft_info.
1150         (ft_find_metric): Always use XXX_MONO in load_flags.
1151         (ft_render): Fix setting of width.  Call
1152         frame->driver->draw_points instead of mwin__draw_points.
1153         (ft_to_prop): Don't set mfont__driver_list.
1154         (mfont__ft_fini): Just unref ft_info.
1155
1156         * face.c (mface__init): Exchange foreground and background of
1157         mface__default.  Call mface_put_prop to set hline of
1158         mface_underline,
1159         (mface__realize): Call frame->driver->XXX instead of mwin__XXX.
1160         (mface__free_realized): Don't call mwin__free_realized_face.
1161
1162         * draw.c (Mdepth): Don't declare it here.
1163         (draw_background): Call frame->driver->XXX instead of mwin__XXX.
1164         (render_glyphs, render_glyph_string): Likewise.
1165         (mdraw__init): Don't set Mdepth.
1166         (mdraw_text, mdraw_image_text, mdraw_text_with_control): Call
1167         M_CHECK_WRITABLE.
1168         (mdraw_text_per_char_extents): Return 0 on success and -1 on
1169         error.
1170         (mdraw_text_items): Check FRAME is writable.
1171         (mdraw_per_char_extents): Implement body.
1172
1173         * Makefile.am (lib_LTLIBRARIES): Include libm17n-gui.la and
1174         libm17n-gd.la.
1175         (OPTIONAL_LD_FLAGS): Include @FONTCONFIG_LD_FLAGS@.
1176         (GUI_SOURCES): Delete it.
1177         (libm17n_X_la_SOURCES): Don't include ${GUI_SOURCES}.
1178         (libm17n_gui_la_SOURCES, libm17n_gui_la_LIBADD)
1179         (libm17n_gui_la_LDFLAGS, libm17n_gd_la_SOURCES)
1180         (libm17n_gd_la_LIBADD, libm17n_gd_la_LDFLAGS): New targets.
1181         (linkgui_LDADD): Set to libm17n-gui.la
1182         (linkgui_LDFLAGS): New target.
1183         (SRC): Include ${libm17n_gui_la_SOURCES} and
1184         ${libm17n_gd_la_SOURCES}.
1185
1186 2004-05-24  Kenichi Handa  <handa@m17n.org>
1187
1188         * draw.c (draw_background): Don't draw background even if
1189         rface->face.property[MFACE_BACKGROUND] is not Mnil.
1190
1191 2004-05-22  Kenichi Handa  <handa@m17n.org>
1192
1193         * m17n-X.c (xft_open_font): Fix anti_alias setting.
1194
1195 2004-05-20  Kenichi Handa  <handa@m17n.org>
1196
1197         * m17n-gui.h (MFaceHookFunc): Change this function type to void.
1198
1199         * m17n-gui.c: Include "plist.h".
1200         (mframe): If PLIST is NULL, initialize it to emply plist.
1201
1202         * m17n-X.c (build_font_list): Don't set property[MFONT_TYPE].
1203         (xft_driver): New variable.
1204         (xft_select, close_xft, xft_open_font, xft_open, xft_close)
1205         (xft_find_metric, xft_render): New function.
1206         (mwin__init): Adjusted for the new mfont__driver_list.
1207         (mwin__open_device): Assume arg PARAM is not NULL.  Push a newly
1208         generated face to PARAM.
1209         (mwin__realize_face): Fix setting of box colors.  Don't call hook
1210         function here.
1211         (mwin__draw_hline): New function.
1212         (mwin__xft_close, mwin__xft_open, mwin__xft_get_metric)
1213         (mwin__xft_render): Delete these function.
1214
1215         * internal-gui.h (struct MFrame): New member tick.
1216         (struct MGlyphString): New member tick.
1217         (mwin__draw_rect, mwin__draw_empty_boxes): Extern them.
1218         (mwin__xft_open, mwin__xft_close, mwin__xft_get_metric)
1219         (mwin__xft_render): Delete extern.
1220
1221         * fontset.c (mfont__lookup_fontset): Make the code simpler.
1222         (mfontset): Always increment the reference count of returned
1223         object.
1224
1225         * font-ft.c (mfont__ft_fini): Don't include <otf.h> here.
1226         (MFTInfo): Moved to font.h.
1227         (ft_iso8859_1_font_list): Delete this variable.
1228         (set_font_info): Don't set font->property[MFONT_TYPE].
1229         (set_font_info): Don't udpate ft_iso8859_1_font_list.
1230         (add_font_info): Change type to void.
1231         (fc_list): Change anme from xft_list.  Caller changed.  Include
1232         FC_FOUNDRY and FC_PIXEL_SIZE in FcObjectSet.
1233         (mfont__ft_driver): Change name from ft_driver.  Caller changed.
1234         (ft_select): Check HAVE_FONTCONFIG instead of HAVE_XFT2.
1235         (close_ft): Don't call mwin__xft_close.  Unref
1236         ft_info->extra_info.
1237         (ft_open): Don't setup ft_info->fontname.  Don't call
1238         mwin__xft_open.
1239         (ft_find_metric): Don't call mwin__xft_get_metric.
1240         (ft_encode_char): Call rfont->driver->open instead of ft_open.
1241         (ft_render): Don't check HAVE_XFT2.  Don't call mwin__xft_render.
1242         (mfont__ft_init): Adjusted for new mfont__driver_list.
1243         (mfont__ft_fini): Don't unref ft_iso8859_1_font_list.
1244
1245         * font.c (mfont__driver_list): Make it MPlist.
1246         (mfont__init): Adjust initialization of mfont__driver_list.
1247         (mfont__fini): Free mfont__driver_list.
1248         (mfont__set_spec_from_face): Don't set spec->property[MFONT_TYPE].
1249         (mfont__select): Adjusted for the new mfont__driver_list.
1250
1251         * font.h (enum MFontProperty): Delete MFONT_TYPE.
1252         (mfont__drirver_list): Adjust prototype.
1253         (MFTInfo): Move to here from fron.c.  Deleve member fontname.
1254
1255         * face.h (struct MFace): Delete member realized_face_list, add
1256         member frame_list.
1257         (struct MRealizedFace): Delete member need_update
1258         andnofont_rface, add member non_ascii_list.
1259         (mface__update_frame_face): Extern it.
1260
1261         * face.c (hline_prop_list, box_prop_list, noop_hook): New
1262         variables.
1263         (get_hline_create, get_box_create): New functions.
1264         (find_realized_face): Cancel previous change.  Arg RFONT deleted.
1265         Use memcmp.
1266         (free_face): Cancep previous change.  Free face->frame_list.
1267         (serialize_hline): Do nothing if hline->width is zero.
1268         (serialize_box): Do nothing if box->width is zero.
1269         (mface__init): Setup all properties of mface__default.
1270         (mface__fini): Free hline_prop_list and box_prop_list.
1271         (mface__realize): Cancel previous change.  Update
1272         face->frame_list.  Setup rface->non_ascii_list.
1273         (mface__for_chars): Update rface->non_ascii_list.
1274         (mface__free_realized): Free rface->non_ascii_list.
1275         (mface__update_frame_face): New function.
1276         (mface): Initialize face->frame_list.
1277         (mface_copy): Likewise.  Just copy MFACE_HLINE and MFACE_BOX
1278         properties.
1279         (mface_merge): Likewise.
1280         (mface_put_prop): If key is Mhline or Mbox, get value by
1281         get_hline_create or get_box_create respectively.
1282         (mface_put_prop): Update frame->tick and call
1283         mface__update_frame_face if necessary.
1284         (mface_update): Do nothing if func is noop_hook.
1285
1286         * draw.c (render_glyphs): If a font is not found, use
1287         mwin__draw_empty_boxes.
1288         (alloc_gstring): Initialize gstring->tick.
1289         (get_gstring): Check gstring->tick.
1290
1291 2004-05-17  Kenichi Handa  <handa@m17n.org>
1292
1293         * face.c (find_realized_face): Return value changed.  If RFONT is
1294         NULL, avoid unnecessary checking.
1295         (free_face): Free face->realized_face_list.
1296         (mface__realize): Adjusted for the change of find_realized_face.
1297         If it returns a realized face that needs update, free it and
1298         realize a new one.  Push a new realized face to
1299         frame->realized_face_list instead of appending.
1300         (mface__for_chars): Adjusted for the change of find_realized_face.
1301         Short cut if the required font is in rface->ascii_rface.
1302         (mface_put_prop): Free old value if necessary.  Set need_update
1303         member of realized faces to 1.
1304
1305         * face.h (struct MFace): Delete member tick, add member
1306         realized_face_list.
1307         (struct MRealizedFace): Delete member tick, add member
1308         need_update.
1309
1310 2004-05-13  Kenichi Handa  <handa@m17n.org>
1311
1312         * m17n-X.c (mwin__xft_open): Destroy unnecessary patterns.
1313
1314 2004-05-12  Kenichi Handa  <handa@m17n.org>
1315
1316         * internal-gui.h (mwin__xft_open): Arguemnt name changed.
1317
1318         * m17n-X.c (mwin__xft_open): Argument changed to fontname and
1319         parse it XftNameParse.
1320
1321         * font-ft.c (MFTInfo) [HAVE_XFT2]: New member fontname.
1322         (all_fonts_scaned): New variable.
1323         (set_font_info): FAMILY may be Mnil.
1324         (add_font_info): Argument changed.
1325         (xft_list): Call add_font_info in it.
1326         (ft_list): Likewise.
1327         (ft_select): Make it work in the case family is Mnil.
1328         (ft_open) [HAVE_XFT2]: Setup ft_info->fontname.
1329         (mfont__ft_fini): Set all_fonts_scaned to 0.
1330
1331         * fontset.c (mfont__lookup_fontset): Don't repeatedly try a font
1332         that is failed to open.
1333
1334 2004-05-10  Kenichi Handa  <handa@m17n.org>
1335
1336         * m17n-X.c (mwin__xft_render): Don't use anti-alias if the
1337         device's depth is 1 (i.e. monochrome).
1338
1339         * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
1340         to work around the problem of libtool.
1341
1342         * font-ft.c: Include <freetype/ftbdf.h>.
1343         (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
1344         variables.
1345         (mfont__ft_init): Initialize them.
1346         (ft_iso8859_1_font_list): New variable.
1347         (set_font_info): Detect a font containing iso8859-1 glyphs and
1348         register it in ft_iso8859_1_font_list.  If the font is not
1349         scalable, assume it as BDF or PCF font and setup SIZE and RESY
1350         properties of the font from its properties.
1351         (add_font_list): If the font is not scalable, check if it is BDF
1352         or PCF font.  If not, ignore it.
1353         (ft_select): If FAMILY is Mnil, return NULL only if the requested
1354         registry is not iso8859-1.
1355         (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
1356         ft_iso8859_1_font_list.
1357         (ft_find_metric): If the font is not scalable, assume it as BDF
1358         or PCF, and get a metric from its properties.
1359         (mfont__ft_fini): Free ft_iso8859_1_font_list.
1360
1361 2004-05-07  Kenichi Handa  <handa@redhat.m17n.org>
1362
1363         * Makefile.am (libm17n_la_LIBADD): Include -ldl.
1364         (libm17n_la_LDFLAGS): Delete it.
1365         (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
1366         (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
1367
1368 2004-05-06  Kenichi Handa  <handa@m17n.org>
1369
1370         * draw.c (compose_glyph_string): Fix previous change.
1371
1372 2004-04-30  Kenichi Handa  <handa@m17n.org>
1373
1374         * font-ft.c (ft_list): Delete unused variable `result'.
1375         (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
1376
1377 2004-04-27  Kenichi Handa  <handa@m17n.org>
1378
1379         * m17n-X.c: Include config.h
1380         [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
1381         (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
1382         (MWDevice) [HAVE_XFT2]: New member xft_draw.
1383         (FRAME_CMAP, FRAME_VISUAL): New macros.
1384         (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
1385         (xfont_driver): Make it static.
1386         (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
1387         (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
1388         info->xft_color_back.
1389         (MXftFontInfo) [HAVE_XFT2]: New type.
1390         (mwin__xft_close) [HAVE_XFT2]: New function.
1391         (mwin__xft_open) [HAVE_XFT2]: New function.
1392         (mwin__xft_get_metric) [HAVE_XFT2]: New function.
1393         (mwin__xft_render) [HAVE_XFT2]: New function.
1394
1395         * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
1396         (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
1397         (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
1398         externs.
1399
1400         * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
1401
1402         * font-ft.c: Don't include FT_FREETYPE_H here.
1403         [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
1404         (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
1405         (MFTInfo): New member charmap_index.
1406         (MFTInfo) [HAVE_XFT2]: New member xft_info.
1407         (check_otf_filename): Renamed from check_filename.  Return value
1408         changed.
1409         (ft_set_property): This function deleted.
1410         (set_font_info): New function.
1411         (add_font_list): Argument changed.  Add multiple fonts.
1412         (xft_list) [HAVE_XFT2]: New function.
1413         (ft_list) [not HAVE_XFT2]: New function.
1414         (ft_select): Add code for Xft.
1415         (close_ft): Likewise.
1416         (ft_open): Likewise.
1417         (ft_find_metric): Likewise.
1418         (ft_encode_char): Likewise.
1419         (ft_render): Likewise.
1420
1421         * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
1422
1423 2004-04-26  Kenichi Handa  <handa@m17n.org>
1424
1425         * textprop.c (mtext_attach_property): Declare the return type as
1426         `int'.
1427
1428 2004-04-21  Kenichi Handa  <handa@m17n.org>
1429
1430         * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
1431
1432 2004-04-09  Kenichi Handa  <handa@m17n.org>
1433
1434         * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
1435         seq_to.
1436         (load_command): Setup above members.
1437
1438 2004-04-05  Kenichi Handa  <handa@m17n.org>
1439
1440         * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
1441
1442 2004-03-30  Kenichi Handa  <handa@m17n.org>
1443
1444         * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
1445         >= 0x10000.
1446
1447         * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
1448         (M17NLIB_VERSION_NAME): Changed to 1.0.2.
1449
1450 2004-03-29  Kenichi Handa  <handa@m17n.org>
1451
1452         * Version 1.0 Patch Level 2 released.
1453
1454 2004-03-29  Kenichi Handa  <handa@m17n.org>
1455
1456         * charset.c (make_charset): Set charset->fully_loaded and
1457         charset->simple correctly.  Don't try to get charset->min_char and
1458         charset->max_char for a charset of method subset and superset.
1459         Don't load a mapping file here.
1460         (mcharset__init): Set unified_max.
1461         (mcharset__load_from_database): Free a working plist.
1462
1463         * coding.c (mcoding__fini): Free all malloced data.
1464
1465         * input-gui.c (win_create_ic): Set control.as_image for preediting
1466         to 0.
1467
1468         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
1469         `count') to initialize the array.
1470
1471         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
1472         M17N_OBJECT_UNREF.
1473
1474         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
1475         rectangle.
1476         (mwin__create_window): Fix bug of setting a background pixel of a
1477         new window.
1478         (mwin__adjust_window): Clear the window before drawing.
1479
1480         * m17n-core.c (mdebug__report_object): Free array->objectes if
1481         necessary.
1482         (m17n_init_core): Don't set report_header_printed to 0 here.
1483         Fix debugging information.
1484         (m17n_fini_core): Set report_header_printed to 0 here.
1485
1486         * m17n-core.h (mplist_deserialize): Extern it.
1487
1488         * m17n-gui.c (m17n_fini_win): Fix debugging information.
1489
1490         * m17n.c (m17n_fini): Fix debugging information.
1491
1492         * mtext.c (mtext__adjust_foramt): New function.
1493
1494         * mtext.h (mtext__adjust_foramt): Extern it.
1495
1496         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
1497
1498         * plist.h (mplist__deserialize): Don't extern it.
1499
1500         * symbol.c (msymbol__fini): Set freed_symbols to 0.  Set all
1501         elements of symbol_table to NULL.  Report about created and freed
1502         symbols if MDEBUG_FINI is set.
1503
1504 2004-03-22  Kenichi Handa  <handa@m17n.org>
1505
1506         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
1507
1508         * m17n.c (m17n_init): Fix the way of checking merror_code.
1509
1510         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
1511
1512 2004-03-22  Kenichi Handa  <handa@m17n.org>
1513
1514         * fontset.c (realize_font_group): Adjust the font size by
1515         mfont__resize before selecting a font.
1516
1517         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
1518
1519 2004-03-19  Kenichi Handa  <handa@m17n.org>
1520
1521         * Version 1.0 Patch Level 1 released.
1522
1523 2004-03-19  Kenichi Handa  <handa@m17n.org>
1524
1525         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
1526
1527         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
1528
1529 2004-03-19  Kenichi Handa  <handa@m17n.org>
1530
1531         Re-apply the changes forgotten in the released version.
1532
1533         * charset.c (mcharset__load_from_database): Call
1534         mchar_define_charset.
1535
1536         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
1537         (mconv_encode_range): Put Mcoding text property.
1538
1539 2004-03-18  Kenichi Handa  <handa@m17n.org>
1540
1541         * draw.c (Mdepth): New variable.
1542         (visual_order): Delete unused local var `pos'.
1543         (compose_glyph_string): Fix for the case that gstring->glyphs is
1544         realloced.  Stop generating glyphs at TO.  Fix handling of
1545         control charaters.
1546         (layout_glyphs): Get metrics of all glyphs in advance.  Set
1547         lbearing and rbearing of base of composition glyph correctly.
1548         Handle left-overhang glyphs correctly.
1549         (alloc_gstring): New arg frame.  Set gstring->anti_alias.  Caller
1550         changed.
1551         (dump_combining_code): Change the defualt off_x character to ".".
1552         (mdraw__init): Initialize Mdepth.
1553
1554         * face.c (work_gstring): New variable
1555         (mface__init): Initialize work_gstring.
1556         (mface__fini): Free work_gstring.glyphs.
1557         (mface__realize): Don't handle videomode property here.  Adjusted
1558         for the change of mfont__get_metric.
1559         (mface__for_chars): Adjusted for the change of mfont__get_metric.
1560
1561         * face.h (enum face_gc): Moved to m17n-X.c.
1562
1563         * font.h (struct MFontDriver): Arguments of find_metric changed.
1564         (mfont__select): Prototype adjusted.
1565         (mfont__get_metric): Likewise.
1566         (mfont__ft_drive_otf): Likewise.
1567         (mfont__flt_run): Likewise.
1568         
1569         * font.c (mfont__select): New argument layouter.  If layouter is
1570         different in the registered font, make a new copy of realized
1571         font.
1572         (mfont__get_metric): Argument changed.  Get metrics of multiple
1573         glyphs.
1574         (mfont_find): Call mfont__select with layouter as Mnil.
1575
1576         * font-flt.c (FontLayoutContext): New member rfont.
1577         (run_otf): Adjusted for the change of mfont__ft_drive_otf.
1578         (mfont__flt_run): Argument changed.  Initialize ctx.rfont.
1579
1580         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
1581         multiple glyphs.
1582         (NUM_POINTS): New macro.
1583         (MPointTable): New type.
1584         (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
1585         (mfont__ft_drive_otf): New argument rfont.
1586
1587         * fontset.c (realize_font_group): Adjusted for the changed of
1588         mfont__select.
1589         (check_fontset_element): This function deleted.
1590
1591         * input-gui.c (adjust_window_and_draw): Locate a preedit window
1592         off the parent window if the preedit text is zero length.
1593
1594         * internal-gui.h (struct MFrame): New members foreground,
1595         background, videomode, font.
1596         (struct MGlyphString): New member anti_alias.
1597         (MDrawPoint): New type.
1598         (mwin__draw_bitmap): Prototype deleted.
1599         (mwin__draw_points): Prototype added.
1600
1601         * m17n-gui.h (MDrawControl): New member anti_alias.
1602
1603         * m17n-gui.c (free_frame): Free frame->font.
1604         (mframe): Set the fontset of frame->face to the default fontset.
1605
1606         * m17n-X.c (RGB_GC): New type.
1607         (enum gc_index): Renamed from enum face_gc.  Member names changed.
1608         (GCInfo): New typel
1609         (struct MWDevice): Members foreground and background deleted.  New
1610         member scratch_gc, gc_list.
1611         (DEFAULT_FONT, FALLBACK_FONT): New macros.
1612         (free_device): Free GCs in device->gc_list.
1613         (get_rgb_gc): New function.
1614         (get_gc): Renamed and argument changed from get_color.
1615         (get_gc_for_anti_alias): New function.
1616         (xfont_find_metric): Arguments changed.  Get metrics of multiple
1617         glyphs.
1618         (set_region): Argument changed.  Caller changed.
1619         (xfont_render): Allways set a font in gc.
1620         (x_error_handler, x_io_error_handler): Define only if
1621         X_SET_ERROR_HANDLER is defined.
1622         (mwin__open_device): Create device->scratch_gc.  Set members
1623         foreground, background, and videomode of frame.  Call
1624         XSetErrorHandler and XSetIOErrorHandler only if
1625         X_SET_ERROR_HANDLER is defined.
1626         (struct gc_list): Deleted.
1627         (REGISTER_GC, UNREGISTER_GC): These macros deleted.
1628         (mwin__realize_face): Adjusted for the change of the format of
1629         rface->info and the charge of set_region.
1630         (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
1631         (mwin__draw_box): Likewise.
1632         (mwin__draw_bitmap): This function deleted.
1633         (mwin__draw_points): New function.
1634         (mwin__verify_region): Adjusted for the change of the format of
1635         rface->info and the charge of set_region.
1636         (mwin__create_window): Inherit backgound pixel from parent.
1637         (mwin__dump_gc): Adjusted for the change of the format of
1638         rface->info.
1639
1640 2004-03-16  Kenichi Handa  <handa@m17n.org>
1641
1642         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
1643
1644         * input.c (M_key_alias): New variable.
1645         (handle_key): Try M_key_alias property of a key too.
1646         (minput__init): Initialize M_key_alias.  Give that property to
1647         symbols in one_char_symbol.  Fix bug of initializing
1648         one_char_symbol.
1649
1650         * draw.c (compose_glyph_string): Don't handle
1651         ignore_formatting_char here.  Include formatting characters in the
1652         range processed by a FTL.
1653         (layout_glyph_string): Handle ignore_formatting_char here.
1654
1655 2004-03-12  Kenichi Handa  <handa@m17n.org>
1656
1657         * input-gui.c (win_create_ic): Enable bidi in status control.
1658
1659         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
1660
1661 2004-03-09  Kenichi Handa  <handa@m17n.org>
1662
1663         * input.c (load_input_method): If title is not specified, use the
1664         input method name as title.
1665
1666         * m17n-X.c (get_color): Make it static.
1667         (xim_create_ic, xim_destroy_ic, x_error_handler)
1668         (x_io_error_handler): Likewise.
1669
1670 2004-03-01  Kenichi Handa  <handa@m17n.org>
1671
1672         * Version 1.0 released.
1673
1674 \f
1675 Copyright (C) 2003, 2004
1676   National Institute of Advanced Industrial Science and Technology (AIST)
1677   Registration Number H15PRO112
1678
1679 This file is part of the m17n library.
1680
1681 The m17n library is free software; you can redistribute it and/or
1682 modify it under the terms of the GNU Lesser General Public License
1683 as published by the Free Software Foundation; either version 2.1 of
1684 the License, or (at your option) any later version.
1685
1686 The m17n library is distributed in the hope that it will be useful,
1687 but WITHOUT ANY WARRANTY; without even the implied warranty of
1688 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1689 Lesser General Public License for more details.
1690
1691 You should have received a copy of the GNU Lesser General Public
1692 License along with the m17n library; if not, write to the Free
1693 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1694 02111-1307, USA.