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