DynaPDF Manual - Page 735

Previous Page 734   Index   Next Page 736

Function Reference
Page 735 of 818
Authoring (IANA, whose Web site is located at http://www.iana.org), or they can include codes
created for private use. A language identifier consists of a primary code optionally followed by one
or more sub codes (each preceded by a hyphen). The primary code can be any of the following:
A 2-character ISO 639 language code - for example, en for English or es for Spanish.
The letter i, designating an IANA-registered identifier
The letter x for private use
The first sub code can be a 2-character ISO 3166 country code, as in en-US, or a 3- to 8-character sub
code registered with IANA, as in en-cockney or i-cherokee (except in private identifiers, for which sub
codes are not registered). Sub codes beyond the first can be any that have been registered at IANA.
Language identifiers are treated case-sensitive.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetLeading
Syntax:
LBOOL pdfSetLeading(
const PPDF* IPDF,
// Instance pointer
double Value)
// New leading or 0
The function sets the leading (also called line height or line spacing) that is used by the functions
AddContinueText() and WriteFText() to calculate the distance between two text lines.
The default leading in PDF is the font size. However, this value is often too small and can cause
overlapping text lines. Most modern TrueType and OpenType fonts contain metrics of the
typographic leading or line height that was intended for the particular font. This value considers the
particular properties of the font and is the recommended way to calculate the line height.
The typographic line height or leading is returned by the functions GetTypoLeading() and
GetFontMetrics().
A value of 0 determines that the font size should be used as leading, this is the default behaviour.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetJPEGQuality, SetLanguage, Language Identifiers

Next topic: SetLicenseKey, SetLineAnnotParms

Web links on this page:


Start Chat