1999-09-25  Morten Welinder  <terra@diku.dk>

	* gnome-canvas-hacktext.c (art_drect_hacktext): Static.
	(gnome_canvas_hacktext_point): Initialise dist.
	(recalc_bounds): #if 0.

	* gnome-canvas-hacktext.c (art_drect_hacktext): Use unsigned
 	characters.
	(gnome_canvas_hacktext_point): Ditto.
	(gnome_canvas_hacktext_render): Ditto.

1999-09-25  Miguel de Icaza  <miguel@gnu.org>

	* gnome-canvas-hacktext.c (gnome_canvas_hacktext_point): Return
	the proper value here (0.0 means "Point is inside me").

1999-09-24  Morten Welinder  <terra@diku.dk>

	* gnome-canvas-bpath.c (gnome_canvas_bpath_destroy): Plug leak.

	* parseAFM.c (parseFile): Plug leak.
	(parseFileFree): New function.

	* gt1-parset1.c (gt1_unload_font): Call parseFileFree.

1999-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-print-meta.c: Add error checking for the condition of size
	not have been set.

	* gnome-print-preview.c (gpp_showpage): Drop the current affine
	and the current path at showpage time
	(gpp_show): Removed debugging messages.

1999-09-18  Morten Welinder  <terra@diku.dk>

	* gnome-printer-dialog.c (gnome_printer_widget_get_printer): Plug leak.
	(set_profile): Plug leak.

	* gt1-parset1.c (tokenize_free): New function.
	(gt1_load_font): Plug leaks.  Constify.
	(tokenize_new, tokenize_new_from_mystring, read_int32_lsb,
 	tokenize_get, tokenize_get_hex_byte, tokenize_get_raw,
 	convert_glyph_code_to_begt1_path, array_new, parse_num,
 	gt1_dict_stack_lookup, get_stack_number, get_stack_dict,
 	get_stack_name, get_stack_file, get_stack_string, get_stack_array,
 	get_stack_bool, get_stack_proc, pscontext_new, charstring_decrypt,
 	print_glyph_code, get_subr_body, munch_font_info): Static.
	(pscontext_free): New function.
	(gt1_unload_font): New function.
	(gt1_load_font): Plug file leak.
	(free_munched_font_info): New function.
	(internal_closefile): Plug leak.

	* gnome-print-preview.c (kill_font): Unload the font.

	* gnome-canvas-hacktext.c (gnome_canvas_hacktext_init): Initialise
 	affine transformation.
	(gnome_canvas_hacktext_destroy): Plug this leak again.
	(gnome_canvas_hacktext_point): Always return a value.

1999-09-12  Michael Meeks  <michael@nuclecu.unam.mx>

	* gnome-print.c (gnome_print_context_close_file): Use opposite close &
	NULL pointer.

1999-09-07  Morten Welinder  <terra@diku.dk>

	* gnome-print-preview.c (gpp_finalize): Plug leak.

	* gnome-canvas-hacktext.c (gnome_canvas_hacktext_destroy): Plug leak.
	* gnome-canvas-hacktext.c (gnome_canvas_hacktext_get_info): Prototype.

	* gt1-parset1.c (gt1_load_font): Plug leaks.
	(internal_eexec): Plug leak.

1999-09-03  Morten Welinder  <terra@diku.dk>

	* gnome-print-meta.c (decode_double): Constify.  Ansify.
	(decode_int): Ditto.
	(decode_image): Constify.
	(do_render): Ditto.

1999-09-03  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c (gpp_finalize): Destroy instead of unref.

	* gnome-font.c: Only invoke the XML loading functions on existing
	files. 

1999-09-02  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-meta.c (do_render): Removed warning.

	* gnome-print-preview.c (gpp_finalize): Only destroy the hash
	table if it was defined.  Release the hash table here.

	* gnome-print-meta.h: Added private field.

	* gnome-print-meta.c (do_render): Modified to render only one page
	if requested.
	(gnome_print_meta_render_from_object_page): New api entry point.
	(gnome_print_meta_render_page): New api entry point.

