1 2004-03-30 Kenichi Handa <handa@etlken2>
3 * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
6 * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
7 (M17NLIB_VERSION_NAME): Changed to 1.0.2.
9 2004-03-29 Kenichi Handa <handa@m17n.org>
11 * Version 1.0 Patch Level 2 released.
13 2004-03-29 Kenichi Handa <handa@m17n.org>
15 * charset.c (make_charset): Set charset->fully_loaded and
16 charset->simple correctly. Don't try to get charset->min_char and
17 charset->max_char for a charset of method subset and superset.
18 Don't load a mapping file here.
19 (mcharset__init): Set unified_max.
20 (mcharset__load_from_database): Free a working plist.
22 * coding.c (mcoding__fini): Free all malloced data.
24 * input-gui.c (win_create_ic): Set control.as_image for preediting
27 * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
28 `count') to initialize the array.
30 * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
33 * m17n-X.c (xfont_render): If rface->rfont is null, draw a
35 (mwin__create_window): Fix bug of setting a background pixel of a
37 (mwin__adjust_window): Clear the window before drawing.
39 * m17n-core.c (mdebug__report_object): Free array->objectes if
41 (m17n_init_core): Don't set report_header_printed to 0 here.
42 Fix debugging information.
43 (m17n_fini_core): Set report_header_printed to 0 here.
45 * m17n-core.h (mplist_deserialize): Extern it.
47 * m17n-gui.c (m17n_fini_win): Fix debugging information.
49 * m17n.c (m17n_fini): Fix debugging information.
51 * mtext.c (mtext__adjust_foramt): New function.
53 * mtext.h (mtext__adjust_foramt): Extern it.
55 * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
57 * plist.h (mplist__deserialize): Don't extern it.
59 * symbol.c (msymbol__fini): Set freed_symbols to 0. Set all
60 elements of symbol_table to NULL. Report about created and freed
61 symbols if MDEBUG_FINI is set.
63 2004-03-22 Kenichi Handa <handa@m17n.org>
65 * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
67 * m17n.c (m17n_init): Fix the way of checking merror_code.
69 * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
71 2004-03-22 Kenichi Handa <handa@m17n.org>
73 * fontset.c (realize_font_group): Adjust the font size by
74 mfont__resize before selecting a font.
76 * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
78 2004-03-19 Kenichi Handa <handa@m17n.org>
80 * Version 1.0 Patch Level 1 released.
82 2004-03-19 Kenichi Handa <handa@m17n.org>
84 * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
86 * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
88 2004-03-19 Kenichi Handa <handa@m17n.org>
90 Re-apply the changes forgotten in the released version.
92 * charset.c (mcharset__load_from_database): Call
95 * coding.c (encode_unsupporeted_char): Put Mcoding text property.
96 (mconv_encode_range): Put Mcoding text property.
98 2004-03-18 Kenichi Handa <handa@m17n.org>
100 * draw.c (Mdepth): New variable.
101 (visual_order): Delete unused local var `pos'.
102 (compose_glyph_string): Fix for the case that gstring->glyphs is
103 realloced. Stop generating glyphs at TO. Fix handling of
105 (layout_glyphs): Get metrics of all glyphs in advance. Set
106 lbearing and rbearing of base of composition glyph correctly.
107 Handle left-overhang glyphs correctly.
108 (alloc_gstring): New arg frame. Set gstring->anti_alias. Caller
110 (dump_combining_code): Change the defualt off_x character to ".".
111 (mdraw__init): Initialize Mdepth.
113 * face.c (work_gstring): New variable
114 (mface__init): Initialize work_gstring.
115 (mface__fini): Free work_gstring.glyphs.
116 (mface__realize): Don't handle videomode property here. Adjusted
117 for the change of mfont__get_metric.
118 (mface__for_chars): Adjusted for the change of mfont__get_metric.
120 * face.h (enum face_gc): Moved to m17n-X.c.
122 * font.h (struct MFontDriver): Arguments of find_metric changed.
123 (mfont__select): Prototype adjusted.
124 (mfont__get_metric): Likewise.
125 (mfont__ft_drive_otf): Likewise.
126 (mfont__flt_run): Likewise.
128 * font.c (mfont__select): New argument layouter. If layouter is
129 different in the registered font, make a new copy of realized
131 (mfont__get_metric): Argument changed. Get metrics of multiple
133 (mfont_find): Call mfont__select with layouter as Mnil.
135 * font-flt.c (FontLayoutContext): New member rfont.
136 (run_otf): Adjusted for the change of mfont__ft_drive_otf.
137 (mfont__flt_run): Argument changed. Initialize ctx.rfont.
139 * font-ft.c (ft_find_metric): Arguments changed. Get metrics of
141 (NUM_POINTS): New macro.
142 (MPointTable): New type.
143 (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
144 (mfont__ft_drive_otf): New argument rfont.
146 * fontset.c (realize_font_group): Adjusted for the changed of
148 (check_fontset_element): This function deleted.
150 * input-gui.c (adjust_window_and_draw): Locate a preedit window
151 off the parent window if the preedit text is zero length.
153 * internal-gui.h (struct MFrame): New members foreground,
154 background, videomode, font.
155 (struct MGlyphString): New member anti_alias.
156 (MDrawPoint): New type.
157 (mwin__draw_bitmap): Prototype deleted.
158 (mwin__draw_points): Prototype added.
160 * m17n-gui.h (MDrawControl): New member anti_alias.
162 * m17n-gui.c (free_frame): Free frame->font.
163 (mframe): Set the fontset of frame->face to the default fontset.
165 * m17n-X.c (RGB_GC): New type.
166 (enum gc_index): Renamed from enum face_gc. Member names changed.
168 (struct MWDevice): Members foreground and background deleted. New
169 member scratch_gc, gc_list.
170 (DEFAULT_FONT, FALLBACK_FONT): New macros.
171 (free_device): Free GCs in device->gc_list.
172 (get_rgb_gc): New function.
173 (get_gc): Renamed and argument changed from get_color.
174 (get_gc_for_anti_alias): New function.
175 (xfont_find_metric): Arguments changed. Get metrics of multiple
177 (set_region): Argument changed. Caller changed.
178 (xfont_render): Allways set a font in gc.
179 (x_error_handler, x_io_error_handler): Define only if
180 X_SET_ERROR_HANDLER is defined.
181 (mwin__open_device): Create device->scratch_gc. Set members
182 foreground, background, and videomode of frame. Call
183 XSetErrorHandler and XSetIOErrorHandler only if
184 X_SET_ERROR_HANDLER is defined.
185 (struct gc_list): Deleted.
186 (REGISTER_GC, UNREGISTER_GC): These macros deleted.
187 (mwin__realize_face): Adjusted for the change of the format of
188 rface->info and the charge of set_region.
189 (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
190 (mwin__draw_box): Likewise.
191 (mwin__draw_bitmap): This function deleted.
192 (mwin__draw_points): New function.
193 (mwin__verify_region): Adjusted for the change of the format of
194 rface->info and the charge of set_region.
195 (mwin__create_window): Inherit backgound pixel from parent.
196 (mwin__dump_gc): Adjusted for the change of the format of
199 2004-03-16 Kenichi Handa <handa@m17n.org>
201 * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
203 * input.c (M_key_alias): New variable.
204 (handle_key): Try M_key_alias property of a key too.
205 (minput__init): Initialize M_key_alias. Give that property to
206 symbols in one_char_symbol. Fix bug of initializing
209 * draw.c (compose_glyph_string): Don't handle
210 ignore_formatting_char here. Include formatting characters in the
211 range processed by a FTL.
212 (layout_glyph_string): Handle ignore_formatting_char here.
214 2004-03-12 Kenichi Handa <handa@m17n.org>
216 * input-gui.c (win_create_ic): Enable bidi in status control.
218 * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
220 2004-03-09 Kenichi Handa <handa@m17n.org>
222 * input.c (load_input_method): If title is not specified, use the
223 input method name as title.
225 * m17n-X.c (get_color): Make it static.
226 (xim_create_ic, xim_destroy_ic, x_error_handler)
227 (x_io_error_handler): Likewise.
229 2004-03-01 Kenichi Handa <handa@m17n.org>
231 * Version 1.0 released.
234 Copyright (C) 2003, 2004
235 National Institute of Advanced Industrial Science and Technology (AIST)
236 Registration Number H15PRO112
238 This file is part of the m17n library.
240 The m17n library is free software; you can redistribute it and/or
241 modify it under the terms of the GNU Lesser General Public License
242 as published by the Free Software Foundation; either version 2.1 of
243 the License, or (at your option) any later version.
245 The m17n library is distributed in the hope that it will be useful,
246 but WITHOUT ANY WARRANTY; without even the implied warranty of
247 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
248 Lesser General Public License for more details.
250 You should have received a copy of the GNU Lesser General Public
251 License along with the m17n library; if not, write to the Free
252 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA