1 2004-05-12 Kenichi Handa <handa@m17n.org>
3 * internal-gui.h (mwin__xft_open): Arguemnt name changed.
5 * m17n-X.c (mwin__xft_open): Argument changed to fontname and
8 * font-ft.c (MFTInfo) [HAVE_XFT2]: New member fontname.
9 (all_fonts_scaned): New variable.
10 (set_font_info): FAMILY may be Mnil.
11 (add_font_info): Argument changed.
12 (xft_list): Call add_font_info in it.
14 (ft_select): Make it work in the case family is Mnil.
15 (ft_open) [HAVE_XFT2]: Setup ft_info->fontname.
16 (mfont__ft_fini): Set all_fonts_scaned to 0.
18 * fontset.c (mfont__lookup_fontset): Don't repeatedly try a font
19 that is failed to open.
21 2004-05-10 Kenichi Handa <handa@m17n.org>
23 * m17n-X.c (mwin__xft_render): Don't use anti-alias if the
24 device's depth is 1 (i.e. monochrome).
26 * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
27 to work around the problem of libtool.
29 * font-ft.c: Include <freetype/ftbdf.h>.
30 (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
32 (mfont__ft_init): Initialize them.
33 (ft_iso8859_1_font_list): New variable.
34 (set_font_info): Detect a font containing iso8859-1 glyphs and
35 register it in ft_iso8859_1_font_list. If the font is not
36 scalable, assume it as BDF or PCF font and setup SIZE and RESY
37 properties of the font from its properties.
38 (add_font_list): If the font is not scalable, check if it is BDF
39 or PCF font. If not, ignore it.
40 (ft_select): If FAMILY is Mnil, return NULL only if the requested
41 registry is not iso8859-1.
42 (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
43 ft_iso8859_1_font_list.
44 (ft_find_metric): If the font is not scalable, assume it as BDF
45 or PCF, and get a metric from its properties.
46 (mfont__ft_fini): Free ft_iso8859_1_font_list.
48 2004-05-07 Kenichi Handa <handa@redhat.m17n.org>
50 * Makefile.am (libm17n_la_LIBADD): Include -ldl.
51 (libm17n_la_LDFLAGS): Delete it.
52 (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
53 (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
55 2004-05-06 Kenichi Handa <handa@m17n.org>
57 * draw.c (compose_glyph_string): Fix previous change.
59 2004-04-30 Kenichi Handa <handa@m17n.org>
61 * font-ft.c (ft_list): Delete unused variable `result'.
62 (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
64 2004-04-27 Kenichi Handa <handa@m17n.org>
66 * m17n-X.c: Include config.h
67 [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
68 (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
69 (MWDevice) [HAVE_XFT2]: New member xft_draw.
70 (FRAME_CMAP, FRAME_VISUAL): New macros.
71 (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
72 (xfont_driver): Make it static.
73 (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
74 (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
76 (MXftFontInfo) [HAVE_XFT2]: New type.
77 (mwin__xft_close) [HAVE_XFT2]: New function.
78 (mwin__xft_open) [HAVE_XFT2]: New function.
79 (mwin__xft_get_metric) [HAVE_XFT2]: New function.
80 (mwin__xft_render) [HAVE_XFT2]: New function.
82 * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
83 (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
84 (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
87 * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
89 * font-ft.c: Don't include FT_FREETYPE_H here.
90 [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
91 (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
92 (MFTInfo): New member charmap_index.
93 (MFTInfo) [HAVE_XFT2]: New member xft_info.
94 (check_otf_filename): Renamed from check_filename. Return value
96 (ft_set_property): This function deleted.
97 (set_font_info): New function.
98 (add_font_list): Argument changed. Add multiple fonts.
99 (xft_list) [HAVE_XFT2]: New function.
100 (ft_list) [not HAVE_XFT2]: New function.
101 (ft_select): Add code for Xft.
102 (close_ft): Likewise.
104 (ft_find_metric): Likewise.
105 (ft_encode_char): Likewise.
106 (ft_render): Likewise.
108 * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
110 2004-04-26 Kenichi Handa <handa@m17n.org>
112 * textprop.c (mtext_attach_property): Declare the return type as
115 2004-04-21 Kenichi Handa <handa@m17n.org>
117 * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
119 2004-04-09 Kenichi Handa <handa@m17n.org>
121 * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
123 (load_command): Setup above members.
125 2004-04-05 Kenichi Handa <handa@m17n.org>
127 * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
129 2004-03-30 Kenichi Handa <handa@m17n.org>
131 * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
134 * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
135 (M17NLIB_VERSION_NAME): Changed to 1.0.2.
137 2004-03-29 Kenichi Handa <handa@m17n.org>
139 * Version 1.0 Patch Level 2 released.
141 2004-03-29 Kenichi Handa <handa@m17n.org>
143 * charset.c (make_charset): Set charset->fully_loaded and
144 charset->simple correctly. Don't try to get charset->min_char and
145 charset->max_char for a charset of method subset and superset.
146 Don't load a mapping file here.
147 (mcharset__init): Set unified_max.
148 (mcharset__load_from_database): Free a working plist.
150 * coding.c (mcoding__fini): Free all malloced data.
152 * input-gui.c (win_create_ic): Set control.as_image for preediting
155 * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
156 `count') to initialize the array.
158 * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
161 * m17n-X.c (xfont_render): If rface->rfont is null, draw a
163 (mwin__create_window): Fix bug of setting a background pixel of a
165 (mwin__adjust_window): Clear the window before drawing.
167 * m17n-core.c (mdebug__report_object): Free array->objectes if
169 (m17n_init_core): Don't set report_header_printed to 0 here.
170 Fix debugging information.
171 (m17n_fini_core): Set report_header_printed to 0 here.
173 * m17n-core.h (mplist_deserialize): Extern it.
175 * m17n-gui.c (m17n_fini_win): Fix debugging information.
177 * m17n.c (m17n_fini): Fix debugging information.
179 * mtext.c (mtext__adjust_foramt): New function.
181 * mtext.h (mtext__adjust_foramt): Extern it.
183 * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
185 * plist.h (mplist__deserialize): Don't extern it.
187 * symbol.c (msymbol__fini): Set freed_symbols to 0. Set all
188 elements of symbol_table to NULL. Report about created and freed
189 symbols if MDEBUG_FINI is set.
191 2004-03-22 Kenichi Handa <handa@m17n.org>
193 * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
195 * m17n.c (m17n_init): Fix the way of checking merror_code.
197 * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
199 2004-03-22 Kenichi Handa <handa@m17n.org>
201 * fontset.c (realize_font_group): Adjust the font size by
202 mfont__resize before selecting a font.
204 * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
206 2004-03-19 Kenichi Handa <handa@m17n.org>
208 * Version 1.0 Patch Level 1 released.
210 2004-03-19 Kenichi Handa <handa@m17n.org>
212 * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
214 * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
216 2004-03-19 Kenichi Handa <handa@m17n.org>
218 Re-apply the changes forgotten in the released version.
220 * charset.c (mcharset__load_from_database): Call
221 mchar_define_charset.
223 * coding.c (encode_unsupporeted_char): Put Mcoding text property.
224 (mconv_encode_range): Put Mcoding text property.
226 2004-03-18 Kenichi Handa <handa@m17n.org>
228 * draw.c (Mdepth): New variable.
229 (visual_order): Delete unused local var `pos'.
230 (compose_glyph_string): Fix for the case that gstring->glyphs is
231 realloced. Stop generating glyphs at TO. Fix handling of
233 (layout_glyphs): Get metrics of all glyphs in advance. Set
234 lbearing and rbearing of base of composition glyph correctly.
235 Handle left-overhang glyphs correctly.
236 (alloc_gstring): New arg frame. Set gstring->anti_alias. Caller
238 (dump_combining_code): Change the defualt off_x character to ".".
239 (mdraw__init): Initialize Mdepth.
241 * face.c (work_gstring): New variable
242 (mface__init): Initialize work_gstring.
243 (mface__fini): Free work_gstring.glyphs.
244 (mface__realize): Don't handle videomode property here. Adjusted
245 for the change of mfont__get_metric.
246 (mface__for_chars): Adjusted for the change of mfont__get_metric.
248 * face.h (enum face_gc): Moved to m17n-X.c.
250 * font.h (struct MFontDriver): Arguments of find_metric changed.
251 (mfont__select): Prototype adjusted.
252 (mfont__get_metric): Likewise.
253 (mfont__ft_drive_otf): Likewise.
254 (mfont__flt_run): Likewise.
256 * font.c (mfont__select): New argument layouter. If layouter is
257 different in the registered font, make a new copy of realized
259 (mfont__get_metric): Argument changed. Get metrics of multiple
261 (mfont_find): Call mfont__select with layouter as Mnil.
263 * font-flt.c (FontLayoutContext): New member rfont.
264 (run_otf): Adjusted for the change of mfont__ft_drive_otf.
265 (mfont__flt_run): Argument changed. Initialize ctx.rfont.
267 * font-ft.c (ft_find_metric): Arguments changed. Get metrics of
269 (NUM_POINTS): New macro.
270 (MPointTable): New type.
271 (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
272 (mfont__ft_drive_otf): New argument rfont.
274 * fontset.c (realize_font_group): Adjusted for the changed of
276 (check_fontset_element): This function deleted.
278 * input-gui.c (adjust_window_and_draw): Locate a preedit window
279 off the parent window if the preedit text is zero length.
281 * internal-gui.h (struct MFrame): New members foreground,
282 background, videomode, font.
283 (struct MGlyphString): New member anti_alias.
284 (MDrawPoint): New type.
285 (mwin__draw_bitmap): Prototype deleted.
286 (mwin__draw_points): Prototype added.
288 * m17n-gui.h (MDrawControl): New member anti_alias.
290 * m17n-gui.c (free_frame): Free frame->font.
291 (mframe): Set the fontset of frame->face to the default fontset.
293 * m17n-X.c (RGB_GC): New type.
294 (enum gc_index): Renamed from enum face_gc. Member names changed.
296 (struct MWDevice): Members foreground and background deleted. New
297 member scratch_gc, gc_list.
298 (DEFAULT_FONT, FALLBACK_FONT): New macros.
299 (free_device): Free GCs in device->gc_list.
300 (get_rgb_gc): New function.
301 (get_gc): Renamed and argument changed from get_color.
302 (get_gc_for_anti_alias): New function.
303 (xfont_find_metric): Arguments changed. Get metrics of multiple
305 (set_region): Argument changed. Caller changed.
306 (xfont_render): Allways set a font in gc.
307 (x_error_handler, x_io_error_handler): Define only if
308 X_SET_ERROR_HANDLER is defined.
309 (mwin__open_device): Create device->scratch_gc. Set members
310 foreground, background, and videomode of frame. Call
311 XSetErrorHandler and XSetIOErrorHandler only if
312 X_SET_ERROR_HANDLER is defined.
313 (struct gc_list): Deleted.
314 (REGISTER_GC, UNREGISTER_GC): These macros deleted.
315 (mwin__realize_face): Adjusted for the change of the format of
316 rface->info and the charge of set_region.
317 (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
318 (mwin__draw_box): Likewise.
319 (mwin__draw_bitmap): This function deleted.
320 (mwin__draw_points): New function.
321 (mwin__verify_region): Adjusted for the change of the format of
322 rface->info and the charge of set_region.
323 (mwin__create_window): Inherit backgound pixel from parent.
324 (mwin__dump_gc): Adjusted for the change of the format of
327 2004-03-16 Kenichi Handa <handa@m17n.org>
329 * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
331 * input.c (M_key_alias): New variable.
332 (handle_key): Try M_key_alias property of a key too.
333 (minput__init): Initialize M_key_alias. Give that property to
334 symbols in one_char_symbol. Fix bug of initializing
337 * draw.c (compose_glyph_string): Don't handle
338 ignore_formatting_char here. Include formatting characters in the
339 range processed by a FTL.
340 (layout_glyph_string): Handle ignore_formatting_char here.
342 2004-03-12 Kenichi Handa <handa@m17n.org>
344 * input-gui.c (win_create_ic): Enable bidi in status control.
346 * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
348 2004-03-09 Kenichi Handa <handa@m17n.org>
350 * input.c (load_input_method): If title is not specified, use the
351 input method name as title.
353 * m17n-X.c (get_color): Make it static.
354 (xim_create_ic, xim_destroy_ic, x_error_handler)
355 (x_io_error_handler): Likewise.
357 2004-03-01 Kenichi Handa <handa@m17n.org>
359 * Version 1.0 released.
362 Copyright (C) 2003, 2004
363 National Institute of Advanced Industrial Science and Technology (AIST)
364 Registration Number H15PRO112
366 This file is part of the m17n library.
368 The m17n library is free software; you can redistribute it and/or
369 modify it under the terms of the GNU Lesser General Public License
370 as published by the Free Software Foundation; either version 2.1 of
371 the License, or (at your option) any later version.
373 The m17n library is distributed in the hope that it will be useful,
374 but WITHOUT ANY WARRANTY; without even the implied warranty of
375 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376 Lesser General Public License for more details.
378 You should have received a copy of the GNU Lesser General Public
379 License along with the m17n library; if not, write to the Free
380 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA