package cpdf
Module Cpdfembed
Embed a TrueType font in a PDF
type t = Pdftext.font list * (int, int * int) Hashtbl.ttype cpdffont = | PreMadeFontPack of t| EmbedInfo of {fontfile : Pdfio.bytes;fontname : string;encoding : Pdftext.encoding;
}| ExistingNamedFont
val fontpack_of_standardfont : Pdftext.font -> tBuild a fontpack for a Standard 14 font
val get_char : t -> int -> (int * int * Pdftext.font) optionLook up a unicode codepoint in a font page. Returns (charcode, fontnumber, font)
val embed_truetype :
Pdf.t ->
fontfile:Pdfio.bytes ->
fontname:string ->
codepoints:int list ->
encoding:Pdftext.encoding ->
tBuild a fontpack from a TrueType font and list of codepoints, embedding its fonts in the document