Commit fc6a54aa authored by Darin Adler's avatar Darin Adler

Some cleanup on the test program.

	* TODO:
	* test-rsvg.c: (main):
	Some cleanup on the test program.

	* configure.in:
	* librsvg.spec.in:
	Remove gtk requirement and remove remnants of the old
	freetype requirement. Also get rid of gmodule and gthread
	since we only use glib itself.

	* makefile-simple:
	* subpixel-text-test:
	Remove some no-longer-useful files (these were never
	in the tarball anyway).
parent b7ae3e83
2002-01-03 Darin Adler <darin@bentspoon.com>
* TODO:
* test-rsvg.c: (main):
Some cleanup on the test program.
* configure.in:
* librsvg.spec.in:
Remove gtk requirement and remove remnants of the old
freetype requirement. Also get rid of gmodule and gthread
since we only use glib itself.
* makefile-simple:
* subpixel-text-test:
Remove some no-longer-useful files (these were never
in the tarball anyway).
2002-01-03 Darin Adler <darin@bentspoon.com>
* rsvg.c: (rsvg_text_handler_characters):
......
The 1.0.1 release fixes a bug that caused Nautilus to crash
when certain malformed SVG files were present and another bug
that made librsvg fail when it was not in the same prefix as
Nautilus.
README for librsvg 1.1.
This is librsvg 1.1 - the GNOME 2.0 platform development version
This is librsvg 1.1 - the GNOME 2.0 platform development version of
librsvg.
If you are looking for the stable version to use with the GNOME
......@@ -10,5 +10,3 @@ cvs co -r librsvg-1-0 librsvg
If you have questions or comments about librsvg, please send
email to nautilus-list@lists.eazel.com
* Add actual GError support in the loader, rather then the g_warnings
now.
that we currently use.
* Clean up test-rsvg
* Move the stray bits of libart back into libart_lgpl.
Post 2.0
* Consider storing the paths so that the file can be rerendered
multiple times without reparsing
multiple times without reparsing.
* Allow affine's other than scaling
* Allow affine's other than scaling.
* Make error messages translatable (requires adding gettext).
......@@ -41,25 +41,20 @@ dnl ===========================================================================
GLIB_REQUIRED=1.3.1
XML_REQUIRED=2.2.8
ART_REQUIRED=2.3.5
GTK_REQUIRED=1.3.7
GDK_PIXBUF_REQUIRED=1.3.7
FREETYPE_REQUIRED=2.0.1
FREETYPE_LIBRARY_REQUIRED=6.1.0
POPT_REQUIRED=1.5
PANGO_REQUIRED=0.22
AC_SUBST(GLIB_REQUIRED)
AC_SUBST(XML_REQUIRED)
AC_SUBST(ART_REQUIRED)
AC_SUBST(GTK_REQUIRED)
AC_SUBST(GDK_PIXBUF_REQUIRED)
AC_SUBST(FREETYPE_REQUIRED)
AC_SUBST(POPT_REQUIRED)
AC_SUBST(PANGO_REQUIRED)
dnl ===========================================================================
PKG_CHECK_MODULES(LIBRSVG, glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED libxml-2.0 >= $XML_REQUIRED libart-2.0 >= $ART_REQUIRED pango >= $PANGO_REQUIRED pangoft2 >= $PANGO_REQUIRED)
PKG_CHECK_MODULES(LIBRSVG, glib-2.0 >= $GLIB_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED libxml-2.0 >= $XML_REQUIRED libart-2.0 >= $ART_REQUIRED pango >= $PANGO_REQUIRED pangoft2 >= $PANGO_REQUIRED)
AC_SUBST(LIBRSVG_LIBS)
AC_SUBST(LIBRSVG_CFLAGS)
......
......@@ -19,7 +19,6 @@ URL: http://nautilus.eazel.com/
BuildRoot: /var/tmp/%{name}-%{ver}-root
Docdir: %{prefix}/doc
Requires: glib >= @GLIB_REQUIRED@
Requires: gtk+ >= @GTK_REQUIRED@
Requires: libxml >= @LIBXML_REQUIRED@
Requires: gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@
Requires: popt >= @POPT_REQUIRED@
......
# This is a very simple makefile which may be useful in those rare cases
# when autoconf is more of a pain in the ass than it's worth.
#FREETYPE_CFLAGS=-I/usr/local/include
#FREETYPE_LDLIBS=-L/usr/local/lib -lfreetype
FREETYPE_CFLAGS=-I../cut-n-paste-code
FREETYPE_LDLIBS=-L../cut-n-paste-code/freetype/.libs -lfreetype
CFLAGS=-g -Wall -ansi -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wsign-promo -Werror $(FREETYPE_CFLAGS) `gnome-config --cflags glib libart gdk_pixbuf xml`
LDLIBS=`gnome-config --libs glib libart gdk_pixbuf xml` -lpopt $(FREETYPE_LDLIBS)
RSVG_OBJS=art_render_gradient.o \
art_render_mask.o \
art_render_svp.o \
rsvg-bpath-util.o \
rsvg-css.o \
rsvg-defs.o \
rsvg-ft.o \
rsvg-paint-server.o \
rsvg-path.o \
rsvg.o
all: test-rsvg test-ft test-ft-gtk
test-rsvg: test-rsvg.o $(RSVG_OBJS)
test-ft: test-ft.o $(RSVG_OBJS)
test-ft-gtk: test-ft-gtk.o $(RSVG_OBJS)
This is a test of subpixel positioning.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
cccccccccccccccccccccccccccccccccccccccc
dddddddddddddddddddddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffffffffffffffffffffff
gggggggggggggggggggggggggggggggggggggggg
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
llllllllllllllllllllllllllllllllllllllll
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
We now return you to your regularly scheduled programming.
\ No newline at end of file
......@@ -22,8 +22,9 @@
Author: Raph Levien <raph@artofcode.com>
*/
#include "config.h"
#include "rsvg.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <popt.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -31,11 +32,10 @@
int
main (int argc, const char **argv)
{
GdkPixbuf *pixbuf;
poptContext popt_context;
char *x_zoom_str = "1.0";
char *y_zoom_str = "1.0";
poptContext optCtx;
struct poptOption optionsTable[] = {
struct poptOption options_table[] = {
{ "x-zoom", 'x', POPT_ARG_STRING, &x_zoom_str, 0, NULL, "zoom factor" },
{ "y-zoom", 'y', POPT_ARG_STRING, &y_zoom_str, 0, NULL, "zoom factor" },
POPT_AUTOHELP
......@@ -43,13 +43,14 @@ main (int argc, const char **argv)
};
char c;
const char * const *args;
GdkPixbuf *pixbuf;
g_type_init ();
optCtx = poptGetContext ("test-rsvg", argc, argv, optionsTable, 0);
popt_context = poptGetContext ("test-rsvg", argc, argv, options_table, 0);
c = poptGetNextOpt (optCtx);
args = poptGetArgs (optCtx);
c = poptGetNextOpt (popt_context);
args = poptGetArgs (popt_context);
pixbuf = rsvg_pixbuf_from_file_at_zoom (args[0],
atof (x_zoom_str),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment