2003-01-31 Sven Neumann <sven@gimp.org> * app/config/gimpconfig-params.h * app/config/gimpcoreconfig.c: added a pixels parameter to the GIMP_CONFIG_INSTALL_PROP_UNIT() macro. * app/core/Makefile.am * app/core/gimpimage-text.[ch]: removed these two files. * app/text/Makefile.am * app/text/gimptext-compat.[ch]: new files with compatibility routines that provide the old text API (solely for PDB calls). * app/text/gimptext-render.[ch]: new files with text rendering routines (not much yet). * app/text/text-types.h * app/text/gimptextlayer.[ch]: new object derived from GimpLayer. * app/text/gimptext.[ch]: prepared for future improvements. * app/pdb/text_tool_cmds.c * app/tools/gimptexttool.c * tools/pdbgen/pdb/text_tool.pdb: changed accordingly.
44 lines
1.6 KiB
C
44 lines
1.6 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* GimpText
|
|
* Copyright (C) 2002-2003 Sven Neumann <sven@gimp.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_TEXT_COMPAT_H__
|
|
#define __GIMP_TEXT_COMPAT_H__
|
|
|
|
|
|
/* convenience functions that provide the 1.2 API, only used by the PDB */
|
|
|
|
GimpLayer * text_render (GimpImage *gimage,
|
|
GimpDrawable *drawable,
|
|
gint text_x,
|
|
gint text_y,
|
|
const gchar *fontname,
|
|
const gchar *text,
|
|
gint border,
|
|
gint antialias);
|
|
gboolean text_get_extents (const gchar *fontname,
|
|
const gchar *text,
|
|
gint *width,
|
|
gint *height,
|
|
gint *ascent,
|
|
gint *descent);
|
|
|
|
|
|
#endif /* __GIMP_TEXT_COMPAT_H__ */
|