summaryrefslogtreecommitdiff
path: root/examples/cairoview.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 328067 – Install pango-viewBehdad Esfahbod2006-02-061-169/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* AC_DEFINE (HAVE_CAIRO_PNG).Behdad Esfahbod2006-02-021-1/+14
| | | | | | | | | 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-021-1/+2
| | | | | | | 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-011-185/+47
| | | | | | | | | | | 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.
* Make tests/examples do use generated pango.modules. (bug #328291)Behdad Esfahbod2006-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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.
* 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-261-1/+5
|
* 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-071-23/+31
| | | | | | | | 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 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.
* Open the file with mode "wb", include cairo-png.h.Owen Taylor2005-02-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-03 Owen Taylor <otaylor@redhat.com> * examples/cairosimple.c: Open the file with mode "wb", include cairo-png.h. * examples/xftview.c examples/cairoview.c: Set WM_NORMAL_HINTS to avoid triggering a metacity bug. * examples/cairoview.c: Include cairo-xlib.h. * configure.in: Add checks for the Win32 Cairo backend. (not committing the code yet). * examples/Makefile.am pango/Makefile.am: add CAIRO_CFLAGS. * pango/pangocairo-fc.h pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c pango/pangofc-fontmap.[ch]: Rework Cairo/Fontconfig backend to use the current Cairo API. Make some PangoFcFontMap changes to enable that. * pango/pango/pangocairo-private.h pango/pangocairo-render.c: Update for cairo_font_t changes.
* Add checks for CairoOwen Taylor2005-01-091-0/+272
Sat Jan 8 16:46:37 2005 Owen Taylor <otaylor@redhat.com> * configure.in: Add checks for Cairo * pango/Makefile.am: Add libpangocairo. * pango/pangocairo-font.c pango/pangocairo-fontmap.c pango/pangocairo.h pango/pangocairo-private.h pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c pango/pangocairo-fc.h: Start of a Cairo/FreeType backend. * pango/pangofc-fontmap.[ch]: Add a "get_render_key" virtual function to allow subclasses to specialize the details of how caching works. Add a default implementation that's a little more sophisticated than what was there before. * pango/pangoft2-private.h pangofc-font.c pangoft2.c: Move default implementations of has_char(), get_glyph() to the base class. * pango/pangofc-private.h pango/pangoft2-private.h: Move PANGO_UNITS_26_6 and friends to pango/pangofc-private.h. * examples/renderdemo.[ch] examples/pangoft2topgm.c examples/xftview.c: Allow passing in a custom function to transform drawing. * examples/Makefile.am examples/cairoview.c: Add a Cairo/Xlib example program. * examples/cairosimple.c: Simple Cairo example with output to a PNG. * pango/pango-layout.c (pango_layout_line_get_extents): Fix bug where line ink rect was always including 0, 0.