31. pdf_find_font(font: String): String
Description:
The pdf_find_font() function returns the availability of the font in the system. There are
three fonts available now: Courier, Helvetica, Times-Roman, Times-Italic.
Return value:
In success return font name that will be used in pdf_set_font(), empty string otherwise.
32. pdf_set_font(handle: Integer; font: String; font_size: Real): Integer
Description:
The pdf_set_font() function sets the current font face. Currently only the standard
postscript fonts are supported.
It requires a pdf_find_font() to be done before.
In order to write a string in a bold font it is necessary to change width of line and
rendering mode (see functions #19 and #21).
Return value:
In success return 0, pdf_error otherwise.
33. pdf_set_font_size(handle: Integer; font_size: Real): Integer
Description:
The pdf_set_font_size() function sets the current font size. It requires a pdf_set_font() to
be done before.
Return value:
In success return 0, pdf_error otherwise.
34. pdf_set_char_space(handle: Integer; size: Real): Integer
Description:
The pdf_set_char_space() function sets the current value of space between each
character. It requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
35. pdf_set_word_space(handle: Integer; size: Real): Integer
Description:
The pdf_set_word_space() function sets the current value of space between each word. It
requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
36. pdf_set_horizontal_scaling(handle: Integer; size: Real): Integer
Description:
The pdf_set_horizontal_scaling() function sets the current value of horizontal scaling.
Valid range of size must be within 0 – 100.
It requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
37. pdf_set_leading(handle: Integer; size: Real): Integer
Description:
The pdf_set_leading() function sets the current value of distance between text lines. This
will be used if text is outputted by pdf_writeln().
It requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
38. pdf_set_rendering_mode(handle: Integer; mode: Integer): Integer
Description:
The pdf_set_rendering_mode() function sets the mode which determine how the text will
be shown.
Valid range of size must be within 0 – 7.
Mode description
0 Fill text
1 Stroke text
2 Fill, then stroke text
3 Neither fill nor stroke text (invisible)
4 Fill text and add to path for clipping
5 Stroke text and add to path for clipping
6 Fill, then stroke text and add to path for clipping
7 Add text to path for clipping
It requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
39. pdf_set_rise(handle: Integer; value: Integer): Integer
Description:
The pdf_set_rise() function sets the value which determine how the text will be risen or
fallen according to position of current text line.
The value may be positive to rise up or negative to fall down.
It requires a pdf_set_font() to be done before.
Return value:
In success return 0, pdf_error otherwise.
40. pdf_set_text_rgbcolor(handle : Integer; red, green, blue : Real) : Integer
Description:
The pdf_set_text_rgbcolor() function sets the color applied for filling and stroking text
objects.
Valid range of red, green, blue must be from 0.00 to 1.00.
Return value:
In success return 0, pdf_error otherwise.