1 2004-04-27 Kenichi Handa <handa@m17n.org>
3 * m17n-X.c: Include config.h
4 [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
5 (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
6 (MWDevice) [HAVE_XFT2]: New member xft_draw.
7 (FRAME_CMAP, FRAME_VISUAL): New macros.
8 (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
9 (xfont_driver): Make it static.
10 (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
11 (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
13 (MXftFontInfo) [HAVE_XFT2]: New type.
14 (mwin__xft_close) [HAVE_XFT2]: New function.
15 (mwin__xft_open) [HAVE_XFT2]: New function.
16 (mwin__xft_get_metric) [HAVE_XFT2]: New function.
17 (mwin__xft_render) [HAVE_XFT2]: New function.
19 * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
20 (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
21 (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
24 * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
26 * font-ft.c: Don't include FT_FREETYPE_H here.
27 [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
28 (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
29 (MFTInfo): New member charmap_index.
30 (MFTInfo) [HAVE_XFT2]: New member xft_info.
31 (check_otf_filename): Renamed from check_filename. Return value
33 (ft_set_property): This function deleted.
34 (set_font_info): New function.
35 (add_font_list): Argument changed. Add multiple fonts.
36 (xft_list) [HAVE_XFT2]: New function.
37 (ft_list) [not HAVE_XFT2]: New function.
38 (ft_select): Add code for Xft.
41 (ft_find_metric): Likewise.
42 (ft_encode_char): Likewise.
43 (ft_render): Likewise.
45 * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
47 2004-04-26 Kenichi Handa <handa@m17n.org>
49 * textprop.c (mtext_attach_property): Declare the return type as
52 2004-04-21 Kenichi Handa <handa@m17n.org>
54 * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
56 2004-04-09 Kenichi Handa <handa@m17n.org>
58 * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
60 (load_command): Setup above members.
62 2004-04-05 Kenichi Handa <handa@m17n.org>
64 * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
66 2004-03-30 Kenichi Handa <handa@m17n.org>
68 * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
71 * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
72 (M17NLIB_VERSION_NAME): Changed to 1.0.2.
74 2004-03-29 Kenichi Handa <handa@m17n.org>
76 * Version 1.0 Patch Level 2 released.
78 2004-03-29 Kenichi Handa <handa@m17n.org>
80 * charset.c (make_charset): Set charset->fully_loaded and
81 charset->simple correctly. Don't try to get charset->min_char and
82 charset->max_char for a charset of method subset and superset.
83 Don't load a mapping file here.
84 (mcharset__init): Set unified_max.
85 (mcharset__load_from_database): Free a working plist.
87 * coding.c (mcoding__fini): Free all malloced data.
89 * input-gui.c (win_create_ic): Set control.as_image for preediting
92 * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
93 `count') to initialize the array.
95 * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
98 * m17n-X.c (xfont_render): If rface->rfont is null, draw a
100 (mwin__create_window): Fix bug of setting a background pixel of a
102 (mwin__adjust_window): Clear the window before drawing.
104 * m17n-core.c (mdebug__report_object): Free array->objectes if
106 (m17n_init_core): Don't set report_header_printed to 0 here.
107 Fix debugging information.
108 (m17n_fini_core): Set report_header_printed to 0 here.
110 * m17n-core.h (mplist_deserialize): Extern it.
112 * m17n-gui.c (m17n_fini_win): Fix debugging information.
114 * m17n.c (m17n_fini): Fix debugging information.
116 * mtext.c (mtext__adjust_foramt): New function.
118 * mtext.h (mtext__adjust_foramt): Extern it.
120 * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
122 * plist.h (mplist__deserialize): Don't extern it.
124 * symbol.c (msymbol__fini): Set freed_symbols to 0. Set all
125 elements of symbol_table to NULL. Report about created and freed
126 symbols if MDEBUG_FINI is set.
128 2004-03-22 Kenichi Handa <handa@m17n.org>
130 * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
132 * m17n.c (m17n_init): Fix the way of checking merror_code.
134 * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
136 2004-03-22 Kenichi Handa <handa@m17n.org>
138 * fontset.c (realize_font_group): Adjust the font size by
139 mfont__resize before selecting a font.
141 * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
143 2004-03-19 Kenichi Handa <handa@m17n.org>
145 * Version 1.0 Patch Level 1 released.
147 2004-03-19 Kenichi Handa <handa@m17n.org>
149 * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
151 * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
153 2004-03-19 Kenichi Handa <handa@m17n.org>
155 Re-apply the changes forgotten in the released version.
157 * charset.c (mcharset__load_from_database): Call
158 mchar_define_charset.
160 * coding.c (encode_unsupporeted_char): Put Mcoding text property.
161 (mconv_encode_range): Put Mcoding text property.
163 2004-03-18 Kenichi Handa <handa@m17n.org>
165 * draw.c (Mdepth): New variable.
166 (visual_order): Delete unused local var `pos'.
167 (compose_glyph_string): Fix for the case that gstring->glyphs is
168 realloced. Stop generating glyphs at TO. Fix handling of
170 (layout_glyphs): Get metrics of all glyphs in advance. Set
171 lbearing and rbearing of base of composition glyph correctly.
172 Handle left-overhang glyphs correctly.
173 (alloc_gstring): New arg frame. Set gstring->anti_alias. Caller
175 (dump_combining_code): Change the defualt off_x character to ".".
176 (mdraw__init): Initialize Mdepth.
178 * face.c (work_gstring): New variable
179 (mface__init): Initialize work_gstring.
180 (mface__fini): Free work_gstring.glyphs.
181 (mface__realize): Don't handle videomode property here. Adjusted
182 for the change of mfont__get_metric.
183 (mface__for_chars): Adjusted for the change of mfont__get_metric.
185 * face.h (enum face_gc): Moved to m17n-X.c.
187 * font.h (struct MFontDriver): Arguments of find_metric changed.
188 (mfont__select): Prototype adjusted.
189 (mfont__get_metric): Likewise.
190 (mfont__ft_drive_otf): Likewise.
191 (mfont__flt_run): Likewise.
193 * font.c (mfont__select): New argument layouter. If layouter is
194 different in the registered font, make a new copy of realized
196 (mfont__get_metric): Argument changed. Get metrics of multiple
198 (mfont_find): Call mfont__select with layouter as Mnil.
200 * font-flt.c (FontLayoutContext): New member rfont.
201 (run_otf): Adjusted for the change of mfont__ft_drive_otf.
202 (mfont__flt_run): Argument changed. Initialize ctx.rfont.
204 * font-ft.c (ft_find_metric): Arguments changed. Get metrics of
206 (NUM_POINTS): New macro.
207 (MPointTable): New type.
208 (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
209 (mfont__ft_drive_otf): New argument rfont.
211 * fontset.c (realize_font_group): Adjusted for the changed of
213 (check_fontset_element): This function deleted.
215 * input-gui.c (adjust_window_and_draw): Locate a preedit window
216 off the parent window if the preedit text is zero length.
218 * internal-gui.h (struct MFrame): New members foreground,
219 background, videomode, font.
220 (struct MGlyphString): New member anti_alias.
221 (MDrawPoint): New type.
222 (mwin__draw_bitmap): Prototype deleted.
223 (mwin__draw_points): Prototype added.
225 * m17n-gui.h (MDrawControl): New member anti_alias.
227 * m17n-gui.c (free_frame): Free frame->font.
228 (mframe): Set the fontset of frame->face to the default fontset.
230 * m17n-X.c (RGB_GC): New type.
231 (enum gc_index): Renamed from enum face_gc. Member names changed.
233 (struct MWDevice): Members foreground and background deleted. New
234 member scratch_gc, gc_list.
235 (DEFAULT_FONT, FALLBACK_FONT): New macros.
236 (free_device): Free GCs in device->gc_list.
237 (get_rgb_gc): New function.
238 (get_gc): Renamed and argument changed from get_color.
239 (get_gc_for_anti_alias): New function.
240 (xfont_find_metric): Arguments changed. Get metrics of multiple
242 (set_region): Argument changed. Caller changed.
243 (xfont_render): Allways set a font in gc.
244 (x_error_handler, x_io_error_handler): Define only if
245 X_SET_ERROR_HANDLER is defined.
246 (mwin__open_device): Create device->scratch_gc. Set members
247 foreground, background, and videomode of frame. Call
248 XSetErrorHandler and XSetIOErrorHandler only if
249 X_SET_ERROR_HANDLER is defined.
250 (struct gc_list): Deleted.
251 (REGISTER_GC, UNREGISTER_GC): These macros deleted.
252 (mwin__realize_face): Adjusted for the change of the format of
253 rface->info and the charge of set_region.
254 (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
255 (mwin__draw_box): Likewise.
256 (mwin__draw_bitmap): This function deleted.
257 (mwin__draw_points): New function.
258 (mwin__verify_region): Adjusted for the change of the format of
259 rface->info and the charge of set_region.
260 (mwin__create_window): Inherit backgound pixel from parent.
261 (mwin__dump_gc): Adjusted for the change of the format of
264 2004-03-16 Kenichi Handa <handa@m17n.org>
266 * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
268 * input.c (M_key_alias): New variable.
269 (handle_key): Try M_key_alias property of a key too.
270 (minput__init): Initialize M_key_alias. Give that property to
271 symbols in one_char_symbol. Fix bug of initializing
274 * draw.c (compose_glyph_string): Don't handle
275 ignore_formatting_char here. Include formatting characters in the
276 range processed by a FTL.
277 (layout_glyph_string): Handle ignore_formatting_char here.
279 2004-03-12 Kenichi Handa <handa@m17n.org>
281 * input-gui.c (win_create_ic): Enable bidi in status control.
283 * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
285 2004-03-09 Kenichi Handa <handa@m17n.org>
287 * input.c (load_input_method): If title is not specified, use the
288 input method name as title.
290 * m17n-X.c (get_color): Make it static.
291 (xim_create_ic, xim_destroy_ic, x_error_handler)
292 (x_io_error_handler): Likewise.
294 2004-03-01 Kenichi Handa <handa@m17n.org>
296 * Version 1.0 released.
299 Copyright (C) 2003, 2004
300 National Institute of Advanced Industrial Science and Technology (AIST)
301 Registration Number H15PRO112
303 This file is part of the m17n library.
305 The m17n library is free software; you can redistribute it and/or
306 modify it under the terms of the GNU Lesser General Public License
307 as published by the Free Software Foundation; either version 2.1 of
308 the License, or (at your option) any later version.
310 The m17n library is distributed in the hope that it will be useful,
311 but WITHOUT ANY WARRANTY; without even the implied warranty of
312 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
313 Lesser General Public License for more details.
315 You should have received a copy of the GNU Lesser General Public
316 License along with the m17n library; if not, write to the Free
317 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA