gimp_text_get_extents << INDEX >> gimp_threshold

gimp_text_get_extents_fontname (1998)

NAME
gimp_text_get_extents_fontname - Get extents of the bounding box for the specified text.
SYNOPSIS
(width,height,ascent,descent) = gimp_text_get_extents_fontname (text,size,size_type,fontname)
DESCRIPTION
This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.
INPUT ARGUMENTS
TYPENAMEDESCRIPTION
STRINGtextThe text to generate
FLOATsizeThe size of text in either pixels or points
INT32size_typeThe units of specified size: PIXELS (0) or POINTS (1)
STRINGfontnameThe fontname (conforming to the X Logical Font Description Conventions)
RETURN VALUES
TYPENAMEDESCRIPTION
INT32widthThe width of the specified font
INT32heightThe height of the specified font
INT32ascentThe ascent of the specified font
INT32descentThe descent of the specified font
SOME SYNTAX ALTERNATIVES
(width,height,ascent,descent) = Gimp->text_get_extents_fontname (text,size,size_type,fontname)
(width,height,ascent,descent) = text_get_extents_fontname Layer (text,size,size_type,fontname)
(width,height,ascent,descent) = text_get_extents_fontname Image (text,size,size_type,fontname)
(width,height,ascent,descent) = text_get_extents_fontname Channel (text,size,size_type,fontname)
(width,height,ascent,descent) = text_get_extents_fontname Display (text,size,size_type,fontname)
(width,height,ascent,descent) = text_get_extents_fontname Drawable (text,size,size_type,fontname)
AUTHOR
Martin Edlman & Sven Neumann
(c)1998 Spencer Kimball & Peter Mattis


This page was created by gimpdoc, written by Marc Lehmann <pcg@goof.com>