File: pdfstandard14.mli

package info (click to toggle)
camlpdf 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,372 kB
  • sloc: ml: 45,641; ansic: 6,016; makefile: 98; sh: 1
file content (24 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(** Standard PDF Fonts *)

(** Calculate the width, in millipoints, of a string in the given font, taking
into account kerning if the first argument is true. *)
val textwidth : bool -> Pdftext.standard_font -> string -> int

(** The appropriate amount to subtract from the y-coordinate of a 1pt text line
to place it vertically centered around the y coordinate, rather than with the
baseline at that y coordinate. *)
val baseline_adjustment : Pdftext.standard_font -> int

(** The data extracted from the font AFM. This is a triple, consisting of a
table of header pairs, a table of (character number, width) pairs and a table
of (first, second, kern) triples representing the kerning table. *)
val afm_data :
  Pdftext.standard_font ->
    (string, string) Hashtbl.t * (int, int) Hashtbl.t * (int * int, int) Hashtbl.t

(** Return a suitable StemV value for a standard font *)
val stemv_of_standard_font : Pdftext.standard_font -> int

(** Return a suitable flags value for a standard font *)
val flags_of_standard_font : Pdftext.standard_font -> int