summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix check.PANGO_1_23_01.23.0Behdad Esfahbod2009-02-031-0/+6
| | | | svn path=/trunk/; revision=2829
* === Released 1.23.0 ===Behdad Esfahbod2009-02-032-0/+62
| | | | | | | | | | | | 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
* Comment out gobject-introspection for now, to get a release out.Behdad Esfahbod2009-02-032-14/+19
| | | | | | | | | 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
* Fix conditional.Behdad Esfahbod2009-02-032-1/+5
| | | | | | | | 2009-02-02 Behdad Esfahbod <behdad@gnome.org> * configure.in: Fix conditional. svn path=/trunk/; revision=2826
* Don't do anything in shutdown. Was causing double-free of cairo fontBehdad Esfahbod2009-02-022-9/+6
| | | | | | | | | | 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
* Allocate all array rows in a single ALLOC call. Saves over 100 alloc callsBehdad Esfahbod2009-02-022-42/+24
| | | | | | | | | | | 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
* It's not a programming error if face->family is NULL or family->fontmap isBehdad Esfahbod2009-01-312-4/+13
| | | | | | | | | | | 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
* TypoBehdad Esfahbod2009-01-311-1/+1
| | | | svn path=/trunk/; revision=2822
* Bug 569763 – pango doesn't like font descriptions without family!Behdad Esfahbod2009-01-302-5/+14
| | | | | | | | | | | 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
* Remove default font family and size. This means default is "serif 12" now,Behdad Esfahbod2009-01-303-23/+10
| | | | | | | | | | 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
* Remove ClassDef->Defined field. This is the comment accompanying it:Behdad Esfahbod2009-01-296-106/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use calloc(), instead of malloc()ing and memset()ing.Behdad Esfahbod2009-01-292-3/+6
| | | | | | | | | 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
* Remove old cruft.Behdad Esfahbod2009-01-292-143/+5
| | | | | | | | 2009-01-29 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-dump-main.c (main): Remove old cruft. svn path=/trunk/; revision=2817
* Don't disassociate family from fontmap during cache_clear().Behdad Esfahbod2009-01-292-6/+12
| | | | | | | | | | 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
* Allocate all array rows in a single ALLOC call. Saves over 2000 allocBehdad Esfahbod2009-01-292-40/+23
| | | | | | | | | | 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
* Bug 560792 – Make PangoLayoutLine with line->layout==NULL renderableBehdad Esfahbod2009-01-282-15/+29
| | | | | | | | | | | | 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
* Bug 567392 – Abiword crashes in pango when opening document with certainBehdad Esfahbod2009-01-282-8/+16
| | | | | | | | | | | | | 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
* Fix warningBehdad Esfahbod2009-01-281-6/+3
| | | | svn path=/trunk/; revision=2812
* Bump version to 1.23.0. Not releasing yet.Behdad Esfahbod2009-01-282-5/+8
| | | | | | | | 2009-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: Bump version to 1.23.0. Not releasing yet. svn path=/trunk/; revision=2811
* Update doc templatesBehdad Esfahbod2009-01-281-23/+23
| | | | svn path=/trunk/; revision=2810
* Bug 566727 – PangoFontsetLazyBehdad Esfahbod2009-01-285-454/+671
| | | | | | | | | | | | | | | | | | 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
* Bug 567165 – Apply all pattern matricesBehdad Esfahbod2009-01-287-88/+323
| | | | | | | | | | | | | | 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
* Fix typo.Behdad Esfahbod2009-01-281-1/+1
| | | | svn path=/trunk/; revision=2807
* Fix make checkBehdad Esfahbod2009-01-281-0/+3
| | | | svn path=/trunk/; revision=2806
* Autogenerage pango.types. Remove it from repository, but dist it.Behdad Esfahbod2009-01-283-37/+20
| | | | | | | | | | 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
* Change PangoFc font loading API such that PangoContext is not passed down.Behdad Esfahbod2009-01-2811-228/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove desc argument from _pango_cairo_font_private_initialize(). ReplaceBehdad Esfahbod2009-01-286-6/+17
| | | | | | | | | | | | | | | 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
* Avoid context key comparison if any of the keys is NULL.Behdad Esfahbod2009-01-282-2/+7
| | | | | | | | | 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
* Remove context argument from _pango_cairo_font_private_initialize().Behdad Esfahbod2009-01-286-9/+22
| | | | | | | | | | | | | | | | 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
* [pangocairo-fc] Remove unused memberBehdad Esfahbod2009-01-281-2/+0
| | | | svn path=/trunk/; revision=2800
* Minor.Behdad Esfahbod2009-01-271-1/+1
| | | | svn path=/trunk/; revision=2799
* Bug 567934 – Add introspection support inside pangoJohan Dahlin2009-01-205-26/+202
| | | | | | | | | | | | | | 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
* Protect against a NULL context.Behdad Esfahbod2009-01-082-1/+6
| | | | | | | | | 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
* Improve warning message.Behdad Esfahbod2009-01-082-10/+6
| | | | | | | | | 2009-01-08 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (itemize_state_process_run): Improve warning message. svn path=/trunk/; revision=2796
* Bug 549532 – Correction to the sample string for Hindi inBehdad Esfahbod2009-01-082-3/+11
| | | | | | | | | | | | 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
* Bug 566726 – Minor optimizationBehdad Esfahbod2009-01-082-16/+29
| | | | | | | | | | | 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
* Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING andBehdad Esfahbod2009-01-075-4/+44
| | | | | | | | | | | | | | | | | | 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
* Bug 551469 – Fold '@' to '-' when parsing PangoLanguagesBehdad Esfahbod2009-01-072-1/+7
| | | | | | | | | | 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
* Bug 328206 – Update/remove some old filesBehdad Esfahbod2009-01-063-55/+9
| | | | | | | | | | | | 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
* Bug 328206 – Update/remove some old filesBehdad Esfahbod2009-01-066-387/+12
| | | | | | | | | | | | | | | 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
* Remove the old gen-script-for-lang tool, rename the new one to it.Behdad Esfahbod2009-01-064-493/+173
| | | | | | | | | | | 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
* Bug 166709 – Handle font variants more consistentlyBehdad Esfahbod2009-01-064-48/+42
| | | | | | | | | | | | | | | | | 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
* Bug 166709 – Handle font variants more consistentlyBehdad Esfahbod2009-01-064-4/+28
| | | | | | | | | | | | | | | | 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
* Make it Unicode safe.Behdad Esfahbod2009-01-062-4/+8
| | | | | | | | | 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
* Move the parse_*() functions in fonts.c and have them share tables withBehdad Esfahbod2009-01-063-303/+196
| | | | | | | | | | | | | | 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
* Bug 166676 – pango_fc_font_map_finalizeBehdad Esfahbod2009-01-062-2/+76
| | | | | | | | | | | | | | | 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
* Bug 164001 - pango-querymodules doesn't work uninstalled on win32Tor Lillqvist2009-01-062-1/+15
| | | | | | | | | | | | | 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
* Bug 384362 – pango can't select some font stylesBehdad Esfahbod2009-01-043-2/+22
| | | | | | | | | | | | | | | | 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
* Bug 168085 – numeric styles in pango_font_description_to_string()Behdad Esfahbod2009-01-042-11/+57
| | | | | | | | | | | | | 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
* Bug 529591 – Code related to malayalam is misplaced. Patch from RahulBehdad Esfahbod2009-01-042-1/+9
| | | | | | | | | | | 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