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