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