1 2004-03-19 Kenichi Handa <handa@m17n.org>
3 * Version 1.0 Patch Level 1 released.
5 2004-03-19 Kenichi Handa <handa@m17n.org>
7 * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
9 * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
11 2004-03-19 Kenichi Handa <handa@m17n.org>
13 Re-apply the changes forgotten in the released version.
15 * charset.c (mcharset__load_from_database): Call
18 * coding.c (encode_unsupporeted_char): Put Mcoding text property.
19 (mconv_encode_range): Put Mcoding text property.
21 2004-03-18 Kenichi Handa <handa@m17n.org>
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
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
33 (dump_combining_code): Change the defualt off_x character to ".".
34 (mdraw__init): Initialize Mdepth.
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.
43 * face.h (enum face_gc): Moved to m17n-X.c.
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.
51 * font.c (mfont__select): New argument layouter. If layouter is
52 different in the registered font, make a new copy of realized
54 (mfont__get_metric): Argument changed. Get metrics of multiple
56 (mfont_find): Call mfont__select with layouter as Mnil.
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.
62 * font-ft.c (ft_find_metric): Arguments changed. Get metrics of
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.
69 * fontset.c (realize_font_group): Adjusted for the changed of
71 (check_fontset_element): This function deleted.
73 * input-gui.c (adjust_window_and_draw): Locate a preedit window
74 off the parent window if the preedit text is zero length.
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.
83 * m17n-gui.h (MDrawControl): New member anti_alias.
85 * m17n-gui.c (free_frame): Free frame->font.
86 (mframe): Set the fontset of frame->face to the default fontset.
88 * m17n-X.c (RGB_GC): New type.
89 (enum gc_index): Renamed from enum face_gc. Member names changed.
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
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
122 2004-03-16 Kenichi Handa <handa@m17n.org>
124 * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
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
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.
137 2004-03-12 Kenichi Handa <handa@m17n.org>
139 * input-gui.c (win_create_ic): Enable bidi in status control.
141 * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
143 2004-03-09 Kenichi Handa <handa@m17n.org>
145 * input.c (load_input_method): If title is not specified, use the
146 input method name as title.
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.
152 2004-03-01 Kenichi Handa <handa@m17n.org>
154 * Version 1.0 released.
157 Copyright (C) 2003, 2004
158 National Institute of Advanced Industrial Science and Technology (AIST)
159 Registration Number H15PRO112
161 This file is part of the m17n library.
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.
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.
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