module Cpdfembed:sig
..end
Embed a TrueType font in a PDF
typet =
Pdftext.font list * (int, int * int) Stdlib.Hashtbl.t
type
cpdffont =
| |
PreMadeFontPack of |
||||||
| |
EmbedInfo of |
||||||
| |
ExistingNamedFont |
val fontpack_of_standardfont : Pdftext.font -> t
Build a fontpack for a Standard 14 font
val get_char : t -> int -> (int * int * Pdftext.font) option
Look 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 -> t
Build a fontpack from a TrueType font and list of codepoints, embedding its fonts in the document
val collate_runs : ('a * 'b * 'c) list -> ('a * 'b * 'c) list list
Collate outputs of get_char
with like font
val load_substitute : string -> Pdftext.standard_font -> Pdfio.bytes * string
Load substitute Standard 14 font