1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c: A simple text-on-path example using
pangocairo.
* examples/Makefile.am: Update.
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (find_field_any): Parse style. It was dropped when
I was adding support for gravity.
2006-08-31 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c, pango/pangox-fontmap.c, pango/pangox.c:
Minor doc syntax update.
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 148732 – cursor movenmet is not correct in gedit when I type
Arabic text.
* pango/pango-layout.c (pango_layout_move_cursor_visually): Update
locally cached line properties upon line change.
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
* modules/Makefile.am (pango.modules): Improve the conditional to
ignore included modules.
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 352811 – SIGSEGV with pango(cairo)-view on HP-UX
* modules/Makefile.am (pango.modules): Don't hardcode .so extension.
Look for .la instead.
2006-08-30 Behdad Esfahbod <behdad@gnome.org>
Bug 353525 – libpangoft2-1.0.so.0: undefined reference to
`pango_font_description_get_gravity'
* examples/Makefile.am: Explicitly link to the just built pangoft2 for
pangocairo uses, like we already do for pangoxft.
2006-08-28 Tor Lillqvist <tml@novell.com>
* modules/basic/Makefile.am: Have basic-win32.c instead of
basic-win32.lo depend on usp10.h so things work out also in case
the basic-win32 module is compiled in.
2006-08-26 Behdad Esfahbod <behdad@gnome.org>
Bug 349813 – typo in docs for pango_layout_move_cursor_visually
* pango/pango-layout.c (pango_layout_move_cursor_visually): Fix typo.
2006-08-23 Tor Lillqvist <tml@novell.com>
* pango/Makefile.am
* examples/Makefile.am
* pango/testfonts.c
* examples/pangowin32tobmp.c: Rename pango/testfonts.c to
examples/pangowin32tobmp.c. (#104151)
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Replace (!isgraph
&& !isspace) with (!isprint) which is equivalent. Also, update
comments.
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 145275 – Font selection for space characters
* pango/pango-context.c (itemize_state_process_run): Find shaper/font
for Private Use and space characters too. Finding shaper for Private
Use is needed for any practical use of those areas. Ideally, spaces
should be synthesized if they are not available in the font, but
falling back to other fonts is far easier, and should give pretty good
results with the current set of common fonts. These fixes allow
Firefox+Pango to render MathML like Firefox+Xft does.
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (gravity_map): Rename "Upright" to "Not-Rotated".
Also, reorder the user-friendly names (Not-Rotated, Rotated-Left, ...)
before the enum names (South, East, ...) such that they are used to
describe fonts.
2006-08-21 Behdad Esfahbod <behdad@gnome.org>
Bug 352114 – pango-1.14: generated docs still contain old example code
* docs/tmpl/pangocairo.sgml: Update cairo example code to that of
examples/cairosimple.c.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
Support per-item gravity.
* pango/pango-context.c (update_attr_iterator),
(itemize_state_init), (itemize_state_update_for_new_run),
(itemize_state_process_run): Make per-item gravity work, by setting
gravity into font description before loading fonts. Also, allow
the context font description to override the gravity (but not
centered_baseline.)
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Get gravity
from font description, not context.
* pango/pangofc-fontmap.c (fontset_hash_key_equal),
(fontset_hash_key_hash), (fontset_hash_key_copy),
(pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
(pango_fc_font_map_load_fontset),
(pango_fc_font_description_from_pattern): Get gravity from font
description, not context. Moreover, put it into pattern, and
reconstruct it out of font patterns.
* pango/pangofc-private.h: Define PANGO_FC_GRAVITY, which is the key
we put PangoGravity into an FcPattern under.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/fonts.sgml:
* pango/fonts.c (pango_font_description_set_gravity),
(pango_font_description_get_gravity),
(pango_font_description_merge_static),
(pango_font_description_better_match),
(pango_font_description_equal), (pango_font_description_hash),
(find_field_any), (pango_font_description_from_string),
(pango_font_description_to_string):
* pango/pango-font.h:
* pango/pango.def:
Add gravity in PangoFontDescription.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-matrix.c (pango_matrix_to_gravity): Correct switched
return value of EAST/WEST.
* pango/pango-types.h (PangoGravity): Add PANGO_GRAVITY_AUTO.
* pango/pango-context.h: Add pango_context_get_gravity().
* examples/renderdemo.c (parse_gravity), (parse_options):
* pango/pango-context.c (pango_context_init),
(update_resolved_gravity), (pango_context_set_matrix),
(pango_context_set_base_gravity), (pango_context_get_gravity),
(itemize_state_init), (get_shaper_and_font):
* pango/pango-layout.c (line_set_resolved_dir):
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
(pango_cairo_fc_font_glyph_extents_cache_init),
(_pango_cairo_fc_font_new):
* pango/pangofc-fontmap.c (pango_fc_make_pattern),
(pango_fc_font_map_load_fontset):
* pango/pango.def:
* docs/pango-sections.txt:
* docs/tmpl/main.sgml:
Update to above.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (parse_options):
* examples/renderdemo.h: Change the --rotate parameter to double now
that we depend on a recent-enough glib.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
* pango/pango-item.h (PangoAnalysis): Use bitfields for level.
2006-08-17 Hans Breuer <hans@breuer.org>
* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).
2006-08-17 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 348825 – pango should optimize away calls to FcFontSort as
much as possible
* pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.
2006-08-17 Tor Lillqvist <tml@novell.com>
* pangowin32.pc.in: Drop @WIN32_LIBS@, no need to search -lgdi32
when linking apps that link with libcairowin32.
* pango/pango.def: Add two symbols.
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
Bug 351585 – API documentation issues with 2.15 release
* pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
tag to docs.
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (line_set_resolved_dir): Adjust line
resolved_dir according to context base_gravity, like we do
in itemize_state_add_character().
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* examples/viewer-pangocairo.c (render_callback): Render block
progression and line direction arrows, and a base gravity roof-top.
* pango/pango-matrix.c (pango_matrix_to_gravity): New function.
* pango/pango-utils.c (pango_gravity_to_rotation): New function.
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use
pango_gravity_to_rotation().
* pango/pango-utils.h:
* pango/pango-types.h:
Reorder a bit.
* examples/Makefile.am:
* examples/test-chinese.txt: New test text for Chinese.
* pango/check.defs: New script that checks that all the exported
symbols are listed in the respective .def file. (only checks the
libraries actually built. No win32 for example.)
* pango/Makefile.am: Hook check.defs as a 'make check' test.
* pango/pango.def:
* pango/pangoft2.def:
* pango/pangocairo.def:
Update.
* docs/tmpl/glyphs.sgml:
* docs/tmpl/main.sgml:
* docs/pango-sections.txt:
Update.
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (fallback_shape): Remove redundant
positioning block!
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_run_get_extents):
* pango/glyphstring.c (pango_glyph_string_extents_range):
Return if none of logical_rect or ink_rect is non-NULL.
* pango/pango-item.h (PangoAnalysis): Add new member centered_baseline
which if set, makes item rendered such that ascent == descent.
* pango/pango-context.c (itemize_state_init),
(itemize_state_add_character):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
Implement centered_baseline.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics): When
adjusting ascent/descent for vertical fonts, adjust strikethrough and
underline position too.
* docs/tmpl/main.sgml: Document new struct member.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (basic_engine_shape): Use analysis->gravity
to detect vertical fonts, instead of poking into the font_pattern.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c (basic_engine_shape): Always use
fallback shaping for vertical fonts.
* pango/pango-context.c (get_shaper_and_font): Always use basic
shaper for vertical items (east/west gravity).
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (do_output): Render the header with SOUTH
gravity.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics),
(pango_cairo_fc_font_glyph_extents_cache_init): Center baseline
for east/west gravity in pango_font_metrics too.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/HELLO.utf8: Remove excess LRM.
* examples/viewer-pangocairo.c (render_callback): Draw baselines in
border-drawing mode.
* pango/pango-layout.c (pango_layout_line_get_extents): Make sure
we set logical_rect.y on empty lines. Previously empty lines had
wrong baseline. The code apparently was written like that
intentionally, but I cannot find out why.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_get_log_attrs): Remove initliazer members
for analysis, let compiler zero them all. Fixes compile break after
adding the gravity member inside there.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_add_character):
Fix handling of WEST and EAST gravity effect on bidi level.
* pango/pangocairo-fcfont.c
(pango_cairo_fc_font_glyph_extents_cache_init):
For NORTH gravity (upside down text), swap ascent and descent,
and for EAST/WEST, center baseline between ascent/descent.
* pango/shape.c (pango_shape): If glyph width is negative, negate
it and shift glyph by that amount. This allows having font matrices
that essentially move the glyph origin to the right of the glyph to
still work.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
(_pango_cairo_fc_font_new): Move font_matrix rotation into font_new
as we use only rotation and no translation anymore.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/main.sgml:
* examples/renderdemo.c (parse_gravity), (parse_options):
* pango/pango-context.c (pango_context_init),
(pango_context_get_base_gravity), (itemize_state_add_character):
* pango/pango-types.h:
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font):
* pango/pangofc-fontmap.c (pango_fc_make_pattern):
Oops. Exchange west<->east and north<->south gravities. The gravity
is the side that the glyph sits on. So, for normal Latin text for
example, gravity is south, not north.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (do_output), (parse_gravity),
(parse_options): Support --gravity.
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_scaled_font),
(compute_glyph_extents), (_pango_cairo_fc_font_new): Load rotated
scaled_fonts to handle gravity.
* pango/pangofc-fontmap.c (pango_fc_make_pattern),
(pango_fc_font_map_get_patterns), (pango_fc_font_map_load_fontset):
Set FC_VERTICAL_LAYOUT on West and East gravity.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run):
Add FIXME note about handling item gravity.
* pango/pangofc-fontmap.c (fontset_hash_key_equal),
(fontset_hash_key_hash), (fontset_hash_key_copy),
(pango_fc_font_map_get_patterns): Add gravity into the hask key.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-item.h: Add a gravity member to PangoItem, and
* pango/pango-context.c (itemize_state_init),
(itemize_state_add_character): Propagate context base_gravity
into items.
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h: Add enum PangoGravity.
* pango/pango-context.h:
* pango/pango-context.c (pango_context_set_base_gravity),
(pango_context_get_base_gravity): New functions.
* pango/pango.def:
* docs/pango-sections.txt: Hook new API.
Local Variables:
coding: utf-8
End:
vim: encoding=utf-8:
|