DynaPDF Manual - Page 696

Previous Page 695   Index   Next Page 697

Function Reference
Page 696 of 839
SetCheckBoxState
Syntax:
LBOOL pdfSetCheckboxState(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
LBOOL Checked)
// State
The function changes the state of a check box. The parameter AField must be a valid check box
handle.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetCIDFont
Syntax:
SI32 pdfSetCIDFont(
const PPDF* IPDF, // Instance pointer
UI32 CMapHandle,
// Handle of a CMap returned by LoadCMap()
const char* Name, // Font name
TFStyle Style,
// Font style
double Size,
// Font size
LBOOL Embed)
// If true, the font will be embedded
The function loads an OpenType or TrueType font with an external CMap. A font that is used with
an external CMap is called a composite font or CID font. A CID-keyed font is an OpenType font
(with Postscript outlines) that contains CID font operators.
CID-keyed fonts provide a convenient and efficient method for defining multiple-byte character
encodings as wells as fonts with a large number of glyphs. These capabilities provide great
flexibility for representing text in writing systems for languages with large character sets, such as
Chinese, Japanese, and Korean (CJK).
The CID-keyed font architecture specifies the external representation of certain font programs,
called CMap and CIDFont files, along with some conventions for combining and using those files.
PDF does not support the entire CID-keyed font architecture, which is independent of PDF; CID-
keyed fonts can also be used in other environments. For complete documentation on the architecture
and the file formats, see Adobe Technical Notes #5092, CID-Keyed Font Technology Overview, and
#5014, Adobe CMap and CIDFont Files Specification.
The term CID-keyed font reflects the fact that CID numbers (character identifiers) are used to index
and access the glyph descriptions in the font. A CID refers always into a predefined character
collection.
A character collection is an ordered set of all glyphs needed to support one or more popular
character sets for a particular language. The order of the glyphs in the character collection
 

Previous topic: Check box characters, SetCheckBoxDefState

Next topic: Word Spacing