"The affected drawable: (-1 for a new text layer)"
},
{
PDB_FLOAT,
"x",
"The x coordinate for the left of the text bounding box"
},
{
PDB_FLOAT,
"y",
"The y coordinate for the top of the text bounding box"
},
{
PDB_STRING,
"text",
"The text to generate"
},
{
PDB_INT32,
"border",
"The size of the border: -1 <= border"
},
{
PDB_INT32,
"antialias",
"Antialiasing (TRUE or FALSE)"
},
{
PDB_FLOAT,
"size",
"The size of text in either pixels or points"
},
{
PDB_INT32,
"size_type",
"The units of specified size: PIXELS (0), POINTS (1)"
},
{
PDB_STRING,
"fontname",
"The fontname (conforming to the X Logical Font Description Conventions)"
}
};
staticProcArgtext_fontname_outargs[]=
{
{
PDB_LAYER,
"text_layer",
"The new text layer"
}
};
staticProcRecordtext_fontname_proc=
{
"gimp_text_fontname",
"Add text at the specified location as a floating selection or a new layer.",
"This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.",
"The units of specified size: PIXELS (0), POINTS (1)"
},
{
PDB_STRING,
"fontname",
"The fontname (conforming to the X Logical Font Description Conventions)"
}
};
staticProcArgtext_get_extents_fontname_outargs[]=
{
{
PDB_INT32,
"width",
"The width of the specified font"
},
{
PDB_INT32,
"height",
"The height of the specified font"
},
{
PDB_INT32,
"ascent",
"The ascent of the specified font"
},
{
PDB_INT32,
"descent",
"The descent of the specified font"
}
};
staticProcRecordtext_get_extents_fontname_proc=
{
"gimp_text_get_extents_fontname",
"Get extents of the bounding box for the specified text.",
"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.",
"The affected drawable: (-1 for a new text layer)"
},
{
PDB_FLOAT,
"x",
"The x coordinate for the left of the text bounding box"
},
{
PDB_FLOAT,
"y",
"The y coordinate for the top of the text bounding box"
},
{
PDB_STRING,
"text",
"The text to generate"
},
{
PDB_INT32,
"border",
"The size of the border: -1 <= border"
},
{
PDB_INT32,
"antialias",
"Antialiasing (TRUE or FALSE)"
},
{
PDB_FLOAT,
"size",
"The size of text in either pixels or points"
},
{
PDB_INT32,
"size_type",
"The units of specified size: PIXELS (0), POINTS (1)"
},
{
PDB_STRING,
"foundry",
"The font foundry, \"*\" for any"
},
{
PDB_STRING,
"family",
"The font family, \"*\" for any"
},
{
PDB_STRING,
"weight",
"The font weight, \"*\" for any"
},
{
PDB_STRING,
"slant",
"The font slant, \"*\" for any"
},
{
PDB_STRING,
"set_width",
"The font set-width, \"*\" for any"
},
{
PDB_STRING,
"spacing",
"The font spacing, \"*\" for any"
},
{
PDB_STRING,
"registry",
"The font registry, \"*\" for any"
},
{
PDB_STRING,
"encoding",
"The font encoding, \"*\" for any"
}
};
staticProcArgtext_outargs[]=
{
{
PDB_LAYER,
"text_layer",
"The new text layer"
}
};
staticProcRecordtext_proc=
{
"gimp_text",
"Add text at the specified location as a floating selection or a new layer.",
"This tool requires font information in the form of nine parameters: size, foundry, family, weight, slant, set_width, spacing, registry, encoding. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text."
"The units of specified size: PIXELS (0), POINTS (1)"
},
{
PDB_STRING,
"foundry",
"The font foundry, \"*\" for any"
},
{
PDB_STRING,
"family",
"The font family, \"*\" for any"
},
{
PDB_STRING,
"weight",
"The font weight, \"*\" for any"
},
{
PDB_STRING,
"slant",
"The font slant, \"*\" for any"
},
{
PDB_STRING,
"set_width",
"The font set-width, \"*\" for any"
},
{
PDB_STRING,
"spacing",
"The font spacing, \"*\" for any"
},
{
PDB_STRING,
"registry",
"The font registry, \"*\" for any"
},
{
PDB_STRING,
"encoding",
"The font encoding, \"*\" for any"
}
};
staticProcArgtext_get_extents_outargs[]=
{
{
PDB_INT32,
"width",
"The width of the specified font"
},
{
PDB_INT32,
"height",
"The height of the specified font"
},
{
PDB_INT32,
"ascent",
"The ascent of the specified font"
},
{
PDB_INT32,
"descent",
"The descent of the specified font"
}
};
staticProcRecordtext_get_extents_proc=
{
"gimp_text_get_extents",
"Get extents of the bounding box for the specified text.",
"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.",