-
Notifications
You must be signed in to change notification settings - Fork 28
/
pdfstandard14.mli
26 lines (21 loc) · 1.26 KB
/
pdfstandard14.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(** 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.encoding -> 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 4-tuple, consisting of a
table of header pairs, a table of (character number, width) pairs, a table
of (first, second, kern) triples representing the kerning table and a table
of (character name, width) pairs. The last table is useful for characters which
are identified with a custom encoding and which might not be assigned a number
in the standard encoding. *)
val afm_data :
Pdftext.standard_font ->
(string, string) Hashtbl.t * (int, int) Hashtbl.t * (int * int, int) Hashtbl.t * (string, 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