DynaPDF Manual - Page 467

Previous Page 466   Index   Next Page 468

Function Reference
Page 467 of 777
SI32 pdfGetTextRect(
const PPDF* IPDF,
// Instance pointer
double ADDR PosX,
// X-Coordinate of the rectangle
double ADDR PosY,
// Y-Coordinate of the rectangle
double ADDR Width,
// Width of the rectangle
double ADDR Height) // Height of the rectangle
The function retrieves the bounding rectangle to output formatted text. No parameter of the function
must be NULL. See also SetTextRect(), WriteFText().
If the function succeeds the return value is 1. If the function fails the return value is 0.
double pdfGetTextRise(
const PPDF* IPDF) // Instance pointer
The function returns the current text rise used to output text. Text rise specifies the distance, in
unscaled text space units, to move the baseline up or down from its default location. Positive values
of text rise move the baseline up. Adjustments to the baseline are useful for drawing superscripts or
subscripts. The default location of the baseline can be restored by setting the text rise to 0. The figure
below illustrates the effect of the text rise. Text rise always applies to the vertical coordinate in text
space. See also SetTextRise().
The text moves around the baseline.
Default value = 0
double pdfGetTextScaling(
const PPDF* IPDF) // Instance pointer
The function returns the current value of horizontal text scaling. The scaling value adjusts the width
of glyphs by stretching or compressing them in the horizontal direction. Its value is specified as a
percentage of the normal width of the glyphs, with 100 being the normal width. See also
Default value = 100
Value = 100

Previous topic: GetTemplWidth, GetTextDrawMode, GetTextFieldValue

Next topic: GetTextWidth