Behdad Esfahbod [Sat, 14 Mar 2009 23:00:54 +0000 (19:00 -0400)]
[Makefile.am] Fix build of gen-script-for-lang
Behdad Esfahbod [Thu, 12 Mar 2009 18:43:54 +0000 (14:43 -0400)]
[pangofc-fontmap] Document the caching structure
Behdad Esfahbod [Tue, 10 Mar 2009 21:13:36 +0000 (17:13 -0400)]
[pangofc] Share cmap cache between PangoFcFont's of the same face (#567160)
Behdad Esfahbod [Tue, 10 Mar 2009 18:00:09 +0000 (14:00 -0400)]
[pangofc] Reuse filename from pattern in coverage key
Behdad Esfahbod [Tue, 10 Mar 2009 12:08:19 +0000 (08:08 -0400)]
[pangofc] Add a "fontmap" property to PangoFcFont
Gecko uses its own PangoFcFontMap subclass with its own PangoFontSet.
Previously we were setting font->fontmap in our own private
PangoFcFontSet. Now it's up to the PangoFcFont subclass to set it
when creating the new font object.
Also adds the following backend-public symbol:
pango_fc_font_map_find_decoder()
Behdad Esfahbod [Tue, 10 Mar 2009 15:42:01 +0000 (11:42 -0400)]
[pango-coverage] Fix optimization bug in pango_coverage_to_bytes()
Behdad Esfahbod [Tue, 10 Mar 2009 13:05:39 +0000 (09:05 -0400)]
[pango-coverage] Use gslice for data arrays
Behdad Esfahbod [Tue, 10 Mar 2009 12:26:20 +0000 (08:26 -0400)]
[pango-coverage] Remove unused struct member
Behdad Esfahbod [Wed, 4 Mar 2009 10:46:25 +0000 (14:16 +0330)]
Increase FONTSET_CACHE_SIZE from 64 to 256
Now that we keep a lot fewer objects per fontset, increase the cache size.
Behdad Esfahbod [Mon, 2 Mar 2009 22:00:03 +0000 (01:30 +0330)]
[pangofc-fontmap] Don't unref NULL object (RH bug# 487593)
Tor Lillqvist [Mon, 9 Mar 2009 12:21:49 +0000 (14:21 +0200)]
Revert change from 2008-05-28 that mapped words and word pairs that
indicate weight or stretch into the corrersponding Pango font
description setting and stripped those word(s) from the family name.
Personally I liked the effect this had on the GTK+ font picker,
combining all weight and stretch variants of what de facto is one
typeface family (for instance DejaVu) under one family name. But Bulia
Byak reported that this caused regressions in Inkscape. So OK then.
Behdad Esfahbod [Mon, 2 Mar 2009 11:46:11 +0000 (15:16 +0330)]
[opentype] Protect against illegal access for arrays of length zero
Behdad Esfahbod [Mon, 2 Mar 2009 10:50:20 +0000 (14:20 +0330)]
[opentype] Use size_t instead of uint for malloc wrappers
Behdad Esfahbod [Mon, 2 Mar 2009 08:30:52 +0000 (12:00 +0330)]
[glyphstring] Handle overflow with very long glyphstrings
Behdad Esfahbod [Mon, 2 Mar 2009 07:47:24 +0000 (11:17 +0330)]
[pango-language] Fix small leak
Reported by Tommi Rantala.
Behdad Esfahbod [Mon, 2 Mar 2009 07:42:43 +0000 (11:12 +0330)]
Bug 572662 – Remove deprecated GTK+ symbols
Remove the obsolete file viewer-win32.c
Behdad Esfahbod [Mon, 2 Mar 2009 07:41:09 +0000 (11:11 +0330)]
Rename ChangeLog to ChangeLog.pre-1.23
Behdad Esfahbod [Mon, 2 Mar 2009 07:39:29 +0000 (11:09 +0330)]
Fix Bug 572529 – Poor -I ordering can break build
Behdad Esfahbod [Sat, 7 Feb 2009 00:23:48 +0000 (19:23 -0500)]
Fix warnings
Behdad Esfahbod [Tue, 3 Feb 2009 05:49:01 +0000 (05:49 +0000)]
Fix check.
svn path=/trunk/; revision=2829
Behdad Esfahbod [Tue, 3 Feb 2009 05:34:15 +0000 (05:34 +0000)]
=== Released 1.23.0 ===
2009-02-03 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.23.0 ===
* configure.in: Version 1.23.0
* NEWS: Updated.
svn path=/trunk/; revision=2828
Behdad Esfahbod [Tue, 3 Feb 2009 05:34:03 +0000 (05:34 +0000)]
Comment out gobject-introspection for now, to get a release out.
2009-02-03 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am: Comment out gobject-introspection for now,
to get a release out.
svn path=/trunk/; revision=2827
Behdad Esfahbod [Tue, 3 Feb 2009 05:33:50 +0000 (05:33 +0000)]
Fix conditional.
2009-02-02 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Fix conditional.
svn path=/trunk/; revision=2826
Behdad Esfahbod [Mon, 2 Feb 2009 00:13:22 +0000 (00:13 +0000)]
Don't do anything in shutdown. Was causing double-free of cairo font
2009-02-01 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_class_init):
Don't do anything in shutdown. Was causing double-free of cairo
font private data.
svn path=/trunk/; revision=2825
Behdad Esfahbod [Mon, 2 Feb 2009 00:13:07 +0000 (00:13 +0000)]
Allocate all array rows in a single ALLOC call. Saves over 100 alloc calls
2009-01-31 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-gpos.c (Load_Mark2Array),
(Free_Mark2Array):
Allocate all array rows in a single ALLOC call. Saves over 100
alloc calls when loading DejaVu Sans,
svn path=/trunk/; revision=2824
Behdad Esfahbod [Sat, 31 Jan 2009 23:35:48 +0000 (23:35 +0000)]
It's not a programming error if face->family is NULL or family->fontmap is
2009-01-31 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_face_describe),
(pango_fc_face_list_sizes), (pango_fc_family_list_faces):
It's not a programming error if face->family is NULL or
family->fontmap is NULL. Be graceful.
svn path=/trunk/; revision=2823
Behdad Esfahbod [Sat, 31 Jan 2009 20:44:53 +0000 (20:44 +0000)]
Typo
svn path=/trunk/; revision=2822
Behdad Esfahbod [Fri, 30 Jan 2009 05:04:47 +0000 (05:04 +0000)]
Bug 569763 – pango doesn't like font descriptions without family!
2009-01-30 Behdad Esfahbod <behdad@gnome.org>
Bug 569763 – pango doesn't like font descriptions without family!
* pango/pangofc-fontmap.c (pango_fc_make_pattern): Don't crash is desc
doesn't have family set.
svn path=/trunk/; revision=2821
Behdad Esfahbod [Fri, 30 Jan 2009 05:04:35 +0000 (05:04 +0000)]
Remove default font family and size. This means default is "serif 12" now,
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango-view/viewer-render.c (make_layout), (get_options_string):
Remove default font family and size. This means default is "serif 12"
now, instead of previous "sans 18".
svn path=/trunk/; revision=2820
Behdad Esfahbod [Thu, 29 Jan 2009 09:20:08 +0000 (09:20 +0000)]
Remove ClassDef->Defined field. This is the comment accompanying it:
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-open.h:
* pango/opentype/harfbuzz-gdef.c (Make_ClassRange),
(HB_GDEF_Build_ClassDefinition):
* pango/opentype/harfbuzz-gpos.c (Load_PosClassRule),
(Load_ChainPosClassRule):
* pango/opentype/harfbuzz-gsub.c (Load_SubClassRule),
(Load_ChainSubClassRule):
* pango/opentype/harfbuzz-open.c (Load_ClassDef1),
(Load_ClassDef2), (_HB_OPEN_Load_ClassDefinition),
(_HB_OPEN_Load_EmptyClassDefinition),
(_HB_OPEN_Free_ClassDefinition):
Remove ClassDef->Defined field. This is the comment accompanying it:
The `Defined' field is not defined in the OpenType specification
but apparently needed for processing fonts like trado.ttf: This
font refers to a class which contains not a single element. We
map such classes to class 0.
The comment is correct that trado.ttf (MS Traditional Arabic) uses
such classes. However, in my testing I couldn't identify any
problems with the font if the special handling is removed. I also
processed as many fonts as I could get my hand on and trado.ttf was
the only not-totally-broken font hitting the special-case code.
DejaVu fonts hit it too, but I'm sure they do not require the
special-handling code. Most probably, that code introduces bugs
in them.
The special-casing was consuming lots of memory. EIGHT MEGABYTES
for loading DejaVu Sans! While this could be complete fixed, I
decided to remove the special-handling code altogether. I don't
think it will make any real difference, and if it does, we'll fix
fonts. Such hacks will not be in harfbuzz-ng anyway.
Bug originally reported by nsf.
svn path=/trunk/; revision=2819
Behdad Esfahbod [Thu, 29 Jan 2009 09:19:56 +0000 (09:19 +0000)]
Use calloc(), instead of malloc()ing and memset()ing.
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
instead of malloc()ing and memset()ing.
svn path=/trunk/; revision=2818
Behdad Esfahbod [Thu, 29 Jan 2009 09:19:43 +0000 (09:19 +0000)]
Remove old cruft.
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-dump-main.c (main): Remove old cruft.
svn path=/trunk/; revision=2817
Behdad Esfahbod [Thu, 29 Jan 2009 09:19:33 +0000 (09:19 +0000)]
Don't disassociate family from fontmap during cache_clear().
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_font_map_fini),
(pango_fc_font_map_shutdown): Don't disassociate family from fontmap
during cache_clear().
svn path=/trunk/; revision=2816
Behdad Esfahbod [Thu, 29 Jan 2009 09:19:20 +0000 (09:19 +0000)]
Allocate all array rows in a single ALLOC call. Saves over 2000 alloc
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-gpos.c (Load_BaseArray), (Free_BaseArray):
Allocate all array rows in a single ALLOC call. Saves over 2000
alloc calls when loading DejaVu Sans!
svn path=/trunk/; revision=2815
Behdad Esfahbod [Wed, 28 Jan 2009 23:41:59 +0000 (23:41 +0000)]
Bug 560792 – Make PangoLayoutLine with line->layout==NULL renderable
2009-01-28 Behdad Esfahbod <behdad@gnome.org>
Bug 560792 – Make PangoLayoutLine with line->layout==NULL renderable
* pango/pango-renderer.c (pango_renderer_draw_layout_line),
(pango_renderer_draw_glyph_item), (pango_renderer_set_matrix):
Handle line->layout == NULL.
svn path=/trunk/; revision=2814
Behdad Esfahbod [Wed, 28 Jan 2009 23:27:13 +0000 (23:27 +0000)]
Bug 567392 – Abiword crashes in pango when opening document with certain
2009-01-28 Behdad Esfahbod <behdad@gnome.org>
Bug 567392 – Abiword crashes in pango when opening document with
certain locales
* pango/pango-ot-info.c (pango_ot_info_find_language),
(pango_ot_info_find_feature), (pango_ot_info_list_languages),
(pango_ot_info_list_features): Protect against more broken fonts.
svn path=/trunk/; revision=2813
Behdad Esfahbod [Wed, 28 Jan 2009 23:27:05 +0000 (23:27 +0000)]
Fix warning
svn path=/trunk/; revision=2812
Behdad Esfahbod [Wed, 28 Jan 2009 23:26:57 +0000 (23:26 +0000)]
Bump version to 1.23.0. Not releasing yet.
2009-01-28 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Bump version to 1.23.0. Not releasing yet.
svn path=/trunk/; revision=2811
Behdad Esfahbod [Wed, 28 Jan 2009 22:10:49 +0000 (22:10 +0000)]
Update doc templates
svn path=/trunk/; revision=2810
Behdad Esfahbod [Wed, 28 Jan 2009 22:08:18 +0000 (22:08 +0000)]
Bug 566727 – PangoFontsetLazy
2009-01-27 Behdad Esfahbod <behdad@gnome.org>
Bug 566727 – PangoFontsetLazy
* pango/pangofc-fontmap.c: Rework caching.
Cache FcFontSort results separately from PangoFontset's.
Add PangoFcFontset which is lazy and does not create fonts until it
really needs to.
Use FcFontMatch() and only do FcFontSort() if fallback fonts are
needed.
svn path=/trunk/; revision=2809
Behdad Esfahbod [Wed, 28 Jan 2009 22:08:10 +0000 (22:08 +0000)]
Bug 567165 – Apply all pattern matrices
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
Bug 567165 – Apply all pattern matrices
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new):
* pango/pangofc-fontmap.c (pango_fc_font_map_new_font):
Apply all FC_MATRIX values, not just the first one. Fixes synthetic
italic rotated text with ft2 and xft backends. Can't believe no one
ever noticed that they are broken...
svn path=/trunk/; revision=2808
Behdad Esfahbod [Wed, 28 Jan 2009 22:08:03 +0000 (22:08 +0000)]
Fix typo.
svn path=/trunk/; revision=2807
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:54 +0000 (22:07 +0000)]
Fix make check
svn path=/trunk/; revision=2806
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:46 +0000 (22:07 +0000)]
Autogenerage pango.types. Remove it from repository, but dist it.
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
* docs/Makefile.am:
* docs/pango.types:
Autogenerage pango.types. Remove it from repository, but dist it.
svn path=/trunk/; revision=2805
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:38 +0000 (22:07 +0000)]
Change PangoFc font loading API such that PangoContext is not passed down.
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/pangofc-fontmap.sgml:
* docs/tmpl/text-attributes.sgml:
* pango/pangocairo-fc.h:
* pango/pangocairo-fcfont.c (get_font_size), (get_gravity_class),
(get_gravity), (_pango_cairo_fc_font_new):
* pango/pangocairo-fcfontmap.c
(pango_cairo_fc_font_map_font_key_substitute),
(pango_cairo_fc_font_map_create_font),
(pango_cairo_fc_font_map_class_init):
* pango/pangofc-font.c (_pango_fc_font_get_font_key),
(_pango_fc_font_set_font_key):
* pango/pangofc-fontmap.c (pango_fc_font_key_equal),
(pango_fc_font_key_hash), (pango_fc_font_key_free),
(pango_fc_font_key_copy), (get_context_matrix),
(pango_fc_font_key_init), (pango_fc_font_key_get_pattern),
(pango_fc_font_key_get_matrix),
(pango_fc_font_key_get_context_key), (pango_fc_font_map_init),
(pango_fc_font_map_class_init), (pango_fc_font_map_add),
(_pango_fc_font_map_remove), (pango_fc_make_pattern),
(pango_fc_font_map_new_font), (pango_fc_default_substitute),
(pango_fc_font_map_get_patterns), (pango_fc_font_map_load_fontset):
* pango/pangofc-fontmap.h:
* pango/pangofc-private.h:
Change PangoFc font loading API such that PangoContext is not passed
down. We use a new opaque struct called PangoFcFontKey. This struct
is in fact our font hash key. This avoids problems where previously
we were using context members that were not necessarily considered
by the pangofc layer when caching.
This is in preparation for lazy loading of fonts in the pangofc fontmap.
svn path=/trunk/; revision=2804
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:30 +0000 (22:07 +0000)]
Remove desc argument from _pango_cairo_font_private_initialize(). Replace
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-atsuifont.c (_pango_cairo_atsui_font_new):
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new):
* pango/pangocairo-font.c (_pango_cairo_font_private_initialize):
* pango/pangocairo-private.h:
* pango/pangocairo-win32font.c (_pango_cairo_win32_font_new):
Remove desc argument from _pango_cairo_font_private_initialize().
Replace it with gravity, the only thing from desc we actually needed.
This is in preparation for lazy loading of fonts in the pangofc fontmap.
svn path=/trunk/; revision=2803
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:21 +0000 (22:07 +0000)]
Avoid context key comparison if any of the keys is NULL.
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (font_hash_key_equal):
Avoid context key comparison if any of the keys is NULL.
svn path=/trunk/; revision=2802
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:13 +0000 (22:07 +0000)]
Remove context argument from _pango_cairo_font_private_initialize().
2009-01-09 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-atsuifont.c (_pango_cairo_atsui_font_new):
* pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new):
* pango/pangocairo-font.c (_pango_cairo_font_private_initialize):
* pango/pangocairo-private.h:
* pango/pangocairo-win32font.c (_pango_cairo_win32_font_new):
Remove context argument from _pango_cairo_font_private_initialize().
Replace it with pango_ctm and font_options, the only things from
context we actually needed. This is in preparation for lazy loading
of fonts in the pangofc fontmap.
svn path=/trunk/; revision=2801
Behdad Esfahbod [Wed, 28 Jan 2009 22:07:04 +0000 (22:07 +0000)]
[pangocairo-fc] Remove unused member
svn path=/trunk/; revision=2800
Behdad Esfahbod [Tue, 27 Jan 2009 12:23:31 +0000 (12:23 +0000)]
Minor.
svn path=/trunk/; revision=2799
Johan Dahlin [Tue, 20 Jan 2009 22:38:14 +0000 (22:38 +0000)]
Bug 567934 – Add introspection support inside pango
2009-01-20 Johan Dahlin <jdahlin@async.com.br>
Bug 567934 – Add introspection support inside pango
* configure.in:
* pango/Makefile.am:
* pango/pango-attributes.c:
* pango/pango-layout.c:
svn path=/trunk/; revision=2798
Behdad Esfahbod [Thu, 8 Jan 2009 07:34:49 +0000 (07:34 +0000)]
Protect against a NULL context.
2009-01-08 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns):
Protect against a NULL context.
svn path=/trunk/; revision=2797
Behdad Esfahbod [Thu, 8 Jan 2009 07:00:52 +0000 (07:00 +0000)]
Improve warning message.
2009-01-08 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run):
Improve warning message.
svn path=/trunk/; revision=2796
Behdad Esfahbod [Thu, 8 Jan 2009 06:17:03 +0000 (06:17 +0000)]
Bug 549532 – Correction to the sample string for Hindi in
2009-01-08 Behdad Esfahbod <behdad@gnome.org>
Bug 549532 – Correction to the sample string for Hindi in
pango-language-sample-table.h
* pango/pango-language-sample-table.h:
Improve Hindi sample text.
svn path=/trunk/; revision=2795
Behdad Esfahbod [Thu, 8 Jan 2009 01:33:23 +0000 (01:33 +0000)]
Bug 566726 – Minor optimization
2009-01-07 Behdad Esfahbod <behdad@gnome.org>
Bug 566726 – Minor optimization
* pango/pango-context.c (get_shaper_and_font):
Don't walk the fontset if there are no engines.
svn path=/trunk/; revision=2794
Behdad Esfahbod [Wed, 7 Jan 2009 23:45:22 +0000 (23:45 +0000)]
Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and
2009-01-07 Behdad Esfahbod <behdad@gnome.org>
Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and
PANGO_ATTRIBUTE_INDEX_TO_TEXT_END
* docs/pango-sections.txt:
* docs/tmpl/text-attributes.sgml:
* pango/pango-attributes.c (pango_attribute_init):
* pango/pango-attributes.h:
Add two new public macros:
PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING
PANGO_ATTRIBUTE_INDEX_TO_TEXT_END
svn path=/trunk/; revision=2793
Behdad Esfahbod [Wed, 7 Jan 2009 08:02:45 +0000 (08:02 +0000)]
Bug 551469 – Fold '@' to '-' when parsing PangoLanguages
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 551469 – Fold '@' to '-' when parsing PangoLanguages
* pango/pango-language.c: Fold '@' to '-' when parsing PangoLanguages.
svn path=/trunk/; revision=2792
Behdad Esfahbod [Tue, 6 Jan 2009 12:00:07 +0000 (12:00 +0000)]
Bug 328206 – Update/remove some old files
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 328206 – Update/remove some old files
* docs/Makefile.am:
* docs/TEXT/glossary:
Remove some old files.
svn path=/trunk/; revision=2791
Behdad Esfahbod [Tue, 6 Jan 2009 11:59:56 +0000 (11:59 +0000)]
Bug 328206 – Update/remove some old files
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 328206 – Update/remove some old files
* tools/Makefile.am:
* tools/add-copyright:
* tools/compress-table.pl:
* tools/maps/README:
* tools/maps/tis-620:
Remove some old files.
svn path=/trunk/; revision=2790
Behdad Esfahbod [Tue, 6 Jan 2009 11:52:45 +0000 (11:52 +0000)]
Remove the old gen-script-for-lang tool, rename the new one to it.
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
* tools/Makefile.am:
* tools/gen-script-for-lang.c:
* tools/gen-script-for-lang-new.c:
Remove the old gen-script-for-lang tool, rename the new one to it.
svn path=/trunk/; revision=2789
Behdad Esfahbod [Tue, 6 Jan 2009 11:33:51 +0000 (11:33 +0000)]
Bug 166709 – Handle font variants more consistently
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 166709 – Handle font variants more consistently
* configure.in: Require fontconfig >= 2.5.0
* pango/fonts.c: Parse "Roman" as style=normal instead of
weight=normal. Doesn't make much difference in reality.
* pango/pangofc-fontmap.c (pango_fc_convert_weight_to_fc),
(pango_fc_convert_weight_to_pango): Update to reflect newly
added weights.
svn path=/trunk/; revision=2788
Behdad Esfahbod [Tue, 6 Jan 2009 11:07:02 +0000 (11:07 +0000)]
Bug 166709 – Handle font variants more consistently
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 166709 – Handle font variants more consistently
* pango/pango-font.h:
Add enum values PANGO_WEIGHT_BOOK and PANGO_WEIGHT_ULTRAHEAVY.
* pango/fonts.c:
* docs/tmpl/fonts.sgml:
Add new weights with their aliases, as well as aliasing "Roman" to the
normal weight.
svn path=/trunk/; revision=2787
Behdad Esfahbod [Tue, 6 Jan 2009 10:40:30 +0000 (10:40 +0000)]
Make it Unicode safe.
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (pango_font_description_to_filename):
Make it Unicode safe.
svn path=/trunk/; revision=2786
Behdad Esfahbod [Tue, 6 Jan 2009 10:36:05 +0000 (10:36 +0000)]
Move the parse_*() functions in fonts.c and have them share tables with
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (find_field), (parse_field), (pango_parse_style),
(pango_parse_variant), (pango_parse_weight), (pango_parse_stretch):
Move the parse_*() functions in fonts.c and have them share tables
with pango_font_description_to/from_string().
* pango/pango-utils.c (parse_int), (pango_parse_enum):
Accept integers in pango_parse_enum().
svn path=/trunk/; revision=2785
Behdad Esfahbod [Tue, 6 Jan 2009 09:52:00 +0000 (09:52 +0000)]
Bug 166676 – pango_fc_font_map_finalize
2009-01-06 Behdad Esfahbod <behdad@gnome.org>
Bug 166676 – pango_fc_font_map_finalize
* pango/pangofc-fontmap.c (pango_fc_font_map_finalize),
(pango_fc_face_describe), (pango_fc_face_list_sizes),
(pango_fc_face_finalize), (pango_fc_face_class_init),
(pango_fc_family_list_faces), (pango_fc_family_finalize),
(pango_fc_family_class_init):
Finalize families and faces.
svn path=/trunk/; revision=2784
Tor Lillqvist [Tue, 6 Jan 2009 09:36:52 +0000 (09:36 +0000)]
Bug 164001 - pango-querymodules doesn't work uninstalled on win32
2009-01-06 Tor Lillqvist <tml@iki.fi>
Bug 164001 - pango-querymodules doesn't work uninstalled on win32
* pango/pango-utils.c (pango_get_lib_subdirectory): When running
against an uninstalled, compile-time DLL, in the libtool-style
.libs folder, use the compile-time install prefix.
svn path=/trunk/; revision=2783
Behdad Esfahbod [Sun, 4 Jan 2009 02:25:59 +0000 (02:25 +0000)]
Bug 384362 – pango can't select some font styles
2009-01-03 Behdad Esfahbod <behdad@gnome.org>
Bug 384362 – pango can't select some font styles
* pango/pango-font.h:
Add enum values PANGO_WEIGHT_THIN and PANGO_WEIGHT_MEDIUM to
PangoWeight.
* pango/fonts.c: Parse "Thin", "Extra-Light", "Regular", "Demi-Bold",
"Extra-Bold", and "Black" as weight descriptors (from the OpenType
spec).
svn path=/trunk/; revision=2782
Behdad Esfahbod [Sun, 4 Jan 2009 02:11:19 +0000 (02:11 +0000)]
Bug 168085 – numeric styles in pango_font_description_to_string()
2009-01-03 Behdad Esfahbod <behdad@gnome.org>
Bug 168085 – numeric styles in pango_font_description_to_string()
* pango/fonts.c (parse_int), (find_field), (find_field_any),
(append_field), (pango_font_description_to_string):
Print-out, and parse, numeric styles correctly. Things like
"DejaVu Sans weight=100" parse correctly now.
svn path=/trunk/; revision=2781
Behdad Esfahbod [Sun, 4 Jan 2009 01:27:49 +0000 (01:27 +0000)]
Bug 529591 – Code related to malayalam is misplaced. Patch from Rahul
2009-01-03 Behdad Esfahbod <behdad@gnome.org>
Bug 529591 – Code related to malayalam is misplaced.
Patch from Rahul Bhalerao
* modules/indic/indic-ot.c (indic_ot_reorder): Fix it.
svn path=/trunk/; revision=2780
Behdad Esfahbod [Sat, 3 Jan 2009 01:06:06 +0000 (01:06 +0000)]
Bug 515807 – Don't bind modules lazily
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
Bug 515807 – Don't bind modules lazily
* pango/modules.c (pango_module_load): Don't bind modules lazy.
svn path=/trunk/; revision=2779
Behdad Esfahbod [Sat, 3 Jan 2009 01:03:45 +0000 (01:03 +0000)]
Bug 512662 – Update check.docs for pango-undeclared.txt
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
Bug 512662 – Update check.docs for pango-undeclared.txt
* docs/Makefile.am:
* docs/check.docs:
Sync to the version in cairo.
svn path=/trunk/; revision=2778
Behdad Esfahbod [Fri, 2 Jan 2009 11:39:51 +0000 (11:39 +0000)]
Make sure we measure layout with the same surface type as the final
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
* pango-view/viewer-main.c (main):
* pango-view/viewer-pangocairo.c (pangocairo_view_render):
* pango-view/viewer-pangoft2.c (pangoft2_view_render):
* pango-view/viewer-pangox.c (pangox_view_render):
* pango-view/viewer-pangoxft.c (pangoxft_view_render):
* pango-view/viewer.h:
Make sure we measure layout with the same surface type as the
final target. Also reduces fonts loaded by the pangocairo backend.
svn path=/trunk/; revision=2777
Behdad Esfahbod [Fri, 2 Jan 2009 08:41:42 +0000 (08:41 +0000)]
Completely ignore CTM translation offsets.
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-context.c (_pango_cairo_update_context):
Completely ignore CTM translation offsets.
svn path=/trunk/; revision=2776
Behdad Esfahbod [Fri, 2 Jan 2009 07:19:03 +0000 (07:19 +0000)]
Finalize FreeType library after finalizing the FC fontmap. Fixes segfault
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize):
* pango/pangoft2-fontmap.c (pango_ft2_font_map_finalize):
Finalize FreeType library after finalizing the FC fontmap. Fixes
segfault in the PangoFT2FontMap's finalize.
svn path=/trunk/; revision=2775
Behdad Esfahbod [Fri, 2 Jan 2009 07:00:36 +0000 (07:00 +0000)]
Fix possible reference leak when fallback is disabled.
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (shaper_font_element_destroy),
(get_shaper_font_cache), (shaper_font_cache_insert),
(get_shaper_and_font_foreach), (itemize_state_process_run):
Fix possible reference leak when fallback is disabled.
svn path=/trunk/; revision=2774
Behdad Esfahbod [Fri, 26 Dec 2008 05:41:34 +0000 (05:41 +0000)]
Bug 565644 – Maybe pango_font_descriptions_free is deprecated
2008-12-26 Behdad Esfahbod <behdad@gnome.org>
Bug 565644 – Maybe pango_font_descriptions_free is deprecated
* pango/fonts.c: Adjust docs.
svn path=/trunk/; revision=2773
Behdad Esfahbod [Fri, 26 Dec 2008 05:09:58 +0000 (05:09 +0000)]
Call cairo_debug_reset_static_data().
2008-12-26 Behdad Esfahbod <behdad@gnome.org>
* pango-view/viewer-pangocairo.c (pangocairo_view_destroy):
Call cairo_debug_reset_static_data().
svn path=/trunk/; revision=2772
Behdad Esfahbod [Fri, 26 Dec 2008 05:09:48 +0000 (05:09 +0000)]
Fix all warnings in modules/.
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* modules/arabic/arabic-fc.c (arabic_engine_shape):
* modules/arabic/arabic-lang.c (arabic_engine_break):
* modules/basic/basic-fc.c (basic_engine_shape):
* modules/basic/basic-x.c (find_char), (conv_8bit), (conv_eucjp),
(conv_16bit), (conv_16bit_MSB_on), (conv_gb18030_1), (conv_euctw),
(conv_ucs4), (basic_engine_shape), (basic_engine_covers):
* modules/hangul/hangul-fc.c (hangul_engine_shape):
* modules/hebrew/hebrew-fc.c (add_cluster), (fallback_shape):
* modules/indic/indic-lang.c (indic_engine_break):
* modules/khmer/khmer-fc.c (khmer_engine_shape):
* modules/syriac/syriac-fc.c (syriac_engine_shape):
* modules/thai/thai-fc.c (get_glyph_index_tis),
(thai_engine_shape), (thai_make_unknown_glyph):
* modules/thai/thai-lang.c (thai_engine_break):
* modules/thai/thai-shaper.c (get_glyphs_list):
* modules/tibetan/tibetan-fc.c (tibetan_engine_shape):
Fix all warnings in modules/.
svn path=/trunk/; revision=2771
Behdad Esfahbod [Fri, 26 Dec 2008 03:23:09 +0000 (03:23 +0000)]
Fix warning.
svn path=/trunk/; revision=2770
Behdad Esfahbod [Fri, 26 Dec 2008 03:22:31 +0000 (03:22 +0000)]
Fix all warnings in pango-view/
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* pango-view/viewer-main.c (main):
* pango-view/viewer-pangocairo.c (pangocairo_view_create),
(transform_callback), (pangocairo_view_render),
(pangocairo_view_write):
* pango-view/viewer-pangoft2.c (substitute_func),
(pangoft2_view_create), (pangoft2_view_create_surface),
(pangoft2_view_destroy_surface), (render_callback),
(pangoft2_view_render), (pangoft2_view_write):
* pango-view/viewer-pangox.c (render_callback):
* pango-view/viewer-pangoxft.c (default_substitute),
(render_callback):
* pango-view/viewer-render.c (parse_enum), (parse_align),
(parse_ellipsis), (parse_gravity), (parse_gravity_hint),
(parse_hinting), (parse_wrap), (parse_backend), (show_version):
* pango-view/viewer-x.c (x_view_init):
Fix all warnings in pango-view/
svn path=/trunk/; revision=2769
Behdad Esfahbod [Fri, 26 Dec 2008 02:55:57 +0000 (02:55 +0000)]
Cleanup fontmap finalization.
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_font_map_finalize),
(pango_fc_font_map_shutdown):
Cleanup fontmap finalization.
svn path=/trunk/; revision=2768
Behdad Esfahbod [Fri, 26 Dec 2008 02:31:47 +0000 (02:31 +0000)]
Bug 469049 – Fix all compiler warnings
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
Bug 469049 – Fix all compiler warnings
* pango-view/viewer-pangocairo.c (render_callback):
* pango/fonts.c (append_field), (pango_font_description_to_string):
* pango/opentype/harfbuzz-dump.c:
* pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels):
* pango/pango-coverage.c (pango_coverage_set):
* pango/pango-markup.c (span_parse_func):
* pango/pango-renderer.c
(pango_renderer_default_draw_error_underline):
* pango/pango-utils.c (pango_scan_string):
* pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid),
(draw_error_underline), (pango_cairo_renderer_class_init):
Fix all the remaining warnings.
svn path=/trunk/; revision=2767
Behdad Esfahbod [Fri, 26 Dec 2008 02:31:35 +0000 (02:31 +0000)]
Fix more warnings.
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* pango/modules.c (pango_module_load), (script_info_free):
* pango/opentype/harfbuzz-gpos.c (HB_Load_GPOS_Table):
* pango/pango-bidi-type.c:
* pango/pango-coverage.c (pango_coverage_ref),
(pango_coverage_unref):
* pango/pango-engine.c (pango_engine_shape_real_covers),
(fallback_engine_shape), (fallback_engine_covers):
* pango/pango-fontmap.c (pango_font_map_init):
* pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
(pango_ot_ruleset_new):
* pango/pangofc-decoder.c (pango_fc_decoder_init),
(pango_fc_decoder_class_init):
* pango/pangofc-font.c (pango_fc_font_find_shaper),
(pango_fc_font_get_coverage):
* pango/pangofc-fontmap.c (pango_fc_font_map_list_families),
(pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
(get_first_font), (_pango_fc_font_map_get_coverage),
(cleanup_font), (pango_fc_font_description_from_pattern),
(pango_fc_face_list_sizes), (pango_fc_family_list_faces):
* pango/pangoft2-fontmap.c (pango_ft2_font_map_get_resolution):
* pango/pangoft2-render.c (pango_ft2_renderer_init),
(pango_ft2_renderer_draw_trapezoid):
* pango/pangoft2.c (pango_ft2_font_get_face),
(pango_ft2_font_real_unlock_face),
(pango_ft2_free_glyph_info_callback):
Fix more warnings.
svn path=/trunk/; revision=2766
Behdad Esfahbod [Fri, 26 Dec 2008 02:20:59 +0000 (02:20 +0000)]
Fix warnings.
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break):
* pango/fonts.c (find_field_any), (pango_font_class_init),
(pango_font_init), (pango_font_metrics_ref),
(pango_font_metrics_unref), (pango_font_family_class_init),
(pango_font_family_init), (pango_font_face_class_init),
(pango_font_face_init):
* pango/pango-attributes.c (pango_attr_list_ref),
(pango_attr_list_unref), (pango_attr_iterator_get_font):
* pango/pango-layout.c (pango_layout_set_height), (extents_free),
(no_shape_filter_func), (pango_layout_line_ref),
(pango_layout_line_unref), (pango_layout_get_item_properties):
* pango/pango-markup.c (end_element_handler), (text_handler),
(b_parse_func), (big_parse_func), (span_parse_func),
(i_parse_func), (markup_parse_func), (s_parse_func),
(sub_parse_func), (sup_parse_func), (small_parse_func),
(tt_parse_func), (u_parse_func):
* pango/pango-ot-info.c (get_glyph_class):
* pango/pango-renderer.c (get_item_properties),
(pango_renderer_default_prepare_run):
* pango/pango-utils.c (_pango_shape_shape):
* pango/pangocairo-fcfontmap.c
(pango_cairo_fc_font_map_get_font_type),
(pango_cairo_fc_font_map_context_substitute),
(pango_cairo_fc_font_map_context_key_get),
(pango_cairo_fc_font_map_context_key_copy),
(pango_cairo_fc_font_map_context_key_free),
(pango_cairo_fc_font_map_context_key_hash),
(pango_cairo_fc_font_map_context_key_equal):
* pango/pangocairo-fontmap.c
(pango_cairo_font_map_new_for_font_type),
(pango_cairo_font_map_set_default):
* pango/pangocairo-render.c (pango_cairo_renderer_init):
* pango/pangox-fontcache.c (free_cache_entry):
* pango/pangox-fontmap.c (close_display_cb),
(list_families_foreach), (pango_x_font_map_load_font),
(ignore_error):
* pango/pangox.c (average_width_foreach), (subfonts_foreach),
(pango_x_font_find_shaper), (pango_x_get_unknown_glyph),
(pango_x_get_item_properties), (pango_x_apply_ligatures),
(pango_x_font_get_unknown_glyph):
* pango/pangoxft-fontmap.c (pango_xft_font_map_init),
(close_display_cb):
* pango/querymodules.c (show_version):
Fix warnings.
svn path=/trunk/; revision=2765
Behdad Esfahbod [Mon, 22 Dec 2008 21:16:03 +0000 (21:16 +0000)]
Reword.
svn path=/trunk/; revision=2764
Behdad Esfahbod [Mon, 22 Dec 2008 21:15:20 +0000 (21:15 +0000)]
Bug 565379 – pango_font_description_better_match some style attributes
2008-12-22 Behdad Esfahbod <behdad@gnome.org>
Bug 565379 – pango_font_description_better_match some style attributes
of old_match are not checked
* pango/fonts.c: Improve docs.
svn path=/trunk/; revision=2763
Behdad Esfahbod [Wed, 17 Dec 2008 20:18:59 +0000 (20:18 +0000)]
Bug 564877 – pango-engine.h: PANGO_MODULE_PREFIX and G_MODULE_EXPORT
2008-12-17 Behdad Esfahbod <behdad@gnome.org>
Bug 564877 – pango-engine.h: PANGO_MODULE_PREFIX and G_MODULE_EXPORT
* pango/pango-engine.h: Don't add G_MODULE_EXPORT. This
roles back a change introduced in 1.22.4.
svn path=/trunk/; revision=2762
Behdad Esfahbod [Mon, 15 Dec 2008 20:52:39 +0000 (20:52 +0000)]
=== Released 1.22.4 ===
2008-12-15 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.22.4 ===
* configure.in: Version 1.22.4
* NEWS: Updated.
svn path=/trunk/; revision=2760
Behdad Esfahbod [Mon, 15 Dec 2008 19:37:25 +0000 (19:37 +0000)]
Bug 564644 – Not complete description of the
2008-12-15 Behdad Esfahbod <behdad@gnome.org>
Bug 564644 – Not complete description of the
pango_font_description_better_match function
* pango/fonts.c: Improve docs even more.
svn path=/trunk/; revision=2759
Behdad Esfahbod [Mon, 15 Dec 2008 18:17:21 +0000 (18:17 +0000)]
Bug 564644 – Not complete description of the
2008-12-15 Behdad Esfahbod <behdad@gnome.org>
Bug 564644 – Not complete description of the
pango_font_description_better_match function
* pango/fonts.c: Improve docs.
svn path=/trunk/; revision=2758
Behdad Esfahbod [Sun, 14 Dec 2008 18:22:53 +0000 (18:22 +0000)]
Bug 563898 – Generated output is not deterministic
2008-12-14 Behdad Esfahbod <behdad@gnome.org>
Bug 563898 – Generated output is not deterministic
* docs/pango-querymodules.xml:
* docs/pango_markup.sgml:
Add section ids, such that generated HTML is deterministic.
svn path=/trunk/; revision=2757
Behdad Esfahbod [Tue, 9 Dec 2008 21:42:06 +0000 (21:42 +0000)]
Don't call exit(). Let us crash.
2008-12-09 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoxft-font.c (pango_xft_font_init),
(load_fallback_font): Don't call exit(). Let us crash.
svn path=/trunk/; revision=2756
Behdad Esfahbod [Tue, 9 Dec 2008 10:09:30 +0000 (10:09 +0000)]
Bug 563803 – pango_renderer_finalize fails to call parent finalize
2008-12-09 Behdad Esfahbod <behdad@gnome.org>
Bug 563803 – pango_renderer_finalize fails to call parent finalize
* pango/pango-renderer.c (pango_renderer_class_init),
(pango_renderer_finalize): Call parent finalize.
* pango/pango-renderer.c (add_strikethrough),
(pango_renderer_default_draw_glyph_item),
(pango_renderer_default_draw_error_underline):
Clean up a bit.
svn path=/trunk/; revision=2755
Behdad Esfahbod [Mon, 8 Dec 2008 03:59:49 +0000 (03:59 +0000)]
Bug 499626 – Space should be optional after comma in
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
Bug 499626 – Space should be optional after comma in
PangoFontDescription input string
* pango/fonts.c (getword): Don't require space after comma.
svn path=/trunk/; revision=2754
Behdad Esfahbod [Mon, 8 Dec 2008 03:53:12 +0000 (03:53 +0000)]
Bug 499624 – Spaces around commas in PangoFontDescription family name
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
Bug 499624 – Spaces around commas in PangoFontDescription family name
should be trimmed
* pango/fonts.c (pango_font_description_from_string):
* pango/pangofc-fontmap.c (pango_fc_make_pattern):
Do it in pango_font_description_from_string() instead of pangofc
backend.
svn path=/trunk/; revision=2753
Behdad Esfahbod [Mon, 8 Dec 2008 03:41:22 +0000 (03:41 +0000)]
Bug 499624 – Spaces around commas in PangoFontDescription family name
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
Bug 499624 – Spaces around commas in PangoFontDescription family name
should be trimmed
* pango/pangofc-fontmap.c (pango_fc_make_pattern): Trim family strings
before adding to pattern.
svn path=/trunk/; revision=2752
Behdad Esfahbod [Mon, 8 Dec 2008 03:28:29 +0000 (03:28 +0000)]
Bug 563557 – set g_get_prgname() in fc pattern
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
Bug 563557 – set g_get_prgname() in fc pattern
* docs/pango-sections.txt:
* pango/pangofc-fontmap.c (pango_fc_make_pattern):
* pango/pangofc-fontmap.h:
Add PANGO_FC_PRGNAME which is the fontconfig element "pangoprgname".
Populate it on all our fontconfig search patterns using
g_get_prgname(). See bug for sample use.
svn path=/trunk/; revision=2751
Behdad Esfahbod [Mon, 8 Dec 2008 01:01:40 +0000 (01:01 +0000)]
Add G_MODULE_EXPORT annotation for modules.
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-engine.h: Add G_MODULE_EXPORT annotation for modules.
svn path=/trunk/; revision=2750
Behdad Esfahbod [Sun, 7 Dec 2008 07:36:15 +0000 (07:36 +0000)]
Fix docs re NULL language. Also allow NULL desc.
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (pango_context_get_metrics):
Fix docs re NULL language. Also allow NULL desc.
svn path=/trunk/; revision=2749
Behdad Esfahbod [Sat, 6 Dec 2008 22:17:16 +0000 (22:17 +0000)]
Add more debug info if creating scaled font failed.
2008-12-06 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c
(_pango_cairo_font_private_get_scaled_font):
Add more debug info if creating scaled font failed.
svn path=/trunk/; revision=2748