1999-08-31  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c (gpp_stroke, gpp_strokepath, gpp_fill,
	gpp_image, gpp_show, lazy_showpage_check): Added lazy showpage
	support, so that the page is not hidden until the generation of
	the next page starts.  This is just to enable sample applications
	to not have to use the job control interface unless they are big
	applications. 

1999-08-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-print-pixbuf.c (gpix_print_band): Use GnomePrintContext's
	output device here instead of our own output device.

	* gnome-print-ps.c (gnome_print_ps_new): Documented, added
	paper_size argument

1999-08-26  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c (gpp_image): Move source++ inside this
	loop.  This fixes gray images.
	(gpp_image): tricky, very trikcy:  Use the image anchor, first
	flip the image, then apply both current affine and then the page affine.

1999-08-25  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-rgbp.c (gnome_print_rgbp_construct): Set the proper
	proportion for dpi values. 

	* gnome-print-preview.c (gpp_show): The x and y should take into
	account the pixels per unit of the canvas.  Makes preview work
	with zooming.

	* gnome-print-rgbp.c: Use dpis instead of the hardcoded 1.0 value.

1999-08-20  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c (gpp_grestore): Use glist correctly.
	(gpp_show): Invert the angle as the canvas coordinate system is
	inverted in this regard.
	(gnome_print_preview_construct): Fix preconditionals.

	Documented the GnomePrintPreview and GnomePrintPreviewJob APIs.

	* gnome-print-rgbp.c: New file.  Driver that uses the
	gnome-print-preview driver to render to an RGB buffer.

	* gnome-print-pixbuf.c: New file.  Driver that dumps an RGB file,
	a subclass of the gnome-print-rgbp.c
	
	* gnome-canvas-hacktext.c (gnome_canvas_hacktext_req_repaint,
	gnome_canvas_hacktext_render):  The translation was being computed
	using the projection of the x and y coordinates into account. 

	This makes text render properly, although I might have
	missunderstood something.

1999-08-16  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c (gpp_show): get fonts and show working.
	Something is wrong with the way I setup affines.  Now I can see
	:-).  This is tomorrow's material.

	(gnome_canvas_bpath_def_duplicate): New routine to duplicate a
	GnomeCanvasBpathDef. 
	(gpp_gsave): Use above routine.

	(gnome_print_preview_construct): Use
	translate, not scale to setup the page translation.
	Flip the page.
	(gpp_image): Put the image from (0.0,0.0) to (1.0,1.0).

1999-08-15  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c: Changed all return values of zero to -1
	to indicate an error condition.
	(GraphicContext): move the bpath here as it is part of the context.
	(gpp_gsave): Duplicate the bpath here;  Duplicate base context
	(gpp_restore): Pop context.
	(gpp_concat): Create new context here as well.

1999-08-13  Miguel de Icaza  <miguel@gnu.org>

	* gnome-print-preview.c: New file.  Implements a print-preview
	context. 
	
	* gnome-print-ps.c: Made all internal functions static.

1999-08-08  Morten Welinder  <terra@diku.dk>

	* gnome-font.c (gnome_font_unsized_closest): Quiet.
	(gnome_font_new_closest): Quiet.
	(create_display_font): Plug leak.

1999-07-11  Miguel de Icaza  <miguel@gnu.org>

	* gnome-font.c (gnome_font_list): Use g_list_prepend instead of
	g_list_append and reverse the result.

	* Eliminate "b" flag from fopen, that is not supported by Spec
	11whatever

1999-07-07  Miguel de Icaza  <miguel@gnu.org>

	* gnome-font.c (gnome_font_unsized_get_pfa): Added some inline api
	docs.

1999-07-08  Havoc Pennington  <hp@pobox.com>

	* gnome-font.c (create_display_font): Don't warn if wpdf->gdk_font
	== NULL, because that's allowed to happen.

