summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Do unknown glyph extents here too.Behdad Esfahbod2006-02-021-2/+12
| | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangoft2.c: Do unknown glyph extents here too.
* Guard Xft backend agains crashes too.Behdad Esfahbod2006-02-023-22/+67
| | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangoxft-font.c, pango/pangoxft-render.c: Guard Xft backend agains crashes too.
* Oops!Behdad Esfahbod2006-02-021-1/+0
|
* Use PANGO_GLYPH_NULL for when no glyph should be drawn. UseBehdad Esfahbod2006-02-0217-95/+126
| | | | | | | | | | | | | | | | | | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * modules/arabic/arabic-fc.c, modules/basic/basic-atsui.c, modules/basic/basic-fc.c, modules/basic/basic-win32.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-fc.c, modules/indic/indic-fc.c, modules/khmer/khmer-fc.c, modules/syriac/syriac-fc.c, modules/thai/thai-fc.c, modules/tibetan/tibetan-fc.c, pango/fonts.c, pango/pango-engine-private.h pango/pango-types.h, pango/pangocairo-fcfont.c, pango/pangocairo-font.c, pango/pangocairo-private.h, pango/pangocairo-render.c, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangoft2-render.c, pango/pangoft2.c pango/pangowin32.c, pango/pangox.c, pango/pangoxft-font.c pango/pangoxft-private.h, pango/pangoxft-render.c, pango/shape.c: Use PANGO_GLYPH_NULL for when no glyph should be drawn. Use PANGO_GLYPH_UNKNOWN_FLAG for all backends to mark unknown flags. There's no need for pango_font_get_unknown_glyph() anymore, since all backends know how to handle PANGO_GLYPH_UNKNOWN_FLAG gracefully. We may add that in the future however. (fixes bug #73147, closes bug #329524)
* Fix GKeyFile transition.Behdad Esfahbod2006-02-021-20/+20
| | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (read_config_file): Fix GKeyFile transition.
* For mini_font, set family to "monospace", not "mono-space" which didn'tBehdad Esfahbod2006-02-021-1/+1
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c: For mini_font, set family to "monospace", not "mono-space" which didn't work!
* Initialize warning history structs more explicitly. (bug #329459)Behdad Esfahbod2006-02-013-3/+5
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c, pango/pangocairo-font.c: Initialize warning history structs more explicitly. (bug #329459)
* Use cairo_scaled_font_text_extents instead of cairo_text_extents.Behdad Esfahbod2006-02-011-14/+1
| | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c (_pango_cairo_get_hex_box_info): Use cairo_scaled_font_text_extents instead of cairo_text_extents.
* pango/pangocairo-private.h, pango/pangocairo-font.c, Hint hexbox. AlsoBehdad Esfahbod2006-02-014-52/+107
| | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-private.h, pango/pangocairo-font.c, * pango/pangocairo-render.c: Hint hexbox. Also draw a singl-row hexbox for very small sizes.
* Bug 328313 – Use GKeyFile for parsing pangorc Patch from AntoineBehdad Esfahbod2006-01-311-122/+56
| | | | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> Bug 328313 – Use GKeyFile for parsing pangorc Patch from Antoine Dopffer. * pango/pango-utils.c (read_config_file): Use GKeyFile to parse config file.
* Improve documentation for functions allocating memory, on how the objectBehdad Esfahbod2006-01-3118-67/+118
| | | | | | | | | | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c, pango/glyphstring.c pango/pango-attributes.c pango/pango-color.c, pango/pango-context.c pango/pango-coverage.c, pango/pango-fontset.c pango/pango-glyph-item.c, pango/pango-item.c pango/pango-layout.c, pango/pango-ot-buffer.c pango/pango-ot-info.c, pango/pango-ot-ruleset.c pango/pango-script.c, pango/pango-tabs.c pango/pango-utils.c pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c pango/pangox-fontcache.c, pango/pangoxft-render.c: Improve documentation for functions allocating memory, on how the object should be freed.
* Improve error handling in high-frequency functions: Only warn once.Behdad Esfahbod2006-01-316-17/+71
| | | | | | | | | | | | | | | 2006-01-30 Behdad Esfahbod <behdad@gnome.org> * pango/shape.c (pango_shape): * pango/fonts.c (pango_font_get_glyph_extents): * pango/pangocairo-font.c (_pango_cairo_font_install): Improve error handling in high-frequency functions: Only warn once. * pango-impl-utils.h, pangoutils.h: * pangocairo-private.h, pangocairo-font.c: Add machinery for above: _pango_warning_history and _pango_cairo_warning_history.
* Oops, removed all my changes the other time :(Behdad Esfahbod2006-01-301-3/+21
| | | | | | | | | | | | 2006-01-30 Behdad Esfahbod <behdad@gnome.org> Bug 328314 – Examples should use GOption instead of argcontext.c Patch from Antoine Dopffer. * examples/renderdemo.c: Use GOption for parsing cmd-line options. * examples/argcontext.c, examples/argcontext.h: Removed.
* Handle GSUB Lookup type 8, and ReverseChainContextualSubst table. (bugBehdad Esfahbod2006-01-304-117/+487
| | | | | | | | 2006-01-30 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/ftxgsub.c: Handle GSUB Lookup type 8, and ReverseChainContextualSubst table. (bug #149696, patch from Aamir Wali)
* If locking font face failed, do not assert, just return zero glyphs withBehdad Esfahbod2006-01-2930-109/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-29 Behdad Esfahbod <behdad@gnome.org> * modules/arabic/arabic-fc.c, modules/basic/basic-fc.c modules/hebrew/hebrew-fc.c, modules/indic/indic-fc.c modules/khmer/khmer-fc.c, modules/syriac/syriac-fc.c modules/thai/thai-ot.c, modules/thai/thai-shaper.c modules/tibetan/tibetan-fc.c: If locking font face failed, do not assert, just return zero glyphs with an implicit warning. * pango/fonts.c, pango/glyphstring.c pango/modules.c pango/pango-color.c, pango/pango-context.c pango/pango-coverage.c, pango/pango-fontmap.c pango/pango-glyph-item.c, pango/pango-item.c pango/pango-layout.c, pango/pango-markup.c pango/pango-ot-buffer.c, pango/pango-script.c pango/pango-tabs.c, pango/pango-utils.c pango/pangoatsui-fontmap.c, pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c pango/pangocairo-win32font.c, pango/pangofc-font.c pango/pangofc-fontmap.c, pango/pangoft2-fontmap.c pango/pangoft2-render.c, pango/pangoft2.c pango/pangowin32-fontcache.c, pango/pangoxft-font.c pango/pangoxft-render.c, pango/break.c pango/ellipsize.c: Use g_slice for allocating all types. Also, change some g_error's to g_critical's...
* Do not crash if the (win32 typically) shaper fails. Bug #304702:Behdad Esfahbod2006-01-291-8/+13
| | | | | | | | | | | | | | | | 2006-01-29 Behdad Esfahbod <behdad@gnome.org> Do not crash if the (win32 typically) shaper fails. Bug #304702: * pango/pango-engine.c (_pango_engine_shape_shape): Set num_glyphs to zero if failing. * pango/pango-shape.c (pango_shape): Instead of crashing if the shaper failed to produce any glyphs, print out a warning message containing the name of the font, and mark the font such that we don't keep printing warning for the same font. Moreover, inject one whitespace glyph per character, so you just see nothing, but everything works otherwise.
* Do not crash if the (win32 typically) shaper fails. Bug #304702:Behdad Esfahbod2006-01-293-6/+42
| | | | | | | | | | | | | | 2006-01-29 Behdad Esfahbod <behdad@gnome.org> Do not crash if the (win32 typically) shaper fails. Bug #304702: * pango/pango-engine.c (_pango_engine_shape_shape): Set num_glyphs to zero if failing. * pango/pango-shape.c (pango_shape): Instead of crashing if the shaper failed to produce any glyphs, print out a warning message containing the name of the font, and mark the font such that we don't keep printing warning for the same font.
* Revert last patch again :(.Behdad Esfahbod2006-01-291-86/+19
|
* Create fake Bold, Italic, and Bold Italic faces for fonts that do not haveBehdad Esfahbod2006-01-291-19/+84
| | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * pangofc-fontmap.c: Create fake Bold, Italic, and Bold Italic faces for fonts that do not have one. (bug #319808, James Su)
* Reverted the tab alignments patch.Behdad Esfahbod2006-01-293-49/+16
|
* Implement other tab alignments. Bug #325547, Itai Bar-Haim.Behdad Esfahbod2006-01-283-16/+49
| | | | | | | | | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> Implement other tab alignments. Bug #325547, Itai Bar-Haim. * docs/tmpl/tab-stops.sgml: Documented new tab alignment enum vals. * pango/pango-tabs.h, pango/pango-tabs.c: Added support for tab alignments PANGO_TAB_RIGHT and PANGO_TAB_CENTER. * examples/renderdemo.h, examples/renderdemo.c: Added support for --tab-spec. * examples/GLASS.utf8, examples/HELLO.utf8: Cleaned up tabs.
* Document PangoOTBuffer and PangoOTGlyph.Behdad Esfahbod2006-01-284-22/+56
| | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * doc/tmpl/opentype.sgml: Document PangoOTBuffer and PangoOTGlyph. * pango/pango-ot-buffer.c, pango/pango-ot-info.c, pango/pango-ot-ruleset.c: Document remaining symbols.
* Removed.Behdad Esfahbod2006-01-288-28/+28
| | | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/pango-ot-*: Removed. * pango/pango-ot-*: Added. * pango/Makefile.am, pango/opentype/Makefile.am: Adjusted.
* Documentation improvements.Behdad Esfahbod2006-01-284-3/+21
| | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-font.h, pango/pangoft2-render.c, pango/pangowin32.c, pango/pangoxft-render.c, docs/tmpl/xft-fonts.sgml, docs/tmp/atsui-fonts.sgml: Documentation improvements.
* Remove pango.modules on uninstall. (bug #328869)Behdad Esfahbod2006-01-274-9/+12
| | | | | | | | | | 2006-01-27 Behdad Esfahbod <behdad@gnome.org> * modules/Makefile.am: Remove pango.modules on uninstall. (bug * #328869) * pango/pango-fontmap.c, pango/pangocairo-*font.c: Better error messages.
* #include <modules.h>. (bug #328632)Behdad Esfahbod2006-01-261-0/+2
| | | | | | 2006-01-26 Behdad Esfahbod <behdad@gnome.org> * pango/pangoatsui-fontmap.c: #include <modules.h>. (bug #328632)
* Fix more ATSUI stuff in build infrastructure. Sigh... (bug #328632)Behdad Esfahbod2006-01-262-6/+11
| | | | | | | 2006-01-26 Behdad Esfahbod <behdad@gnome.org> * pango/modules.h, pango/Makefile.am: Fix more ATSUI stuff in build infrastructure. Sigh... (bug #328632)
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-253-3/+0
| | | | | | | | | 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Declare int i! (bug #328632)Behdad Esfahbod2006-01-251-0/+1
| | | | | | | 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * pango/pangoatsui-fontmap.c (pango_atsui_family_class_init): Declare int i! (bug #328632)
* Improve docs to say it may return -1.Behdad Esfahbod2006-01-241-1/+1
| | | | | | | 2006-01-24 Behdad Esfahbod <behdad@gnome.org> * pango/pangolayout.c (pango_layout_get_width): Improve docs to say it may return -1.
* Change cwfont to cafont in a couple places.Behdad Esfahbod2006-01-241-3/+3
| | | | | | | 2006-01-24 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-atsuifont.c: Change cwfont to cafont in a couple places.
* Make tests/examples do use generated pango.modules. (bug #328291)Behdad Esfahbod2006-01-232-0/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-23 Behdad Esfahbod <behdad@gnome.org> Make tests/examples do use generated pango.modules. (bug #328291) * examples/pangorc, tests/pangorc: Removed. Moved to modules/. * examples/pangox.aliases: Removed. Moved to pango/. * examples/Makefile.am, tests/Makefile.am: Remove pango.modules creation stuff, copy pangorc from $(srcdir)/../modules/pangorc insteadd. * examples/renderdemo.c: Add --pangorc option, default to ./pangorc. Setenv PANGO_RC_FILE to whatever pangorc file decided. * tests/*.c: Setenv PANGO_RC_FILE to ./pangorc. * pango/pangox.aliases: Added. * pango/Makefile.am: Install pangox.aliases. * modules/pangorc: Added. * modules/Makefile.am: Create pango.modules. Added pangorc. * modules/.cvsignore, examples/.cvsignore, tests/.cvsignore: Updated.
* Fix typo in docs.Behdad Esfahbod2006-01-211-1/+1
| | | | | | | 2006-01-21 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fontmap.c (pango_cairo_context_get_font_options): Fix typo in docs.
* Fix docs.Behdad Esfahbod2006-01-211-2/+5
| | | | | | 2006-01-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (pango_matrix_get_font_scale_factor): Fix docs.
* Make matrix parameter const.Behdad Esfahbod2006-01-2115-27/+27
| | | | | | | | | | | | | | | 2006-01-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h, pango/pango-utils.h (pango_matrix_get_font_scale_factor): Make matrix parameter const. * pango/fonts.c, pango/pango-context.c, pango/pango-coverage.c, pango/pango-fontset.c, pango/pango-layout.c, pango/pango-renderer.c, pango/pango-types.h, pango/pango-utils.c, pango/pangocairo-atsuifont.c, pango/pangofc-font.c, pango/pangoft2-fontmap.c, pango/pangowin32-fontmap.c, pango/pangowin32.c, pango/pangox-fontmap.c, pango/pangoxft-font.c: Replace "Returns:" with "Return value:" in docs.
* Finish ATSUI module work. Bug #322022, Matthias Clasen.Behdad Esfahbod2006-01-212-0/+13
| | | | | | | | | | | | | | | | | | 2006-01-21 Behdad Esfahbod <behdad@gnome.org> Finish ATSUI module work. Bug #322022, Matthias Clasen. * docs/tmpl/atsui-fonts.sgml: Added. * docs/pango-docs.sgml: Updated to reflect above change. * docs/pango-sections.txt: Updated to reflect above change and also document Standard ATSUI symbols. * pango/pangocairo-atsuifont.c (pango_cairo_atsui_font_get_atsu_font_id): Add docs. * pango/pangoatsui-fontmap.c: Register included ATSUI modules.
* Add a comment about using cairo_scaled_font_text_extents instead ofBehdad Esfahbod2006-01-201-1/+6
| | | | | | | | 2006-01-20 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c (_pango_cairo_get_hex_box_info): Add a comment about using cairo_scaled_font_text_extents instead of cairo_text_extents.
* Move GLIB_CFLAGS before external libraries' CFLAGS. Some formattingBehdad Esfahbod2006-01-161-16/+47
| | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Move GLIB_CFLAGS before external libraries' CFLAGS. Some formatting changes too.
* Adjust the order of *_CFLAGS to the same order known to work. (Fixes bugBehdad Esfahbod2006-01-161-2/+2
| | | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> * docs/Makefile.am, examples/Makefile.am, pango/Makefile.am, tests/Makefile.am: Adjust the order of *_CFLAGS to the same order known to work. (Fixes bug #325588)
* Draw hexbox for cairo backend. Bug #313551. Based on patch by LingNingBehdad Esfahbod2006-01-146-44/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> Draw hexbox for cairo backend. Bug #313551. Based on patch by LingNing Zhang. * pango/pangocairo-private.h (_PangoCairoFontIface): Add new methods: get_font_face and get_scaled_font, and getters: _pango_cairo_font_get_font_face, _pango_cairo_font_get_scaled_font. * pango/pangocairo-private.h: Add _PangoCairoHexBoxInfo, and getter _pango_cairo_get_hex_box_info, and _pango_cairo_get_glyph_extents_missing. * pango/pangocairo-fcfont.c, pango/pangocairo-atsuifont.c, * pango/pangocairo-win32font.c: Export get_font_face and get_scaled_font methods. * pango/pangocairo-fcfont.c: Use * _pango_cairo_get_glyph_extents_missing on missing glyphs. * pango/pangocairo-font.c: Implement _pango_cairo_font_get_font_face, _pango_cairo_font_get_scaled_font, _pango_cairo_get_hex_box_info, and _pango_cairo_get_glyph_extents_missing. * pango/pangocairo-render.c * (_pango_cairo_renderer_draw_unknown_glyph): Added. * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs): Cleaned up to use the added function above.
* Make sure #include <config.h> is the first include in the file. (bugBehdad Esfahbod2006-01-1465-22/+85
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * */*.c, */*/*.c: Make sure #include <config.h> is the first include in the file. (bug #158870, based on patch by Luis Menina)
* Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95.Behdad Esfahbod2006-01-141-1/+1
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.h (pango_is_zero_width): Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95. (bug #326847)
* pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,Behdad Esfahbod2006-01-0520-29/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-05 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am, * pango/fonts.c, * pango/glyphstring.c, * pango/pango-attributes.c, * pango/pango-color.c, * pango/pango-impl-utils.h, * pango/pango-item.c, * pango/pango-layout.c, * pango/pango-tabs.c, * pango/pango-utils.c, * pango/pango-utils.h, * pango/pangoatsui-fontmap.c, * pango/pangocairo-font.c, * pango/pangocairo-fontmap.c, * pango/pangofc-fontmap.c, * pango/pangowin32-fontmap.c, * pango/pangox-fontmap.c, * pango/pangox.c, * pango/opentype/pango-ot-info.c, * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid unnecessary strdups in the type system. (bug #325832, Matthias Clasen)
* Use g_slice for ShaperFontElement allocation. (bug #325728, MatthiasBehdad Esfahbod2006-01-041-2/+2
| | | | | | | 2006-01-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c: Use g_slice for ShaperFontElement allocation. (bug #325728, Matthias Clasen)
* Use g_slice for various attribute types allocations. (bug #325040,Behdad Esfahbod2006-01-011-23/+35
| | | | | | | 2006-01-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.c: Use g_slice for various attribute types allocations. (bug #325040, Matthias Clasen)
* Use pango_font_description_set_family_static. (bug #325013, MatthiasBehdad Esfahbod2005-12-271-1/+1
| | | | | | | | 2005-12-27 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (pango_context_init): Use pango_font_description_set_family_static. (bug #325013, Matthias Clasen)
* Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)Behdad Esfahbod2005-12-271-2/+2
| | | | | | | 2005-12-27 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)
* Add pango_matrix_get_font_scale_factor. (bug #323978, J. Ali Harlow)Behdad Esfahbod2005-12-141-0/+1
| | | | | | | 2005-12-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango.def: Add pango_matrix_get_font_scale_factor. (bug #323978, J. Ali Harlow)
* Pass G_MODULE_BIND_LOCAL to g_module_open. (Pointed by Federico)Behdad Esfahbod2005-12-142-2/+2
| | | | | | | 2005-12-14 Behdad Esfahbod <behdad@gnome.org> * pango/modules.c (pango_module_load), pango/querymodules.c: Pass G_MODULE_BIND_LOCAL to g_module_open. (Pointed by Federico)
* === Released 1.11.1 ===Behdad Esfahbod2005-12-131-1/+4
| | | | | | | | | | | | | | 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.1 === * configure.in: Version 1.11.1 * NEWS: Updated. 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Handle module-defs-atsui.c.