summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap withBehdad Esfahbod2006-02-0523-37/+104
| | | | | | | | | | | | | | | | | | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h: Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap with PANGO_GLYPH_UNKNOWN_FLAG (0x10000000). Define PANGO_GET_UNKNOWN_GLYPH(wc) that simply returns wc|PANGO_GLYPH_UNKNOWN_FLAG. * docs/pango-sections.txt, docs/tmpl/glyphs.sgml: Document new symbols. * modules/*/*.c: Use PANGO_GET_UNKNOWN_GLYPH instead of various backend-specific functions. * pango/pangofc-font.c, pango/pangoft.c, pango/pangoxft-font.c, * pango/pangowin32.c, pango/pangox.c: Suggest using PANGO_GET_UNKNOWN_GLYPH in docs. * pango/pangofc-font.h: Deprecate pango_fc_font_get_unknown_glyph(). * pango/pangowin32.h: Deprecate pango_win32_get_unknown_glyph().
* Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.Behdad Esfahbod2006-02-043-13/+23
| | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> * pango/pangoft2.c, pango/pangoft2-render.c: Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.
* AC_DEFINE the module version, such that pango-querymodules gets rebuiltBehdad Esfahbod2006-02-033-1/+10
| | | | | | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE the module version, such that pango-querymodules gets rebuilt after module version update. * pango/Makefile.am: Do not set -DMODULE_VERSION.
* Bump pango_module_version to 1.5.0.Behdad Esfahbod2006-02-032-1/+5
| | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * configure.in: Bump pango_module_version to 1.5.0.
* Distribute autogen.sh.Behdad Esfahbod2006-02-032-0/+5
| | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * Makefile.am: Distribute autogen.sh.
* Add an LRM instead of RLM in Yiddish sample.Behdad Esfahbod2006-02-031-2/+2
|
* Updated.Behdad Esfahbod2006-02-031-3/+3
|
* Finish the 'glyph 0' work of this morning: PANGO_GLYPH_NULL that IBehdad Esfahbod2006-02-0337-421/+661
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> Finish the 'glyph 0' work of this morning: PANGO_GLYPH_NULL that I introduced is renamed to PANGO_GLYPH_EMPTY. It means, no rendering should be performed. The backends however, still return 0 if a glyph is not found. The modules then are free to replace this 0 glyph with an unknown character. * 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/pangox.c, pango/pangowin32.c: Adapt to above change. Backends return 0 if glyph not found. * pango/fonts.c (pango_font_get_glyph_extents): If font is not usable (!PANGO_IS_FONT (font)), return the generic UNKNOWN_GLYPH metrics. This is used when your backends are misconfigured and you don't find *any* font at all. * pango/pango-engince.c: Add unknown glyphs in fallback shaper, instead of empty glyphs. * pango/shape.c: Call the fall-back shaper if shaper fails, instead of generating a dummy glyph string ourselves. * pango/pango-layout.c (imposed_shape, shape_tab): Use PANGO_GLYPH_EMPTY instead of glyph 0. * pango/pango-renderer.c (pango_renderer_draw_glyph): No-op on PANGO_GLYPH_EMPTY instead of glyph 0. * pango/pangocairo-atsuifont.c, pango/pangocairo-win32font.c, pango/pangocairo-fcfont.c, pango/pangocairo-font.c, pango/pangocairo-private.h: install_font returns a boolean now. * pango/pangocairo-render.c, pango/pangoxft-render.c: Handle font and hex-box failures more gracefully by drawing a generic unknown-box glyph. * pango/pangoft2.c, pango/pangoft2-render.c: Draw the generic unknown-box glyph here too. For unknown glyphs though, if the font is TTF (FT_IS_SFNT), use the zero-indexed glyph, otherwise, draw a box of proper size.
* Rename _pango_cairo_get_hex_box_info to _pango_cairo_font_get_hex_box_info.Behdad Esfahbod2006-02-023-4/+4
|
* Move PANGO_UNKNOWN_GLYPH_WIDTH/HEIGHT to pango-font.h, which makesBehdad Esfahbod2006-02-025-9/+6
| | | | more sense.
* Do unknown glyph extents here too.Behdad Esfahbod2006-02-022-2/+16
| | | | | | 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-024-22/+72
| | | | | | | 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-0230-153/+205
| | | | | | | | | | | | | | | | | | | | | | | 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-022-20/+24
| | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (read_config_file): Fix GKeyFile transition.
* AC_DEFINE (HAVE_CAIRO_PNG).Behdad Esfahbod2006-02-0210-11/+33
| | | | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE (HAVE_CAIRO_PNG). * examples/cairoview.c: Save to PNG if cairo has PNG support and --output is given.
* For mini_font, set family to "monospace", not "mono-space" which didn'tBehdad Esfahbod2006-02-022-1/+6
| | | | | | | 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!
* Add a default_substitute function to set correct dpi on the pattern.Behdad Esfahbod2006-02-026-7/+25
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/xftview.c: Add a default_substitute function to set correct dpi on the pattern.
* Driver for X-based viewer. Used by pangocairo-view and pangoxft-viewBehdad Esfahbod2006-02-019-326/+377
| | | | | | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/viewer-x.c, examples/viewer-x.h: Driver for X-based viewer. Used by pangocairo-view and pangoxft-view currently. * examples/Makefile.am, examples/cairoview.c, examples/xftview.c, examples/pangoft2topgm.c, examples/renderdemo.h, examples/renderdemo.c: Adjust to the above change.
* Removed.Behdad Esfahbod2006-02-012-709/+4
| | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/viewer.c: Removed.
* Some fruitless try to bring it up-to-date.Behdad Esfahbod2006-02-011-18/+18
|
* Initialize warning history structs more explicitly. (bug #329459)Behdad Esfahbod2006-02-015-6/+13
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c, pango/pangocairo-font.c: Initialize warning history structs more explicitly. (bug #329459)
* Removed/renamed.Behdad Esfahbod2006-02-019-368/+62
| | | | | | | | | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * examples/syriac.utf, examples/tibetan.utf, examples/muru.utf, examples/dev-example.utf: Removed/renamed. * examples/test-arabic.txt, examples/test-devanagari.txt, examples/test-ipa.txt, test-syriac.txt, test-tamil.txt, test-tibetan.txt: Added. * examples/Makefie.am: Change pango-cairoview, pango-xftview, pangoft2topgm to pangocairo-view, pangoxft-view, and pangoft2-topgm respectively.
* Use cairo_scaled_font_text_extents instead of cairo_text_extents.Behdad Esfahbod2006-02-012-15/+7
| | | | | | | 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.
* Require cairo >= 1.1.1.Behdad Esfahbod2006-02-012-1/+5
| | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * configure.in: Require cairo >= 1.1.1.
* pango/pangocairo-private.h, pango/pangocairo-font.c, Hint hexbox. AlsoBehdad Esfahbod2006-02-015-52/+113
| | | | | | | | 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-312-122/+64
| | | | | | | | | | 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.
* Change to follow the "Email: email@address.com" pattern.Behdad Esfahbod2006-01-311-2/+4
|
* Improve documentation for functions allocating memory, on how the objectBehdad Esfahbod2006-01-3119-67/+132
| | | | | | | | | | | | | | | | 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.
* === Released 1.11.3 ===PANGO_1_11_3Behdad Esfahbod2006-01-313-3/+18
| | | | | | | | | | 2006-01-30 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.3 === * configure.in: Version 1.11.3 * NEWS: Updated.
* Improve error handling in high-frequency functions: Only warn once.Behdad Esfahbod2006-01-317-17/+84
| | | | | | | | | | | | | | | 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-308-341/+618
| | | | | | | | | | | | 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.
* Bug 328314 – Examples should use GOption instead of argcontext.c PatchBehdad Esfahbod2006-01-304-592/+13
| | | | | | | | | | | | 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/renderdemo.c, examples/renderdemo.h: Removed.
* Handle GSUB Lookup type 8, and ReverseChainContextualSubst table. (bugBehdad Esfahbod2006-01-305-117/+493
| | | | | | | | 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-2940-168/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-292-9/+16
| | | | | | | | | | | | | | | | 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-294-6/+54
| | | | | | | | | | | | | | 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-292-91/+19
|
* Create fake Bold, Italic, and Bold Italic faces for fonts that do not haveBehdad Esfahbod2006-01-292-19/+89
| | | | | | | 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)
* Removed.Behdad Esfahbod2006-01-292-1/+4
| | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * .cvsusers: Removed.
* Reverted the tab alignments patch.Behdad Esfahbod2006-01-297-143/+21
|
* Fixed incomplete entry.Behdad Esfahbod2006-01-281-2/+2
|
* Implement other tab alignments. Bug #325547, Itai Bar-Haim.Behdad Esfahbod2006-01-289-201/+323
| | | | | | | | | | | | | | | | 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-2812-48/+79
| | | | | | | | | 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-282-2/+4
| | | | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/pango-ot-*: Removed. * pango/pango-ot-*: Added. * pango/Makefile.am, pango/opentype/Makefile.am, doc/Makefile.am: Adjusted.
* Removed.Behdad Esfahbod2006-01-289-28/+36
| | | | | | | | | | 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-287-5/+34
| | | | | | | | 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.
* Use AC_HELP_STRING everywhere. Bump required version to 2.56.Behdad Esfahbod2006-01-283-18/+20
| | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: Use AC_HELP_STRING everywhere. Bump required version to 2.56. * doc/tmpl/pango-renderer.sgml (PANGO_TYPE_RENDER_PART): Document it.
* Remove pango.modules on uninstall. (bug #328869)Behdad Esfahbod2006-01-276-9/+22
| | | | | | | | | | 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-262-0/+6
| | | | | | 2006-01-26 Behdad Esfahbod <behdad@gnome.org> * pango/pangoatsui-fontmap.c: #include <modules.h>. (bug #328632)