DynaPDF Manual - Page 810

Previous Page 809   Index   Next Page 811

Function Reference
Page 810 of 818
possible to use EnumHostFonts() or EnumHostFontsEx() but these functions do not return
the Full Name of a font.
\LD['t' or
This tag changes the current leading. The value can be a positive floating point number or
the letter 't' (non-case sensitive and without quotes, e.g. "\LD[t]"). The letter 't' stands for
typographic leading. The typographic leading or line height is available in newer TrueType
and OpenType fonts which contain metrics for TypoAscender, TypoDescender, and
TypoLineGap. Type1 fonts do not support these metrics.
If the metrics are not available, leading is set to Ascent - Descent. Descent is usually a
negative number. If the calculated leading is smaller than the font size, the font size is used
as leading. See also SetLeading().
This tag creates a list. The tag has three parameters which must be delimited with a comma.
The first parameter defines the left margin of the list character measured from the x-
coordinate of the output rectangle. Positive values move the list character to right, negative
values move it to left.
The second and third parameters are optional; they define the list character that should be
used and the distance between the list character and the text. The list character must be a
valid character index of the font Wingdings-Regular, or it must be an index into the current
list font if set (see SetListFont()).
It is also possible to create a numbered list:
If no value is defined, the character index 159 of the font Wingdings-Regular is used
as list symbol. This is the same character as you see in this list.
A value between 32 to 255 is treated as character index of the current list font. If no
list font was set it defaults to the font Wingdings-Regular which is normally
available on all Windows operating systems. Make sure that this font is available
under Linux or UNIX.
Values in the ranges 0 to 31 and 256 to 999 are not valid; the list will not be created.
Since the Unicode index of the bullet character is above 1000 (decimal 8226 or hex
2022), the Unicode version of WriteFText() supports also an arbitrary Unicode
character after the comma to specify the list symbol. The Unicode index of this
character must be greater 33 and no number (48..57).
Values greater or equal 1000 are used to create a numbered list. The function
subtracts 1000 from the number and prints the resulting number as list symbol plus
a dot using the current font:
"\\LI[10,1001]This is a numbered list!\\EL#" =
This is a numbered list!
A list supports the alignments left and justified text only. Right aligned or centred text
produce unpredictable output. A list must be finished with the tag \EL#. The default
distance between the list character and the text is 10 units.

Previous topic: Command tags

Next topic: Special characters

Start Chat