summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* If NULL is passed to _copy, return NULL with no warning. If NULL is passedBehdad Esfahbod2006-02-064-14/+63
| | | | | | | | | | | | | | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (pango_matrix_copy, pango_matrix_free): If NULL is passed to _copy, return NULL with no warning. If NULL is passed to _free, do nothing with no warning. Docs updated. * examples/viewer-pangoxft.c (render_callback): Multiply x,y by PANGO_SCALE, as pango_xft_render_layout takes coordinates in Pango units weirdly enough. * viewer-pangocairo.c (render_callback): Do cairo_translate, to draw correct bounding boxes for x,y nonzero. * examples/renderdemo.c (do_output): If context has an all-zero matrix set, interpret it as backend does not support transformation, so warn on --rotate, and do not try to rotate. * examples/viewer-pangox.c (pangox_view_get_context): Set an all-zero matrix on context, to negotiate that we don't support transformations.
* Bug 328067 – Install pango-viewBehdad Esfahbod2006-02-0624-1359/+1583
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> Bug 328067 – Install pango-view Added a rather generic framework for a pango-view example. All backends have their own pango*-view built, and a pango-view binary is built too, that can choose backend via --backend. This one is installed in bindir. * examples/Makefile.am: Updated, to build pangox-view, pangoft2-view, pangoxft-view, pangocairo-view, and pango-view. * examples/viewer.h, examples/viewer-x.c, examples/viewer-x.h examples/viewer-cairo.c, examples/viewer-cairo.h, examples/viewer-main.c, examples/viewer-pangox.c, examples/viewer-pangoft2.c, examples/viewer-pangoxft.c, examples/viewer-pangocairo.c, examples/pango-view.c, examples/pango-xview.c, examples/pango-ft2view.c, examples/pango-xftview.c, examples/pango-cairoview.c: Added. * examples/cairoview.c, examples/xftview.c, examples/pangoft2topgm.c, examples/viewer-qt.cc, examples/viewer-qt.h: Removed. * configure.in: Check for Cairo Xlib backend, also AC_DEFINE various backend bits.
* Bug 329528 – implement --wrap in examples/renderdemo.c Patch fromBehdad Esfahbod2006-02-051-21/+61
| | | | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> Bug 329528 – implement --wrap in examples/renderdemo.c Patch from Antoine Dopffer. * examples/renderdemo.c: Add --wrap option.
* Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap withBehdad Esfahbod2006-02-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | 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().
* 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-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* AC_DEFINE (HAVE_CAIRO_PNG).Behdad Esfahbod2006-02-028-10/+23
| | | | | | | | | 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.
* Add a default_substitute function to set correct dpi on the pattern.Behdad Esfahbod2006-02-025-7/+20
| | | | | | | 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-018-326/+368
| | | | | | | | | | | 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-011-709/+0
| | | | | | 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-011-3/+3
| | | | | | | 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-018-368/+49
| | | | | | | | | | | | | | | 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.
* Oops, removed all my changes the other time :(Behdad Esfahbod2006-01-305-325/+579
| | | | | | | | | | | | 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-303-592/+3
| | | | | | | | | | | | 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.
* Reverted the tab alignments patch.Behdad Esfahbod2006-01-292-78/+5
|
* Implement other tab alignments. Bug #325547, Itai Bar-Haim.Behdad Esfahbod2006-01-284-185/+258
| | | | | | | | | | | | | | | | 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.
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-251-1/+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.
* Removed based on an old ChangeLog entry saying: Remove pangoft2.aliasesBehdad Esfahbod2006-01-241-18/+0
| | | | | | | | 2006-01-24 Behdad Esfahbod <behdad@gnome.org> * examples/pangoft2.aliases: Removed based on an old ChangeLog entry saying: Remove pangoft2.aliases from CVS/distribution; it is no longer used. (#82736, Sven Neumann.)
* Make tests/examples do use generated pango.modules. (bug #328291)Behdad Esfahbod2006-01-238-278/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Small fixes.Behdad Esfahbod2006-01-211-3/+2
| | | | | | 2006-01-20 Behdad Esfahbod <behdad@gnome.org> * examples/cairosimple.c: Small fixes.
* Adjust the order of *_CFLAGS to the same order known to work. (Fixes bugBehdad Esfahbod2006-01-161-4/+4
| | | | | | | | 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)
* Fixes bug #71414, allowing to disable building/installing modules.Behdad Esfahbod2006-01-161-2/+2
| | | | | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> Fixes bug #71414, allowing to disable building/installing modules. * configure.in: Add support for --with-dynamic-modules. * */Makefile.am: Adapt to the above change.
* Add GLIB_LIBS to examples explicitly. (#322885, Manish Singh)Behdad Esfahbod2005-11-301-3/+7
| | | | | | | 2005-11-30 Behdad Esfahbod <behdad@gnome.org> * examples/Makefile.am: Add GLIB_LIBS to examples explicitly. (#322885, Manish Singh)
* Add checks for ATSUI.Anders Carlsson2005-11-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-21 Anders Carlsson <andersca@imendio.com> * configure.in: Add checks for ATSUI. * examples/Makefile.am: Only build pango-cairoview if freetype is detected. * modules/basic/Makefile.am: Add basic ATSUI module. * pango/Makefile.am: Add ATSUI files for cairo backend. * pango/pangocairo-fontmap.c: (pango_cairo_font_map_new): Support creating ATSUI font maps here. * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangoatsui.c: * pango/pangoatsui.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifont.h: * pango/pangocairo-atsuifontmap.c: Add.
* Make the Kermit notice a "no warranty" clause, to comply with LPGL.Behdad Esfahbod2005-11-211-2/+2
| | | | | | | 2005-11-21 Behdad Esfahbod <behdad@gnome.org> * examples/GLASS.utf8: Make the Kermit notice a "no warranty" clause, to comply with LPGL.
* Added redistribution permission.Behdad Esfahbod2005-11-151-0/+4
| | | | | | 2005-11-15 Behdad Esfahbod <behdad@gnome.org> * examples/GLASS.utf8: Added redistribution permission.
* Updated Tibetan shaper from Pema Geyleg. (#313513)Behdad Esfahbod2005-11-152-0/+13
| | | | | | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> Updated Tibetan shaper from Pema Geyleg. (#313513) * examples/tibetan.utf: Added. * examples/Makefile.am (EXTRA_DIST): tibetan.utf added. * modules/tibetan/tibetan-fc.c: Updated Tibetan shaper that is rewritten from scratch. Supports the number pre-combining mark, illegal sequence detection, etc.
* Added. The infamous "I Can Eat Glass" in vairous languages. Adopted fromBehdad Esfahbod2005-11-152-0/+167
| | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> * examples/GLASS.utf8: Added. The infamous "I Can Eat Glass" in vairous languages. Adopted from http://www.columbia.edu/kermit/utf8.html#glass * examples/Makefile.am (EXTRA_DIST): GLASS.utf8 added.
* Add X_CFLAGS to INCLUDES. We normally are picking them up from XFT_CFLAGS,Behdad Esfahbod2005-11-141-0/+1
| | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> * examples/Makefile.am: Add X_CFLAGS to INCLUDES. We normally are picking them up from XFT_CFLAGS, but we don't require Xft any more for X11. (#320576)
* Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for theBehdad Esfahbod2005-11-091-1/+4
| | | | | | | | | | | | | | | | | 2005-11-09 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (make_layout): Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the layout. Setting width didn't have any effect previously. * pango/pango-layout.c (process_item): Remove the excess letter_spacing adjustment on the item width. (#168593, Damon Chaplin) * pango/pango-markup.c (pango_parse_markup), pango/querymodules.c: Replace g_string_new ("") with g_string_new (NULL). * pango/pangoft2.c: Use g_malloc'ed memory for unknown FreeType2 error, instead of static buffer.
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-045-28/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.
* Added a --runs options, useful for profiling. Misc cleanup, freeingBehdad Esfahbod2005-11-033-88/+101
| | | | | | | | 2005-11-03 Behdad Esfahbod <behdad@gnome.org> * examples/pangoft2pgm.c, renderdemo.c, renderdemo.h: Added a --runs options, useful for profiling. Misc cleanup, freeing memory. (from #170414)
* Set cairo font resolution.Behdad Esfahbod2005-08-291-0/+1
| | | | | | | | 2005-08-29 Behdad Esfahbod <pango@behdad.org> * examples/cairoview.c: Set cairo font resolution. * tests/testboundaries.c: Remove unused Hangul Jamo macros.
* Add a few Arabic non-spacing marks to the example. Put the line with PangoBehdad Esfahbod2005-08-291-1/+3
| | | | | | | 2005-08-29 Behdad Esfahbod <pango@behdad.org> * examples/HELLO.utf8: Add a few Arabic non-spacing marks to the example. Put the line with Pango in Greek-Japanese back in.
* Remove some characters at the beginning of the file and add a line break.Behdad Esfahbod2005-08-151-3/+2
| | | | | | | 2005-08-14 Behdad Esfahbod <pango@behdad.org> * examples/HELLO.utf8: Remove some characters at the beginning of the file and add a line break.
* reviewed by: otaylorKeith Packard2005-08-091-37/+25
| | | | | | | | | 2005-08-09 Keith Packard <keithp@keithp.com> reviewed by: otaylor * examples/cairoview.c: (update), (expose), (main): Switch to Xlib regions as pixman is destined to disappear.
* Fixed a couple of leaks and freed memory after use.Behdad Esfahbod2005-07-264-12/+35
|
* update for new cairo_xlib_surface API.Manish Singh2005-05-171-6/+9
| | | | | | Tue May 17 07:21:53 2005 Manish Singh <yosh@gimp.org> * examples/cairoview.c: update for new cairo_xlib_surface API.
* Include Xlib.h explicitely before include Xutil.h, since Xutil.h doesn'tOwen Taylor2005-05-161-0/+1
| | | | | | | | 2005-05-16 Owen Taylor <otaylor@redhat.com> * examples/cairoview.c: Include Xlib.h explicitely before include Xutil.h, since Xutil.h doesn't include Xlib.h on some platforms. (#304317, Damien Carbery)
* #include Xutil.h explicitly, update for renamed cairo API.52005-05-141-3/+5
| | | | | | | Fri May 13 23:54:29 2005 <yosh@gimp.org> * examples/cairoview.c: #include Xutil.h explicitly, update for renamed cairo API.
* Remove some accidentally deleted code.Owen Taylor2005-05-071-0/+5
| | | | | | | 2005-05-07 Owen Taylor <otaylor@redhat.com> * examples/cairoview.c (update): Remove some accidentally deleted code.
* Update for Cairo API changes.Owen Taylor2005-05-072-32/+41
| | | | | | | | 2005-05-07 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fontmap.c pango/pangocairo-render.c examples/cairosimple.c pango/pangocairo-fcfont.c examples/cairoview.c: Update for Cairo API changes.
* Fix for the change of cairo_clip() not to preserve the path.Owen Taylor2005-05-011-1/+1
| | | | | | | 2005-05-01 Owen Taylor <otaylor@redhat.com> * examples/cairoview.c: Fix for the change of cairo_clip() not to preserve the path.
* Update to new Cairo API for writing out PNGs.Manish Singh2005-04-271-11/+11
| | | | | | Wed Apr 27 15:45:06 2005 Manish Singh <yosh@gimp.org> * examples/cairoview.c: Update to new Cairo API for writing out PNGs.
* Update to new Cairo API for setting color and opacity.Manish Singh2005-04-181-3/+2
| | | | | | | Mon Apr 18 15:49:36 2005 Manish Singh <yosh@gimp.org> * examples/cairoview.c: Update to new Cairo API for setting color and opacity.
* #include <pixman.h> since the cairo headers don't include it for usManish Singh2005-04-081-0/+1
| | | | | | | Fri Apr 8 15:30:55 2005 Manish Singh <yosh@gimp.org> * examples/cairoview.c: #include <pixman.h> since the cairo headers don't include it for us anymore.
* variable declaration on the start of the block, not C99 everywhere.Hans Breuer2005-04-031-40/+75
| | | | | | | | | | | 2005-04-04 Hans Breuer <hans@breuer.org> * pango/pangocairo-win32font.c(pango_cairor_win32_font_get_metrics) : variable declaration on the start of the block, not C99 everywhere. * examples/viewer-win32.c : updated to not so recent Pango api changes * pango/makefile.msc : pangocairo build win32 version, not freetype
* Update to track removal of cairo_set_target_png from cairo.Carl Worth2005-04-021-3/+5
| | | | | * examples/cairosimple.c: (main): Update to track removal of cairo_set_target_png from cairo.