gimp_text_fontname << INDEX >> gimp_text_get_extents_fontname

gimp_text_get_extents (1998)

NAME
gimp_text_get_extents - Get extents of the bounding box for the specified text.
SYNOPSIS
(width,height,ascent,descent) = gimp_text_get_extents (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
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)
STRINGfoundryThe font foundry, "*" for any
STRINGfamilyThe font family, "*" for any
STRINGweightThe font weight, "*" for any
STRINGslantThe font slant, "*" for any
STRINGset_widthThe font set-width, "*" for any
STRINGspacingThe font spacing, "*" for any
STRINGregistryThe font registry, "*" for any
STRINGencodingThe font encoding, "*" for any
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 (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
(width,height,ascent,descent) = text_get_extents Layer (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
(width,height,ascent,descent) = text_get_extents Image (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
(width,height,ascent,descent) = text_get_extents Channel (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
(width,height,ascent,descent) = text_get_extents Display (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
(width,height,ascent,descent) = text_get_extents Drawable (text,size,size_type,foundry,family,weight,slant,set_width,spacing,registry,encoding)
AUTHOR
Martin Edlman
(c)1998 Spencer Kimball & Peter Mattis


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