1 2004-06-14 Kenichi Handa <handa@m17n.org>
3 * symbol.h (struct MSymbolStruct): Renamed from MSymbol.
5 * m17n-core.h (MSymbol): Defined as "struct MSymbolStruct *".
7 * Makefile.am (AM_CPPFLAGS): Refer to @M17NDIR@.
9 2004-06-08 Kenichi Handa <handa@m17n.org>
11 * character.c (mchar_put_prop): Don't increment the ref-count of
14 2004-06-04 Kenichi Handa <handa@m17n.org>
16 * m17n-core.c (mdebug__register_object): New function.
17 (mdebug__unregister_object): Likewise.
19 * internal.h (mdebug__register_object, mdebug__unregister_object):
21 (M17N_OBJECT_REGISTER, M17N_OBJECT_UNREGISTER): Call them
24 * charset.c (mcharset__load_from_database): Don't call
25 mconv__register_charset_coding here.
27 * coding.c (find_coding): Get a real name from an element of
28 coding_definition_list.
29 (mconv__register_charset_coding): Set the real name at the top of
31 (mcoding__load_from_database): Likewise.
32 (mconv_list_codings): Adjusted for the above change.
34 2004-06-03 Kenichi Handa <handa@m17n.org>
36 * coding.c (find_coding): Find by canonicalized name. Don't have
37 to modify the element of coding_definition_list by
39 (mconv__define_coding_from_charset): Delete it.
40 (mconv__register_charset_coding): Canonicalize sym.
41 (mcoding__load_from_database): Register plist modified by
44 * coding.h (mconv__define_coding_from_charset): Don't extern it.
46 * font-ft.c (ft_open): Fix setting of rfont->descent.
48 2004-06-02 Kenichi Handa <handa@m17n.org>
50 * font.c (enum xlfd_field_idx): Moved from m17n-X.c.
51 (xlfd_parse_name): Merge split_font_name and xfont_parse_name.
52 (xlfd_unparse_name): Renamed from xfont_build_name.
53 (mfont__init): Initialized Mfontconfig.
54 (mfont__free_realized): Unconditionally unref rfont->info.
55 (mfont__select): Free `this' if it's not best.
56 (mfont__open): Don't check frame->realized_font_list.
57 (mfont__parse_name_into_font): New function.
58 (Mfontconfig): New variable.
59 (mfont_from_name): Call mfont_parse_name.
60 (mfont_name): Call mfont_unparse_name.
61 (mdebug_dump_font): Likewise.
63 * font.h (struct MFontDriver): Delete members parse_name and
65 (mfont__ft_parse_name, mfont__ft_unparse_name): Extern them.
66 (mfont__parse_name_into_font): Extern it.
68 * font-ft.c: Include "symbol.h".
69 (close_ft): Unconditionally free filename and charmap_list of
71 (ft_open): Duplicate base->filename. Increment ref-count of
72 ft_info->charmap_list. Free ft_info->charmap_list and
73 ft_info->filename on error.
74 (mfont__ft_parse_name, mfont__ft_unparse_name): New functions.
76 * m17n-X.c (xfont_driver): Don't include xfont_parse_name and
78 (enum xlfd_field_idx): Moved to font.c.
79 (split_font_name, build_font_name): Likewise.
80 (build_font_list): Call mfont__parse_name_info_font.
81 (xfont_open): Call mfont__unparse_name. Free name.
82 (xfont_parse_name, xfont_build_name): Moved to font.c
83 (xft_select): Prototype deleted.
84 (device_open): Check HAVE_FREETYPE on using mfont__ft_driver.
87 * m17n-gui.c (free_frame): Unref frame->font_driver_list.
88 (m17n_fini_win): Add check HAVE_FREETYPE on using null_interface.
91 * m17n-gui.h (mfont_parse_name, mfont_unparse_name, Mfontconfig):
94 * Makefile.am (linkgui_LDADD): Add libm17n-X.la and libm17n-gd.la.
96 2004-06-01 Kenichi Handa <handa@m17n.org>
98 * fontset.c (mfontset_modify_entry): Pay attention to the case
99 that fontset->font_spec_list is NULL.
101 2004-05-31 Kenichi Handa <handa@m17n.org>
103 * m17n-gui.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
105 * input.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
107 * font.c (mfont__select): Print score the a font for debugging.
109 * Makefile.am (libm17n_la_LIBADD): Delete -ldl.
111 * coding.c (reset_coding_sjis): Check kanji and kana instead of
112 kanji_sym and kana_sym.
114 2004-05-28 Kenichi Handa <handa@m17n.org>
116 * Makefile.am (VINFO): New variable.
117 (libm17n_core_la_LDFLAGS, libm17n_la_LDFLAGS)
118 (libm17n_gd_la_LDFLAGS): Include ${VINFO}.
120 2004-05-27 Kenichi Handa <handa@m17n.org>
122 The following chanages are to make device dependent functions
123 accessible only from MDeviceDriver structure, and to add GD and
124 null device drivers. Font drivers get also device dependent.
126 * m17n.c (m17n_init): Increament shell_initialized.
127 (m17n_fini): Decremented shell_initialized.
129 * m17n-misc.h (enum MErrorCode): New element MERROR_GD.
131 * m17n-gui.h (Mdevice, Mdisplay, Mscreen, Mdrawable, Mdepth)
132 (Mwidget, Mcolormap, Mx): Extern them.
134 * m17n-gui.c: Include <dlfcn.h> and "config.h".
135 (free_frame): Call frame->driver->close instead of
137 (DLOPEN_SHLIB_EXT): New macro.
138 (MDeviceLibraryInterface): New type.
139 (device_library_list): New variable.
140 (register_device_library): New function.
141 (null_device): New variable.
142 (null_device_close, null_device_get_prop)
143 (null_device_realize_face, null_device_free_realized_face): New
145 (null_driver): New variable.
146 (null_device_init, null_device_fini, null_device_open): New
148 (null_interface): New variable.
149 (Mfreetype, Mdevice): Declare them.
150 (m17n_init_win): Increment win_initialized. Initialize Mx, Mgd,
151 Mfreetype, Mdevice, Mdisplay, Mscreen, Mdrawable, Mdevice, and
152 Mwin__Close_Device. Register drivers for Mx and Mgd.
153 (m17n_fini_win): Decremented win_initialized. Call "fini"
154 function of all opened devices. Don't call mwin__fini.
155 (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap):
157 (mframe): Handle Mdevice key of PLIST.
158 (mframe_get_prop): Call frame->device->get_prop instead of
159 mwin__device_get_prop.
161 * m17n-gd.c: New file.
163 * m17n-core.h (M17NLIB_MAJOR_VERSION, M17NLIB_MINOR_VERSION)
164 (M17NLIB_PATCH_LEVEL, M17NLIB_VERSION_NAME): Updated to 1.1.0.
166 * m17n-core.c (m17n_init_core): Increate core_initialized.
167 (m17n_fini_core): Decremented core_initialized.
169 * m17n-X.h (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget)
170 (Mcolormap): Don't extern them here.
172 * m17n-X.c (FRAME_DEVICE): New macro.
173 (FRAME_DISPLAY, FRAME_SCREEN, FRAME_CMAP): Use FRAME_DEVICE.
174 (free_display_info): Use MPLIST_DO.
175 (free_device): Free rface->info.
176 (xft_close): Delete it.
177 (device_init): Renamed from mwin__init.
178 (device_fini): Renamed from mwin__fini.
179 (device_open): Renamed from mwin__open_device.
180 (x_driver): New variable.
181 (MXFontInfo): Delete member frame, add member display.
182 (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap, Mxim):
183 Don't declare them here.
185 * internal-gui.h (MDeviceType): New enum.
186 (MWDefice): Delete it.
187 (struct MFrame): Change type of device to void *. New members
188 device_type, driver, font_driver_list.
189 (M_CHECK_WRITABLE, M_CHECK_READABLE): New macros.
190 (MDeviceDriver): New type.
191 (Mx, Mgd, Mfreetype): Extern them.
192 (mwin__XXX): Delete all of them.
194 * input-gui.c (win_create_ic): Call frame->driver->XXX instead of
196 (win_destroy_ic): Likewise.
197 (adjust_window_and_draw): Likewise.
198 (win_callback): Likewise.
199 (Mxim): Declare it here.
200 (minput_event_to_key): Call M_CHECK_READABLE.
202 * fontset.c (mfont__lookup_fontset): Delete local variable
205 * font.h (struct MFontDriver): Delete member close, add members
206 parse_name and build_name.
207 (mfont__driver_list): Delete extern.
208 (mfont__close): Delete extern.
210 * font.c (mfont__init): Don't set mfont__driver_list.
211 (mfont__fini): Don't unref mfont__driver_list.
212 (mfont__select): Try font drivers in frame->font_driver_list. Set
213 driver member of a realized font.
214 (mfont__close): Delete it.
215 (mfont_from_name, mfont_name, mdebug_dump_font): Call driver
216 functions of the default frame.
218 * font-ft.c (close_ft): Check ft_info->ft_face and work
220 (add_font_info): Allocate ft_info by M17N_OBJECT.
221 (ft_close): Delete it.
222 (mfont__ft_driver): Don't set ft_close.
223 (ft_select): Increment ref-count of best_font.
224 (ft_open): Decremented ref-count of base. On error, call
225 FT_Done_Face and free ft_info.
226 (ft_find_metric): Always use XXX_MONO in load_flags.
227 (ft_render): Fix setting of width. Call
228 frame->driver->draw_points instead of mwin__draw_points.
229 (ft_to_prop): Don't set mfont__driver_list.
230 (mfont__ft_fini): Just unref ft_info.
232 * face.c (mface__init): Exchange foreground and background of
233 mface__default. Call mface_put_prop to set hline of
235 (mface__realize): Call frame->driver->XXX instead of mwin__XXX.
236 (mface__free_realized): Don't call mwin__free_realized_face.
238 * draw.c (Mdepth): Don't declare it here.
239 (draw_background): Call frame->driver->XXX instead of mwin__XXX.
240 (render_glyphs, render_glyph_string): Likewise.
241 (mdraw__init): Don't set Mdepth.
242 (mdraw_text, mdraw_image_text, mdraw_text_with_control): Call
244 (mdraw_text_per_char_extents): Return 0 on success and -1 on
246 (mdraw_text_items): Check FRAME is writable.
247 (mdraw_per_char_extents): Implement body.
249 * Makefile.am (lib_LTLIBRARIES): Include libm17n-gui.la and
251 (OPTIONAL_LD_FLAGS): Include @FONTCONFIG_LD_FLAGS@.
252 (GUI_SOURCES): Delete it.
253 (libm17n_X_la_SOURCES): Don't include ${GUI_SOURCES}.
254 (libm17n_gui_la_SOURCES, libm17n_gui_la_LIBADD)
255 (libm17n_gui_la_LDFLAGS, libm17n_gd_la_SOURCES)
256 (libm17n_gd_la_LIBADD, libm17n_gd_la_LDFLAGS): New targets.
257 (linkgui_LDADD): Set to libm17n-gui.la
258 (linkgui_LDFLAGS): New target.
259 (SRC): Include ${libm17n_gui_la_SOURCES} and
260 ${libm17n_gd_la_SOURCES}.
262 2004-05-24 Kenichi Handa <handa@m17n.org>
264 * draw.c (draw_background): Don't draw background even if
265 rface->face.property[MFACE_BACKGROUND] is not Mnil.
267 2004-05-22 Kenichi Handa <handa@m17n.org>
269 * m17n-X.c (xft_open_font): Fix anti_alias setting.
271 2004-05-20 Kenichi Handa <handa@m17n.org>
273 * m17n-gui.h (MFaceHookFunc): Change this function type to void.
275 * m17n-gui.c: Include "plist.h".
276 (mframe): If PLIST is NULL, initialize it to emply plist.
278 * m17n-X.c (build_font_list): Don't set property[MFONT_TYPE].
279 (xft_driver): New variable.
280 (xft_select, close_xft, xft_open_font, xft_open, xft_close)
281 (xft_find_metric, xft_render): New function.
282 (mwin__init): Adjusted for the new mfont__driver_list.
283 (mwin__open_device): Assume arg PARAM is not NULL. Push a newly
284 generated face to PARAM.
285 (mwin__realize_face): Fix setting of box colors. Don't call hook
287 (mwin__draw_hline): New function.
288 (mwin__xft_close, mwin__xft_open, mwin__xft_get_metric)
289 (mwin__xft_render): Delete these function.
291 * internal-gui.h (struct MFrame): New member tick.
292 (struct MGlyphString): New member tick.
293 (mwin__draw_rect, mwin__draw_empty_boxes): Extern them.
294 (mwin__xft_open, mwin__xft_close, mwin__xft_get_metric)
295 (mwin__xft_render): Delete extern.
297 * fontset.c (mfont__lookup_fontset): Make the code simpler.
298 (mfontset): Always increment the reference count of returned
301 * font-ft.c (mfont__ft_fini): Don't include <otf.h> here.
302 (MFTInfo): Moved to font.h.
303 (ft_iso8859_1_font_list): Delete this variable.
304 (set_font_info): Don't set font->property[MFONT_TYPE].
305 (set_font_info): Don't udpate ft_iso8859_1_font_list.
306 (add_font_info): Change type to void.
307 (fc_list): Change anme from xft_list. Caller changed. Include
308 FC_FOUNDRY and FC_PIXEL_SIZE in FcObjectSet.
309 (mfont__ft_driver): Change name from ft_driver. Caller changed.
310 (ft_select): Check HAVE_FONTCONFIG instead of HAVE_XFT2.
311 (close_ft): Don't call mwin__xft_close. Unref
313 (ft_open): Don't setup ft_info->fontname. Don't call
315 (ft_find_metric): Don't call mwin__xft_get_metric.
316 (ft_encode_char): Call rfont->driver->open instead of ft_open.
317 (ft_render): Don't check HAVE_XFT2. Don't call mwin__xft_render.
318 (mfont__ft_init): Adjusted for new mfont__driver_list.
319 (mfont__ft_fini): Don't unref ft_iso8859_1_font_list.
321 * font.c (mfont__driver_list): Make it MPlist.
322 (mfont__init): Adjust initialization of mfont__driver_list.
323 (mfont__fini): Free mfont__driver_list.
324 (mfont__set_spec_from_face): Don't set spec->property[MFONT_TYPE].
325 (mfont__select): Adjusted for the new mfont__driver_list.
327 * font.h (enum MFontProperty): Delete MFONT_TYPE.
328 (mfont__drirver_list): Adjust prototype.
329 (MFTInfo): Move to here from fron.c. Deleve member fontname.
331 * face.h (struct MFace): Delete member realized_face_list, add
333 (struct MRealizedFace): Delete member need_update
334 andnofont_rface, add member non_ascii_list.
335 (mface__update_frame_face): Extern it.
337 * face.c (hline_prop_list, box_prop_list, noop_hook): New
339 (get_hline_create, get_box_create): New functions.
340 (find_realized_face): Cancel previous change. Arg RFONT deleted.
342 (free_face): Cancep previous change. Free face->frame_list.
343 (serialize_hline): Do nothing if hline->width is zero.
344 (serialize_box): Do nothing if box->width is zero.
345 (mface__init): Setup all properties of mface__default.
346 (mface__fini): Free hline_prop_list and box_prop_list.
347 (mface__realize): Cancel previous change. Update
348 face->frame_list. Setup rface->non_ascii_list.
349 (mface__for_chars): Update rface->non_ascii_list.
350 (mface__free_realized): Free rface->non_ascii_list.
351 (mface__update_frame_face): New function.
352 (mface): Initialize face->frame_list.
353 (mface_copy): Likewise. Just copy MFACE_HLINE and MFACE_BOX
355 (mface_merge): Likewise.
356 (mface_put_prop): If key is Mhline or Mbox, get value by
357 get_hline_create or get_box_create respectively.
358 (mface_put_prop): Update frame->tick and call
359 mface__update_frame_face if necessary.
360 (mface_update): Do nothing if func is noop_hook.
362 * draw.c (render_glyphs): If a font is not found, use
363 mwin__draw_empty_boxes.
364 (alloc_gstring): Initialize gstring->tick.
365 (get_gstring): Check gstring->tick.
367 2004-05-17 Kenichi Handa <handa@m17n.org>
369 * face.c (find_realized_face): Return value changed. If RFONT is
370 NULL, avoid unnecessary checking.
371 (free_face): Free face->realized_face_list.
372 (mface__realize): Adjusted for the change of find_realized_face.
373 If it returns a realized face that needs update, free it and
374 realize a new one. Push a new realized face to
375 frame->realized_face_list instead of appending.
376 (mface__for_chars): Adjusted for the change of find_realized_face.
377 Short cut if the required font is in rface->ascii_rface.
378 (mface_put_prop): Free old value if necessary. Set need_update
379 member of realized faces to 1.
381 * face.h (struct MFace): Delete member tick, add member
383 (struct MRealizedFace): Delete member tick, add member
386 2004-05-13 Kenichi Handa <handa@m17n.org>
388 * m17n-X.c (mwin__xft_open): Destroy unnecessary patterns.
390 2004-05-12 Kenichi Handa <handa@m17n.org>
392 * internal-gui.h (mwin__xft_open): Arguemnt name changed.
394 * m17n-X.c (mwin__xft_open): Argument changed to fontname and
395 parse it XftNameParse.
397 * font-ft.c (MFTInfo) [HAVE_XFT2]: New member fontname.
398 (all_fonts_scaned): New variable.
399 (set_font_info): FAMILY may be Mnil.
400 (add_font_info): Argument changed.
401 (xft_list): Call add_font_info in it.
403 (ft_select): Make it work in the case family is Mnil.
404 (ft_open) [HAVE_XFT2]: Setup ft_info->fontname.
405 (mfont__ft_fini): Set all_fonts_scaned to 0.
407 * fontset.c (mfont__lookup_fontset): Don't repeatedly try a font
408 that is failed to open.
410 2004-05-10 Kenichi Handa <handa@m17n.org>
412 * m17n-X.c (mwin__xft_render): Don't use anti-alias if the
413 device's depth is 1 (i.e. monochrome).
415 * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
416 to work around the problem of libtool.
418 * font-ft.c: Include <freetype/ftbdf.h>.
419 (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
421 (mfont__ft_init): Initialize them.
422 (ft_iso8859_1_font_list): New variable.
423 (set_font_info): Detect a font containing iso8859-1 glyphs and
424 register it in ft_iso8859_1_font_list. If the font is not
425 scalable, assume it as BDF or PCF font and setup SIZE and RESY
426 properties of the font from its properties.
427 (add_font_list): If the font is not scalable, check if it is BDF
428 or PCF font. If not, ignore it.
429 (ft_select): If FAMILY is Mnil, return NULL only if the requested
430 registry is not iso8859-1.
431 (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
432 ft_iso8859_1_font_list.
433 (ft_find_metric): If the font is not scalable, assume it as BDF
434 or PCF, and get a metric from its properties.
435 (mfont__ft_fini): Free ft_iso8859_1_font_list.
437 2004-05-07 Kenichi Handa <handa@redhat.m17n.org>
439 * Makefile.am (libm17n_la_LIBADD): Include -ldl.
440 (libm17n_la_LDFLAGS): Delete it.
441 (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
442 (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
444 2004-05-06 Kenichi Handa <handa@m17n.org>
446 * draw.c (compose_glyph_string): Fix previous change.
448 2004-04-30 Kenichi Handa <handa@m17n.org>
450 * font-ft.c (ft_list): Delete unused variable `result'.
451 (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
453 2004-04-27 Kenichi Handa <handa@m17n.org>
455 * m17n-X.c: Include config.h
456 [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
457 (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
458 (MWDevice) [HAVE_XFT2]: New member xft_draw.
459 (FRAME_CMAP, FRAME_VISUAL): New macros.
460 (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
461 (xfont_driver): Make it static.
462 (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
463 (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
464 info->xft_color_back.
465 (MXftFontInfo) [HAVE_XFT2]: New type.
466 (mwin__xft_close) [HAVE_XFT2]: New function.
467 (mwin__xft_open) [HAVE_XFT2]: New function.
468 (mwin__xft_get_metric) [HAVE_XFT2]: New function.
469 (mwin__xft_render) [HAVE_XFT2]: New function.
471 * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
472 (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
473 (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
476 * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
478 * font-ft.c: Don't include FT_FREETYPE_H here.
479 [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
480 (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
481 (MFTInfo): New member charmap_index.
482 (MFTInfo) [HAVE_XFT2]: New member xft_info.
483 (check_otf_filename): Renamed from check_filename. Return value
485 (ft_set_property): This function deleted.
486 (set_font_info): New function.
487 (add_font_list): Argument changed. Add multiple fonts.
488 (xft_list) [HAVE_XFT2]: New function.
489 (ft_list) [not HAVE_XFT2]: New function.
490 (ft_select): Add code for Xft.
491 (close_ft): Likewise.
493 (ft_find_metric): Likewise.
494 (ft_encode_char): Likewise.
495 (ft_render): Likewise.
497 * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
499 2004-04-26 Kenichi Handa <handa@m17n.org>
501 * textprop.c (mtext_attach_property): Declare the return type as
504 2004-04-21 Kenichi Handa <handa@m17n.org>
506 * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
508 2004-04-09 Kenichi Handa <handa@m17n.org>
510 * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
512 (load_command): Setup above members.
514 2004-04-05 Kenichi Handa <handa@m17n.org>
516 * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
518 2004-03-30 Kenichi Handa <handa@m17n.org>
520 * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
523 * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
524 (M17NLIB_VERSION_NAME): Changed to 1.0.2.
526 2004-03-29 Kenichi Handa <handa@m17n.org>
528 * Version 1.0 Patch Level 2 released.
530 2004-03-29 Kenichi Handa <handa@m17n.org>
532 * charset.c (make_charset): Set charset->fully_loaded and
533 charset->simple correctly. Don't try to get charset->min_char and
534 charset->max_char for a charset of method subset and superset.
535 Don't load a mapping file here.
536 (mcharset__init): Set unified_max.
537 (mcharset__load_from_database): Free a working plist.
539 * coding.c (mcoding__fini): Free all malloced data.
541 * input-gui.c (win_create_ic): Set control.as_image for preediting
544 * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
545 `count') to initialize the array.
547 * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
550 * m17n-X.c (xfont_render): If rface->rfont is null, draw a
552 (mwin__create_window): Fix bug of setting a background pixel of a
554 (mwin__adjust_window): Clear the window before drawing.
556 * m17n-core.c (mdebug__report_object): Free array->objectes if
558 (m17n_init_core): Don't set report_header_printed to 0 here.
559 Fix debugging information.
560 (m17n_fini_core): Set report_header_printed to 0 here.
562 * m17n-core.h (mplist_deserialize): Extern it.
564 * m17n-gui.c (m17n_fini_win): Fix debugging information.
566 * m17n.c (m17n_fini): Fix debugging information.
568 * mtext.c (mtext__adjust_foramt): New function.
570 * mtext.h (mtext__adjust_foramt): Extern it.
572 * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
574 * plist.h (mplist__deserialize): Don't extern it.
576 * symbol.c (msymbol__fini): Set freed_symbols to 0. Set all
577 elements of symbol_table to NULL. Report about created and freed
578 symbols if MDEBUG_FINI is set.
580 2004-03-22 Kenichi Handa <handa@m17n.org>
582 * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
584 * m17n.c (m17n_init): Fix the way of checking merror_code.
586 * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
588 2004-03-22 Kenichi Handa <handa@m17n.org>
590 * fontset.c (realize_font_group): Adjust the font size by
591 mfont__resize before selecting a font.
593 * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
595 2004-03-19 Kenichi Handa <handa@m17n.org>
597 * Version 1.0 Patch Level 1 released.
599 2004-03-19 Kenichi Handa <handa@m17n.org>
601 * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
603 * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
605 2004-03-19 Kenichi Handa <handa@m17n.org>
607 Re-apply the changes forgotten in the released version.
609 * charset.c (mcharset__load_from_database): Call
610 mchar_define_charset.
612 * coding.c (encode_unsupporeted_char): Put Mcoding text property.
613 (mconv_encode_range): Put Mcoding text property.
615 2004-03-18 Kenichi Handa <handa@m17n.org>
617 * draw.c (Mdepth): New variable.
618 (visual_order): Delete unused local var `pos'.
619 (compose_glyph_string): Fix for the case that gstring->glyphs is
620 realloced. Stop generating glyphs at TO. Fix handling of
622 (layout_glyphs): Get metrics of all glyphs in advance. Set
623 lbearing and rbearing of base of composition glyph correctly.
624 Handle left-overhang glyphs correctly.
625 (alloc_gstring): New arg frame. Set gstring->anti_alias. Caller
627 (dump_combining_code): Change the defualt off_x character to ".".
628 (mdraw__init): Initialize Mdepth.
630 * face.c (work_gstring): New variable
631 (mface__init): Initialize work_gstring.
632 (mface__fini): Free work_gstring.glyphs.
633 (mface__realize): Don't handle videomode property here. Adjusted
634 for the change of mfont__get_metric.
635 (mface__for_chars): Adjusted for the change of mfont__get_metric.
637 * face.h (enum face_gc): Moved to m17n-X.c.
639 * font.h (struct MFontDriver): Arguments of find_metric changed.
640 (mfont__select): Prototype adjusted.
641 (mfont__get_metric): Likewise.
642 (mfont__ft_drive_otf): Likewise.
643 (mfont__flt_run): Likewise.
645 * font.c (mfont__select): New argument layouter. If layouter is
646 different in the registered font, make a new copy of realized
648 (mfont__get_metric): Argument changed. Get metrics of multiple
650 (mfont_find): Call mfont__select with layouter as Mnil.
652 * font-flt.c (FontLayoutContext): New member rfont.
653 (run_otf): Adjusted for the change of mfont__ft_drive_otf.
654 (mfont__flt_run): Argument changed. Initialize ctx.rfont.
656 * font-ft.c (ft_find_metric): Arguments changed. Get metrics of
658 (NUM_POINTS): New macro.
659 (MPointTable): New type.
660 (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
661 (mfont__ft_drive_otf): New argument rfont.
663 * fontset.c (realize_font_group): Adjusted for the changed of
665 (check_fontset_element): This function deleted.
667 * input-gui.c (adjust_window_and_draw): Locate a preedit window
668 off the parent window if the preedit text is zero length.
670 * internal-gui.h (struct MFrame): New members foreground,
671 background, videomode, font.
672 (struct MGlyphString): New member anti_alias.
673 (MDrawPoint): New type.
674 (mwin__draw_bitmap): Prototype deleted.
675 (mwin__draw_points): Prototype added.
677 * m17n-gui.h (MDrawControl): New member anti_alias.
679 * m17n-gui.c (free_frame): Free frame->font.
680 (mframe): Set the fontset of frame->face to the default fontset.
682 * m17n-X.c (RGB_GC): New type.
683 (enum gc_index): Renamed from enum face_gc. Member names changed.
685 (struct MWDevice): Members foreground and background deleted. New
686 member scratch_gc, gc_list.
687 (DEFAULT_FONT, FALLBACK_FONT): New macros.
688 (free_device): Free GCs in device->gc_list.
689 (get_rgb_gc): New function.
690 (get_gc): Renamed and argument changed from get_color.
691 (get_gc_for_anti_alias): New function.
692 (xfont_find_metric): Arguments changed. Get metrics of multiple
694 (set_region): Argument changed. Caller changed.
695 (xfont_render): Allways set a font in gc.
696 (x_error_handler, x_io_error_handler): Define only if
697 X_SET_ERROR_HANDLER is defined.
698 (mwin__open_device): Create device->scratch_gc. Set members
699 foreground, background, and videomode of frame. Call
700 XSetErrorHandler and XSetIOErrorHandler only if
701 X_SET_ERROR_HANDLER is defined.
702 (struct gc_list): Deleted.
703 (REGISTER_GC, UNREGISTER_GC): These macros deleted.
704 (mwin__realize_face): Adjusted for the change of the format of
705 rface->info and the charge of set_region.
706 (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
707 (mwin__draw_box): Likewise.
708 (mwin__draw_bitmap): This function deleted.
709 (mwin__draw_points): New function.
710 (mwin__verify_region): Adjusted for the change of the format of
711 rface->info and the charge of set_region.
712 (mwin__create_window): Inherit backgound pixel from parent.
713 (mwin__dump_gc): Adjusted for the change of the format of
716 2004-03-16 Kenichi Handa <handa@m17n.org>
718 * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
720 * input.c (M_key_alias): New variable.
721 (handle_key): Try M_key_alias property of a key too.
722 (minput__init): Initialize M_key_alias. Give that property to
723 symbols in one_char_symbol. Fix bug of initializing
726 * draw.c (compose_glyph_string): Don't handle
727 ignore_formatting_char here. Include formatting characters in the
728 range processed by a FTL.
729 (layout_glyph_string): Handle ignore_formatting_char here.
731 2004-03-12 Kenichi Handa <handa@m17n.org>
733 * input-gui.c (win_create_ic): Enable bidi in status control.
735 * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
737 2004-03-09 Kenichi Handa <handa@m17n.org>
739 * input.c (load_input_method): If title is not specified, use the
740 input method name as title.
742 * m17n-X.c (get_color): Make it static.
743 (xim_create_ic, xim_destroy_ic, x_error_handler)
744 (x_io_error_handler): Likewise.
746 2004-03-01 Kenichi Handa <handa@m17n.org>
748 * Version 1.0 released.
751 Copyright (C) 2003, 2004
752 National Institute of Advanced Industrial Science and Technology (AIST)
753 Registration Number H15PRO112
755 This file is part of the m17n library.
757 The m17n library is free software; you can redistribute it and/or
758 modify it under the terms of the GNU Lesser General Public License
759 as published by the Free Software Foundation; either version 2.1 of
760 the License, or (at your option) any later version.
762 The m17n library is distributed in the hope that it will be useful,
763 but WITHOUT ANY WARRANTY; without even the implied warranty of
764 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
765 Lesser General Public License for more details.
767 You should have received a copy of the GNU Lesser General Public
768 License along with the m17n library; if not, write to the Free
769 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA