summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Build fixes from Andrew P. Lentvorski, Jr, #164655Owen Taylor2005-03-011-1/+2
| | | | | | | | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> Build fixes from Andrew P. Lentvorski, Jr, #164655 * pango/pangoft2-render.c: Duplicate the FT_LOAD_TARGET_MONO/FT_LOAD_MONOCHROME back-compat define from pangoft2.c here * examples/Makefile.am (pango_xftview_LDADD): Add X_LIBS to pango_xftview_LDADD since some old versions of xft.pc didn't add -lX11.
* Open the file with mode "wb", include cairo-png.h.Owen Taylor2005-02-034-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | 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-098-39/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* add XFT_CFLAGSDan Winship2004-12-141-0/+1
| | | | * examples/Makefile.am (INCLUDES): add XFT_CFLAGS
* Add Syriac module by Emil Soleyman-Zomalan. (#147779)Owen Taylor2004-11-222-0/+19
| | | | | | | | | | | Mon Nov 22 15:21:11 2004 Owen Taylor <otaylor@redhat.com> * modules/syriac configure.in modules/Makefile.am modules/makefile.msc: Add Syriac module by Emil Soleyman-Zomalan. (#147779) * examples/Makefile.am examples/syriac.utf: Syriac example text.
* Shut up cvsManish Singh2004-10-021-0/+1
|
* Up version to 1.7.0.Owen Taylor2004-09-242-0/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Sep 24 12:59:22 2004 Owen Taylor <otaylor@redhat.com> * configure.in: Up version to 1.7.0. * pango/pango-renderer.[ch] pango/pango.h pango/Makefile.am: Add PangoRenderer, a base class that is subclassed to produce rendering drivers for different backends and purposes. * pango/pangoft2-private.h pango/pangoft2-render.c pango/pangoft2.c: Move rendering into pangoft2-render.c, use PangoRenderer. * pango/pangoft2-fontmap.c pango/pangoft2-private.h: Add _pango_ft2_font_map_get_renderer() to retrieve a singleton fontmap for the fontmap. * pango/pangoxft-render.[ch] pango/pangoxft.c pango/Makefile.am: Make Xft rendering use PangoRenderer, add publically visible, subclassable PangoXftRenderer. * pango/pangoxft-fontmap.c pango/pangoxft-private.h: Add _pango_xft_font_map_get_renderer() to retrieve a singleton fontmap for the fontmap. * examples/xftview.c examples/Makefile.am: Add a test program using the Xft backend. * docs/*: Update minimally for PangoRenderer.
* Fix reversed auto-hint option.Owen Taylor2004-09-131-1/+1
| | | | | | | Mon Aug 16 14:17:56 2004 Owen Taylor <otaylor@redhat.com> * examples/renderdemo.c (fc_substitute_func): Fix reversed auto-hint option.
* Sync with change to OTL_GlyphItemRec.Owen Taylor2004-08-163-7/+61
| | | | | | | | | Mon Aug 16 13:42:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-ot.h (struct _PangoOTGlyph): Sync with change to OTL_GlyphItemRec. (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129982, Jatin Nansi)
* Fix C99ism. I am clearly the last man stuck in the dark age of C.Morten Welinder2004-07-241-1/+2
| | | | | | | 2004-07-23 Morten Welinder <terra@gnome.org> * examples/renderdemo.c (parse_ellipsis): Fix C99ism. I am clearly the last man stuck in the dark age of C.
* Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071)Owen Taylor2004-07-142-1/+24
| | | | | | | | | | | | | | | | | | Wed Jul 14 17:47:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.[ch] pango/ellipsize.c pango/Makefile.am: Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071) * pango/pango-layout-private.h pango/pango-layout.c: Move PangoLayout structure into a separate header file. * pango/pango-glyph-item.[ch]: Add pango_glyph_item_free(). * pango/pango-glyph-item-private.h pango/pango-glyph-item.c: Internally export the PangoGlyphItemIter functionality. * examples/renderdemo.[ch]: Add --ellipsize option.
* Split most of the guts of pangoft2topgm.c into separate source files toOwen Taylor2004-07-104-572/+145
| | | | | | | | | | Sat Jul 10 18:06:21 2004 Owen Taylor <otaylor@redhat.com> * examples/renderdemo.[ch] examples/Makefile.am examples/pangoft2topgm.c: Split most of the guts of pangoft2topgm.c into separate source files to allow creation of new rendering demos for different backends.
* Add PangoMatrix type for affine transforms.Owen Taylor2004-05-282-56/+188
| | | | | | | | | | | | | | | | | | | | | | | | Fri May 28 11:39:39 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h pango/pango-utils.c: Add PangoMatrix type for affine transforms. * configure.in pango.pc.in pango/Makefile.am: Add a -lm dependency for PangoMatrix operations. * pango/pango-context.[ch]: Add pango_context_set/get_matrix(). * pango/pangoft2-render.c pango/pangoft2-private.h: Add code for drawing antialiased transformed rectangles and squiggly error underlines. * pango/pangoft2.[ch]: Add pango_ft2_render_transformed(), pango_ft2_render_layout_subpixel(), pango_ft2_render_layout_line_subpixel(), implement transformed rendering. * pango/pangofc-font.c: Pass any transformation matrix on to fontconfig when creating the pattern for a PangoFcFont.
* Handle '--' correctly.Anders Carlsson2004-04-051-1/+1
| | | | | | | 2004-04-05 Anders Carlsson <andersca@gnome.org> * examples/argcontext.c (arg_context_parse): Handle '--' correctly.
* Patch from Dov Grobgeld to add auto-direction to PangoLayout (more ofOwen Taylor2004-03-012-0/+10
| | | | | | | | | | | | | | | | | | | | | | | Fri Feb 27 11:23:21 2004 Owen Taylor <otaylor@redhat.com> Patch from Dov Grobgeld to add auto-direction to PangoLayout (more of #70451) * examples/pangofttopgm.c: Add --no-auto-dir argument. * pango-layout.[ch]: Add pango_layout_set_auto_dir() defaulting to TRUE; resolve paragraph direction within a layout by propagating base direction downwards from paragraph to paragraph. * pango-context.[ch]: Add pango_itemize_with_base_dir() which overrides the base direction from the PangoContext. Mon Mar 1 10:01:58 2004 Owen Taylor <otaylor@redhat.com> * docs/tmpl/text-attributes.sgml: Document %PANGO_UNDERLINE_ERROR. * pango/pangofc-fontmap.c: Pango*Fc*FontmapPrivate. Make compile.
* Add --indent=n option.Noah Levitt2003-11-252-0/+12
| | | | | | | | | 2003-11-25 Noah Levitt <nlevitt@columbia.edu> * examples/pangoft2topgm.c: Add --indent=n option. * pango/pango-layout.[ch]: Indent the first line of every paragraph, not just the first line in the layout. (#66626)
* Borrow argument parsing code from GDK.Owen Taylor2003-09-155-225/+700
| | | | | | | | | | | | | Mon Sep 15 15:48:25 2003 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am examples/argcontext.c examples/argcontext.h: Borrow argument parsing code from GDK. * examples/pangoft2topgm.c: Use argcontext.[ch]. Add options --header to display options in a header in the image, --text to pass the text on the command line, --width to set a wrap width. Add autoconversion to non-PGM output formats via 'convert' for --output="foo.png" etc.
* Add a dependency on pango-querymodules... Really needs to depend on theOwen Taylor2003-08-251-2/+2
| | | | | | | | | Fri Aug 22 17:29:42 2003 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (pango.modules): Add a dependency on pango-querymodules... Really needs to depend on the modules too, but this at least will reduce the chances of it not getting rebuild when necessary.
* Replace --family/--scale options with a single --fontOwen Taylor2003-08-082-46/+56
| | | | | | | Fri Aug 8 11:45:15 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Replace --family/--scale options with a single --font
* Add option to run 'display' on the output as well as/instead of specifyingOwen Taylor2003-08-082-26/+132
| | | | | | | | Fri Aug 8 11:33:24 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Add option to run 'display' on the output as well as/instead of specifying output file name.
* Deprecate pango_ft2_get_context(), pango_ft2_font_map_for_display(),Owen Taylor2003-08-083-54/+143
| | | | | | | | | | | | | | | | Fri Aug 8 10:33:31 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoft2.h: Deprecate pango_ft2_get_context(), pango_ft2_font_map_for_display(), pango_ft2_shutdown_display(); the explicit * pango/pangoft2-fontmap.c (pango_ft2_shutdown_display): Add docs about deprecations. * examples/Makefile.am (INCLUDES): Add -DPANGO_DISABLE_DEPRECATED * examples/pangoft2topgm.c: Fix deprecated usages; add --dpi and --markup options. Improve error handling.
* Get rid of a bunch of leftovers from the conversion from viewer; addOwen Taylor2003-08-082-322/+308
| | | | | | | | | Fri Aug 8 10:03:03 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c: Get rid of a bunch of leftovers from the conversion from viewer; add --waterfall to create a waterfall output at different sizes, and --margin to set the margin.
* Remove Qt-based example; it was only testing the obsolete pango-x backend,Owen Taylor2003-07-241-29/+1
| | | | | | | | | | | Thu Jul 24 15:09:22 2003 Owen Taylor <otaylor@redhat.com> * configure.in examples/Makefile.am examples/viewer-qt.{cc,h}: Remove Qt-based example; it was only testing the obsolete pango-x backend, and was causing more problems for people trying to configure Pango then it was worth. * examples/viewer.c: Remove obsolete test case from CVS.
* Add code to check for "./pangorc" so that it works uninstalled.Owen Taylor2003-05-272-0/+6
| | | | | | | Tue May 27 12:19:53 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c (main): Add code to check for "./pangorc" so that it works uninstalled.
* Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, NoahOwen Taylor2003-04-291-1/+0
| | | | | | | | | | Tue Apr 29 18:02:31 2003 Owen Taylor <otaylor@redhat.com> * configure.in: Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, Noah Levitt) * {pango,tests,examples}/Makefile.am: Remove now unnecessary references to FONTCONFIG_CFLAGS/LIBS.
* make similar changes to the ones on glib head (call gtk-docize, etc).James Henstridge2003-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-11 James Henstridge <james@daa.com.au> * autogen.sh: make similar changes to the ones on glib head (call gtk-docize, etc). * configure.in: move some calculations into M4 macros, rather than calculating them when configure runs. Use AC_HELP_STRING where appropriate. Replace gtk-doc checks with a call to GTK_DOC_CHECK. Replace AC_OUTPUT_COMMANDS() call with a number of calls to AC_CONFIG_COMMANDS (once per created file). Get rid of the "chmod +x pango-config" bit, because there is no pango-config anymore. * Makefile.am: get rid of custom distcheck rule, and set DISTCHECK_CONFIGURE_FLAGS, which is equivalent. Use += to select which .pc files to install. * pango/Makefile.am: Add rules to rebuild module-defs* files, and remove them on clean. Reorder so that rules related to each individual library are next to each other. Use BUILT_SOURCES for built sources. * pango/opentype/Makefile.am: don't use STRIP_BEGIN/STRIP_END. * modules/*/Makefile.am: simplify module makefiles through use of +=, and regularise them a bit (fixed a few bugs in the process). * docs/Makefile.am: remove common rules, and instead include gtk-doc.make. * examples/Makefile.am: add pango.modules to CLEANFILES. * tests/Makefile.am: remove temporary files on clean.
* Add an --enable-debug configure argument defaulting to 'yes' for unstableOwen Taylor2003-02-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Feb 17 13:06:39 2003 Owen Taylor <otaylor@redhat.com> * configure.in **/Makefile.am: Add an --enable-debug configure argument defaulting to 'yes' for unstable releases and 'minimum' for stable releases. For minimum, -DG_DISABLE_CAST_CHECKS. * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c: Add caching of fontsets (#104495, initial patch and review by Soeren Sandmann) * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c pango/pangoft2-private.h pango/pangoxft-private.h: Remove cache of recently freed fonts; not necessary now that we cache fontsets. * pango/pangofc-fontmap.cI (pango_fc_pattern_set_free): Rename from pango_fc_font_set_free to reflect what it actually does. * pango/pangofc-fontmap.cI pango/pangoft-fontmap.c pango/pangoxft-fontmap.c: Combine clear-the-cache functions; we didn't need separate clear-the-font-cache and clear-the-pattern-cache functions.
* Remove call to QApplication::setStyle (new QCDEStyle())... didn't makeOwen Taylor2003-02-121-3/+0
| | | | | | | | | Wed Feb 12 16:44:05 2003 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc: Remove call to QApplication::setStyle (new QCDEStyle())... didn't make sense and caused problems if CDEStyle wasn't compiled into Qt. (#105264, Andrey Panov)
* Do not add GLIB_CFLAGS to CFLAGS.Sebastian Wilhelmi2002-11-261-1/+7
| | | | | | | | | | | | | | | | 2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Do not add GLIB_CFLAGS to CFLAGS. * docs/Makefile.am, examples/Makefile.am, modules/arabic/Makefile.am, modules/basic/Makefile.am, modules/hangul/Makefile.am, modules/hebrew/Makefile.am, modules/indic/Makefile.am, modules/tamil/Makefile.am, modules/thai/Makefile.am, pango/Makefile.am, pango/mini-fribidi/Makefile.am, pango/opentype/Makefile.am: Instead add $(GLIB_CFLAGS) directly to INCLUDES (GTKDOC_CFLAGS for docs/Makefile.am). Also some cosmetic line wrapping and reindentation.
* Fix missing argument (#99380, Dagfinn I. Mannsåker)Owen Taylor2002-11-251-2/+2
| | | | | | | Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument (#99380, Dagfinn I. Mannsåker)
* (Based on GTK+ patch by J. Ali Harlow in #87774)Owen Taylor2002-09-271-0/+3
| | | | | | | | | | | | | | Fri Sep 27 17:50:51 2002 Owen Taylor <otaylor@redhat.com> (Based on GTK+ patch by J. Ali Harlow in #87774) * configure.in: Add CROSS_COMPILING conditional. * modules/Makefile.am (install-data-local): Don't generate pango.modules when installing into a DESTDIR or cross-compiling. * examples/Makefile.am (all-local): Don't generate pango.modules when cross-compiling.
* Remove. Not used.Tor Lillqvist2002-09-222-47/+1
| | | | | | | | 2002-09-23 Tor Lillqvist <tml@iki.fi> * examples/pangowin32.aliases: Remove. Not used. * examples/Makefile.am (EXTRA_DIST): Remove here, too.
* Remove, obsolete.Tor Lillqvist2002-09-222-34/+1
| | | | | | | | | | | 2002-09-23 Tor Lillqvist <tml@iki.fi> * examples/makefile.mingw.in: Remove, obsolete. * examples/Makefile.am (EXTRA_DIST): Remove here, too. * configure.in (AC_OUTPUT): Don't try to output above removed files.
* Some fixes from #90267Owen Taylor2002-08-091-3/+4
| | | | | | | | | | | | | Thu Aug 8 21:37:48 2002 Owen Taylor <otaylor@redhat.com> Some fixes from #90267 * configure.in: Fix case where freetype2 is not in default include path. Quiet some warnings if /usr/lib/qt* doesn't exist. * examples/Makefile.am: Fix problem where if no Qt was found, -I /include was in the CFLAGS.
* Add FONTCONFIG_CFLAGS to INCLUDES. (Joe Yandle.)Owen Taylor2002-08-081-1/+1
| | | | | | | Thu Aug 8 18:55:21 2002 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (INCLUDES): Add FONTCONFIG_CFLAGS to INCLUDES. (Joe Yandle.)
* Remove pangoft2.aliases from CVS/distribution; it is no longer used.Owen Taylor2002-06-121-1/+0
| | | | | | | | Wed Jun 12 11:02:04 2002 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (EXTRA_DIST) examples/pangoft2.aliases: Remove pangoft2.aliases from CVS/distribution; it is no longer used. (#82736, Sven Neumann.)
* Temporarily remove tamil-xft from the build until we figure out what to doOwen Taylor2002-05-071-1/+1
| | | | | | | | | | | Tue May 7 19:20:05 2002 Owen Taylor <otaylor@redhat.com> * modules/tamil/Makefile.am (EXTRA_LTLIBRARIES): Temporarily remove tamil-xft from the build until we figure out what to do with it. (Obscures the OpenType Tamil engine.) * examples/HELLO.utf8: Fix spelling of Punjabi, removing stray vowel.
* Remove moc_view-qt.cc. (#74725)Owen Taylor2002-03-151-1/+0
| | | | | | Thu Mar 14 20:02:58 2002 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (EXTRA_DIST): Remove moc_view-qt.cc. (#74725)
* Switch over to GLib/GTK+ style library versioning. Update version numbersOwen Taylor2002-03-051-2/+10
| | | | | | | | Tue Mar 5 11:00:20 2002 Owen Taylor <otaylor@redhat.com> * configure.in **/Makefile.am *.pc.in: Switch over to GLib/GTK+ style library versioning. Update version numbers to 1.0.0.