*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
1 2004-04-09  Kenichi Handa  <handa@m17n.org>
2
3         * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
4         seq_to.
5         (load_command): Setup above members.
6
7 2004-04-05  Kenichi Handa  <handa@m17n.org>
8
9         * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
10
11 2004-03-30  Kenichi Handa  <handa@m17n.org>
12
13         * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
14         >= 0x10000.
15
16         * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
17         (M17NLIB_VERSION_NAME): Changed to 1.0.2.
18
19 2004-03-29  Kenichi Handa  <handa@m17n.org>
20
21         * Version 1.0 Patch Level 2 released.
22
23 2004-03-29  Kenichi Handa  <handa@m17n.org>
24
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.
31
32         * coding.c (mcoding__fini): Free all malloced data.
33
34         * input-gui.c (win_create_ic): Set control.as_image for preediting
35         to 0.
36
37         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
38         `count') to initialize the array.
39
40         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
41         M17N_OBJECT_UNREF.
42
43         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
44         rectangle.
45         (mwin__create_window): Fix bug of setting a background pixel of a
46         new window.
47         (mwin__adjust_window): Clear the window before drawing.
48
49         * m17n-core.c (mdebug__report_object): Free array->objectes if
50         necessary.
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.
54
55         * m17n-core.h (mplist_deserialize): Extern it.
56
57         * m17n-gui.c (m17n_fini_win): Fix debugging information.
58
59         * m17n.c (m17n_fini): Fix debugging information.
60
61         * mtext.c (mtext__adjust_foramt): New function.
62
63         * mtext.h (mtext__adjust_foramt): Extern it.
64
65         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
66
67         * plist.h (mplist__deserialize): Don't extern it.
68
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.
72
73 2004-03-22  Kenichi Handa  <handa@m17n.org>
74
75         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
76
77         * m17n.c (m17n_init): Fix the way of checking merror_code.
78
79         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
80
81 2004-03-22  Kenichi Handa  <handa@m17n.org>
82
83         * fontset.c (realize_font_group): Adjust the font size by
84         mfont__resize before selecting a font.
85
86         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
87
88 2004-03-19  Kenichi Handa  <handa@m17n.org>
89
90         * Version 1.0 Patch Level 1 released.
91
92 2004-03-19  Kenichi Handa  <handa@m17n.org>
93
94         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
95
96         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
97
98 2004-03-19  Kenichi Handa  <handa@m17n.org>
99
100         Re-apply the changes forgotten in the released version.
101
102         * charset.c (mcharset__load_from_database): Call
103         mchar_define_charset.
104
105         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
106         (mconv_encode_range): Put Mcoding text property.
107
108 2004-03-18  Kenichi Handa  <handa@m17n.org>
109
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
114         control charaters.
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
119         changed.
120         (dump_combining_code): Change the defualt off_x character to ".".
121         (mdraw__init): Initialize Mdepth.
122
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.
129
130         * face.h (enum face_gc): Moved to m17n-X.c.
131
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.
137         
138         * font.c (mfont__select): New argument layouter.  If layouter is
139         different in the registered font, make a new copy of realized
140         font.
141         (mfont__get_metric): Argument changed.  Get metrics of multiple
142         glyphs.
143         (mfont_find): Call mfont__select with layouter as Mnil.
144
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.
148
149         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
150         multiple glyphs.
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.
155
156         * fontset.c (realize_font_group): Adjusted for the changed of
157         mfont__select.
158         (check_fontset_element): This function deleted.
159
160         * input-gui.c (adjust_window_and_draw): Locate a preedit window
161         off the parent window if the preedit text is zero length.
162
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.
169
170         * m17n-gui.h (MDrawControl): New member anti_alias.
171
172         * m17n-gui.c (free_frame): Free frame->font.
173         (mframe): Set the fontset of frame->face to the default fontset.
174
175         * m17n-X.c (RGB_GC): New type.
176         (enum gc_index): Renamed from enum face_gc.  Member names changed.
177         (GCInfo): New typel
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
186         glyphs.
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
207         rface->info.
208
209 2004-03-16  Kenichi Handa  <handa@m17n.org>
210
211         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
212
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
217         one_char_symbol.
218
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.
223
224 2004-03-12  Kenichi Handa  <handa@m17n.org>
225
226         * input-gui.c (win_create_ic): Enable bidi in status control.
227
228         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
229
230 2004-03-09  Kenichi Handa  <handa@m17n.org>
231
232         * input.c (load_input_method): If title is not specified, use the
233         input method name as title.
234
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.
238
239 2004-03-01  Kenichi Handa  <handa@m17n.org>
240
241         * Version 1.0 released.
242
243 \f
244 Copyright (C) 2003, 2004
245   National Institute of Advanced Industrial Science and Technology (AIST)
246   Registration Number H15PRO112
247
248 This file is part of the m17n library.
249
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.
254
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.
259
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
263 02111-1307, USA.