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