Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 725

Previous Page 724   Index   Next Page 726

Function Reference
Page 725 of 766
SetTextRise
Syntax:
LBOOL pdfSetTextRise(
const PPDF* IPDF, // Instance pointer
double Value)
// Text rise in units
Text rise specifies the distance, 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.
The text moves around the baseline.
Default value = 0
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetTextScaling
Syntax:
LBOOL pdfSetTextScaling(
const PPDF* IPDF, // Instance pointer
double Value)
// 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.
Default value = 100
Value = 100
Word
Value = 50
WordWord
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetTextRect

Next topic: SetUseExactPwd