Pdflib api reference


 Fontsize and Action Data Types



Yüklə 0,69 Mb.
Pdf görüntüsü
səhifə6/6
tarix30.03.2023
ölçüsü0,69 Mb.
#91620
1   2   3   4   5   6
demo

1.1.3 Fontsize and Action Data Types
Fontsize.
A fontsize can be defined in several ways which allow the size of text to be 
specified in absolute values, relative to some external entity, or relative to some font 
property. In general the fontsize must be different from 0 unless the option description 
mentions otherwise.
In the most common case a fontsize contains a single float value which specifies re-
fers to units in the user coordinate system:
fontsize=12
The second variant contains a percentage, where the basis of the percentage depends on 
the context (e.g. the width of the fitbox for PDF_fit_textline( ):
fontsize=8%
In the third variant, the fontsize is specified as an option list which must contain a key-
word and a number. The keyword describes the desired font metric according to Table 
1.1, and the number contains the desired size. PDFlib will calculate the proper fontsize so 
that the selected text metric matches the supplied value:
fontsize={capheight 5}
Action list.
An action list specifies one or more actions. Each entry in the list consists 
of an event keyword (trigger) and a list of action handles which must have been created 

Document Outline


Yüklə 0,69 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin