*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
1 2004-03-29  Kenichi Handa  <handa@m17n.org>
2
3         * Version 1.0 Patch Level 2 released.
4
5 2004-03-29  Kenichi Handa  <handa@m17n.org>
6
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.
13
14         * coding.c (mcoding__fini): Free all malloced data.
15
16         * input-gui.c (win_create_ic): Set control.as_image for preediting
17         to 0.
18
19         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
20         `count') to initialize the array.
21
22         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
23         M17N_OBJECT_UNREF.
24
25         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
26         rectangle.
27         (mwin__create_window): Fix bug of setting a background pixel of a
28         new window.
29         (mwin__adjust_window): Clear the window before drawing.
30
31         * m17n-core.c (mdebug__report_object): Free array->objectes if
32         necessary.
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.
36
37         * m17n-core.h (mplist_deserialize): Extern it.
38
39         * m17n-gui.c (m17n_fini_win): Fix debugging information.
40
41         * m17n.c (m17n_fini): Fix debugging information.
42
43         * mtext.c (mtext__adjust_foramt): New function.
44
45         * mtext.h (mtext__adjust_foramt): Extern it.
46
47         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
48
49         * plist.h (mplist__deserialize): Don't extern it.
50
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.
54
55 2004-03-22  Kenichi Handa  <handa@m17n.org>
56
57         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
58
59         * m17n.c (m17n_init): Fix the way of checking merror_code.
60
61         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
62
63 2004-03-22  Kenichi Handa  <handa@m17n.org>
64
65         * fontset.c (realize_font_group): Adjust the font size by
66         mfont__resize before selecting a font.
67
68         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
69
70 2004-03-19  Kenichi Handa  <handa@m17n.org>
71
72         * Version 1.0 Patch Level 1 released.
73
74 2004-03-19  Kenichi Handa  <handa@m17n.org>
75
76         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
77
78         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
79
80 2004-03-19  Kenichi Handa  <handa@m17n.org>
81
82         Re-apply the changes forgotten in the released version.
83
84         * charset.c (mcharset__load_from_database): Call
85         mchar_define_charset.
86
87         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
88         (mconv_encode_range): Put Mcoding text property.
89
90 2004-03-18  Kenichi Handa  <handa@m17n.org>
91
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
96         control charaters.
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
101         changed.
102         (dump_combining_code): Change the defualt off_x character to ".".
103         (mdraw__init): Initialize Mdepth.
104
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.
111
112         * face.h (enum face_gc): Moved to m17n-X.c.
113
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.
119         
120         * font.c (mfont__select): New argument layouter.  If layouter is
121         different in the registered font, make a new copy of realized
122         font.
123         (mfont__get_metric): Argument changed.  Get metrics of multiple
124         glyphs.
125         (mfont_find): Call mfont__select with layouter as Mnil.
126
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.
130
131         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
132         multiple glyphs.
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.
137
138         * fontset.c (realize_font_group): Adjusted for the changed of
139         mfont__select.
140         (check_fontset_element): This function deleted.
141
142         * input-gui.c (adjust_window_and_draw): Locate a preedit window
143         off the parent window if the preedit text is zero length.
144
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.
151
152         * m17n-gui.h (MDrawControl): New member anti_alias.
153
154         * m17n-gui.c (free_frame): Free frame->font.
155         (mframe): Set the fontset of frame->face to the default fontset.
156
157         * m17n-X.c (RGB_GC): New type.
158         (enum gc_index): Renamed from enum face_gc.  Member names changed.
159         (GCInfo): New typel
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
168         glyphs.
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
189         rface->info.
190
191 2004-03-16  Kenichi Handa  <handa@m17n.org>
192
193         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
194
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
199         one_char_symbol.
200
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.
205
206 2004-03-12  Kenichi Handa  <handa@m17n.org>
207
208         * input-gui.c (win_create_ic): Enable bidi in status control.
209
210         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
211
212 2004-03-09  Kenichi Handa  <handa@m17n.org>
213
214         * input.c (load_input_method): If title is not specified, use the
215         input method name as title.
216
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.
220
221 2004-03-01  Kenichi Handa  <handa@m17n.org>
222
223         * Version 1.0 released.
224
225 \f
226 Copyright (C) 2003, 2004
227   National Institute of Advanced Industrial Science and Technology (AIST)
228   Registration Number H15PRO112
229
230 This file is part of the m17n library.
231
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.
236
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.
241
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
245 02111-1307, USA.