DynaPDF Manual - Page 830

Previous Page 829   Index   Next Page 831

Function Reference
Page 830 of 839
or the prefix of hexadecimal numbers can be specified case insensitive, this is not the case
for the font name.
The recommended function to enumerate available fonts is GetSysFontInfo(). It is also
possible to use EnumHostFonts() or EnumHostFontsEx() but these functions do not return
the Full Name of a font.
\HA[int,
This tag creates a Highlight, Underline, Strikeout, or Squiggly annotation. All these types
int]
are subtypes of a highlight annotation. The first parameter is the subtype that should be
created. Valid values are:
4
= atHighlight
12 = atSquiggly
14 = atStrikeOut
16 = atUnderline
The second parameter is the highlight color. Both parameters are optional but note that the
brackets are part of the syntax and therfore are required. If no parameter is provided then
the subtype atHighlight in the color yellow will be created. The color can be defined as an
integer or hexadecimal value. The latter one must be prefixed with "0x" or "0X" (without
quotation marks).
The tag must be terminated with the tag \EH.
Example:
"This is a \HA[0xFF]Test...\EH#".
Result = This is a Test...
In the above example, the parameter subtype was omitted. It defaults to 4 = atHighlight.
\LD['t' or
This tag changes the current leading. The value can be a positive floating point number or
float]
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().
\LI[float,
This tag creates a list. The tag has three parameters which must be delimited with a comma.
int,float]
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()).
 

Previous topic: Command tags

Next topic: Special characters