summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* [pango] Allocate PangoScriptIter on stack.Chris Wilson2009-03-205-52/+101
| | | | | | | Move the PangoScriptIter structure definition to a private header file, so that we can embed the iterator within other structures or allocate a local iterator on the stack. This eliminates the frequent short-lived allocations associated with the iterator.
* [pango-context] Fix assertion with enable_fallback=FALSE and no fontsBehdad Esfahbod2009-03-171-0/+3
|
* Red Hat Bug 490331 - Crash of galeon in libpangoBehdad Esfahbod2009-03-151-1/+1
| | | | Don't crash when no fonts installed.
* Rebuild pango-script-lang-table.h with fontconfig-2.6.99.behdadBehdad Esfahbod2009-03-141-193/+241
|
* [pangofc-fontmap] Document the caching structureBehdad Esfahbod2009-03-131-0/+54
|
* [pangofc] Share cmap cache between PangoFcFont's of the same face (#567160)Behdad Esfahbod2009-03-133-81/+158
|
* [pangofc] Reuse filename from pattern in coverage keyBehdad Esfahbod2009-03-131-8/+20
|
* [pangofc] Add a "fontmap" property to PangoFcFontBehdad Esfahbod2009-03-137-34/+93
| | | | | | | | | | | 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()
* [pango-coverage] Fix optimization bug in pango_coverage_to_bytes()Behdad Esfahbod2009-03-131-8/+11
|
* [pango-coverage] Use gslice for data arraysBehdad Esfahbod2009-03-131-3/+3
|
* [pango-coverage] Remove unused struct memberBehdad Esfahbod2009-03-131-1/+0
|
* Increase FONTSET_CACHE_SIZE from 64 to 256Behdad Esfahbod2009-03-101-1/+1
| | | | Now that we keep a lot fewer objects per fontset, increase the cache size.
* [pangofc-fontmap] Don't unref NULL object (RH bug# 487593)Behdad Esfahbod2009-03-101-1/+5
|
* Revert change from 2008-05-28 that mapped words and word pairs thatTor Lillqvist2009-03-091-98/+2
| | | | | | | | | | 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.
* [opentype] Protect against illegal access for arrays of length zeroBehdad Esfahbod2009-03-022-4/+24
|
* [opentype] Use size_t instead of uint for malloc wrappersBehdad Esfahbod2009-03-022-4/+6
|
* [glyphstring] Handle overflow with very long glyphstringsBehdad Esfahbod2009-03-021-6/+20
|
* [pango-language] Fix small leakBehdad Esfahbod2009-03-021-2/+4
| | | | Reported by Tommi Rantala.
* Fix Bug 572529 – Poor -I ordering can break buildBehdad Esfahbod2009-03-021-2/+2
|
* Fix check.PANGO_1_23_01.23.0Behdad Esfahbod2009-02-031-0/+6
| | | | svn path=/trunk/; revision=2829
* Comment out gobject-introspection for now, to get a release out.Behdad Esfahbod2009-02-031-14/+14
| | | | | | | | | 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
* Don't do anything in shutdown. Was causing double-free of cairo fontBehdad Esfahbod2009-02-021-9/+0
| | | | | | | | | | 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-021-42/+17
| | | | | | | | | | | 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-311-4/+6
| | | | | | | | | | | 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-301-5/+7
| | | | | | | | | | | 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-301-0/+1
| | | | | | | | | | 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-295-106/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-291-3/+1
| | | | | | | | | 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-291-143/+1
| | | | | | | | 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-291-6/+6
| | | | | | | | | | 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-291-40/+17
| | | | | | | | | | 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-281-15/+21
| | | | | | | | | | | | 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-281-8/+7
| | | | | | | | | | | | | 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
* Bug 566727 – PangoFontsetLazyBehdad Esfahbod2009-01-284-454/+657
| | | | | | | | | | | | | | | | | | 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-284-83/+217
| | | | | | | | | | | | | | 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
* Change PangoFc font loading API such that PangoContext is not passed down.Behdad Esfahbod2009-01-287-227/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-285-6/+6
| | | | | | | | | | | | | | | 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-281-2/+2
| | | | | | | | | 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-285-9/+10
| | | | | | | | | | | | | | | | 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-203-25/+165
| | | | | | | | | | | | | | 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-081-1/+1
| | | | | | | | | 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-081-10/+1
| | | | | | | | | 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-081-3/+3
| | | | | | | | | | | | 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-081-16/+22
| | | | | | | | | | | 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-072-4/+9
| | | | | | | | | | | | | | | | | | 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