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