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