summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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)
* 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)
* Make the Kermit notice a "no warranty" clause, to comply with LPGL.Behdad Esfahbod2005-11-212-3/+5
| | | | | | | | | | 2005-11-21 Behdad Esfahbod <behdad@gnome.org> * examples/GLASS.utf8: Make the Kermit notice a "no warranty" clause, to comply with LPGL. * examples/HELLO.utf8: Add a few Arabic non-spacing marks to the example. Put the line with Pango in Greek-Japanese back in.
* 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)
* 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.
* 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)