1999-07-07  Jody Goldberg  <jgoldberg@home.com>

	* gnome-font.[ch] (gnome_font_get_width_string_n) : New function.

1999-07-05  Morten Welinder  <terra@diku.dk>

	* gnome-font.c (gnome_get_display_font): Don't pretend it is a
 	catastrophe if we don't have a font.

	* gnome-text.c (gnome_text_layout_new): Constify.

	* gnome-font.c (gnome_font_family_to_x_name): Constify.
	(gnome_font_weight_to_string): Constify.
	(gnome_font_x_name_to_family): Constify.
	(string_to_gnome_font_weight): Constify.
	(find_best_x_weight): Constify.
	(find_best_x_font): Constify.
	(create_display_font): Constify.
	(getFontComponent): Constify.
	(getFontFoundry): Constify.
	(getFontFamily): Constify.
	(getFontWeight): Constify.
	(getGnomeFontWeight): Constify.
	(getFontSlant): Constify.
	(fontIsItalic): Constify.
	(getFontSWidth): Constify.
	(getFontAdStyle): Constify.
	(getFontPixelSize): Constify.
	(getFontPointSize): Constify.
	(getFontResolutionX): Constify.
	(getFontResolutionY): Constify.
	(getFontSpace): Constify.
	(getFontAverageWidth): Constify.
	(getFontRegistry): Constify.
	(getFontEncoding): Constify.
	(setFontFoundry): Constify.
	(setFontFamily): Constify.
	(setFontWeight): Constify.
	(setFontSlant): Constify.
	(setFontSWidth): Constify.
	(setFontAdStyle): Constify.
	(setFontPixelSize): Constify.
	(setFontPointSize): Constify.
	(setFontResolutionX): Constify.
	(setFontResolutionY): Constify.
	(setFontSpace): Constify.
	(setFontAverageWidth): Constify.
	(setFontRegistry): Constify.
	(setFontEncoding): Constify.
	(setComponentReplace): Constify.
	(initialize_hashes): Fix prototype: takes no arguments, not a
 	arbitrary list of arguments.  This is C, not C++.

	* gnome-font.h: #includes before C++ wrapping.

	* gnome-font.c (xmlGetValue): Fix leak.
	(gnome_font_load_afm): Fix huge leak.
	(gnome_font_load_fontmap): Fix unbelievable leak.
	(gnome_font_add_mapping): Constify.
	(gnome_font_find): Constify.
	(gnome_font_find_filename): Constify.
	(gnome_font_is_afm_file): Fix incorrect usage of tolower.
	(gnome_font_load_fontmap): Fix leak.
	(create_display_font): Fix leak.

1999-06-26  Chris Lahey  <clahey@umich.edu>

	* gnome-font.c (debugmsg): Made debugging messages be printed only
	if the GNOME_PRINT_DEBUG environment variable is set.

1999-06-18  Havoc Pennington  <hp@pobox.com>

	* gnome-print-ps.c (gnome_print_ps_setfont): Same problem as with
	colors - didn't consider gsave/grestore.

1999-06-18  Havoc Pennington  <hp@pobox.com>

	* gnome-print-ps.c (gnome_print_ps_setrgbcolor): The last color
	set is not necessarily the current color (gsave/grestore)

1999-05-26  Raja R Harinath  <harinath@cs.umn.edu>

	* Makefile.am (INCLUDES): Include $(top_srcdir).

1999-05-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-font.c, gnome-font.h, gnome-font-dialog.c,
	gnome-font-dialog.h, gnome-print-meta.c, gnome-print-meta.h,
	gnome-print-meta.c, gnome-print-ps.c, gnome-print-ps.h,
	gnome-print.c, gnome-print.h, gnome-printer-dialog.c,
	gnome-printer-dialog.h, gnome-printer-profile.c, gnome-text.c,
	gnome-printer.c, gnome-printer.h : Use <libgnomeprint/*> headers
	instead of "...".
