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