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