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