package cpdf
High-level PDF tools based on CamlPDF
Install
Dune Dependency
Authors
Maintainers
Sources
v2.6.tar.gz
md5=f69a01ef0f02a57d6c8e2e7b75984bca
sha512=482ffe027112d313f876758d83353c2952bf30e351748c2aa832f333da1683ad4adb813b6c3c87b77462b7da2922e38dd2d668bac6558ad315e1286a31446e1d
doc/cpdf/Cpdftruetype/index.html
Module Cpdftruetype
Parse and subset TrueType fonts
type t = {
flags : int;
minx : int;
miny : int;
maxx : int;
maxy : int;
italicangle : int;
ascent : int;
descent : int;
capheight : int;
stemv : int;
xheight : int;
avgwidth : int;
maxwidth : int;
firstchar : int;
lastchar : int;
widths : int array;
subset_fontfile : Pdfio.bytes;
subset : int list;
tounicode : (int, string) Hashtbl.t option;
}
The type of a single parsed font, including everything needed to build a PDF font.
val parse : subset:int list -> Pdfio.bytes -> Pdftext.encoding -> t list
Parse the given TrueType font file. It will return one or more fonts. The first, a plain Latin font in the given encoding. Others are for the additional characters in the font. You should supply a subset (a list of unicode codepoints whose corresponding glyphs are required).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>