From bc3c94db567acbfcff169bf00e9e3d26f9fc451d Mon Sep 17 00:00:00 2001 From: John Whitington Date: Wed, 28 Jun 2023 16:20:31 +0100 Subject: [PATCH] os/2 table for testing --- cpdftruetype.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdftruetype.ml b/cpdftruetype.ml index 336af5a..7b5b7ac 100644 --- a/cpdftruetype.ml +++ b/cpdftruetype.ml @@ -562,7 +562,7 @@ let parse ?(subset=[]) data encoding = in let ascent, descent, capheight, xheight, avgwidth = match os2 with - | None -> raise (Pdf.PDFError "No os/2 table found in truetype font") + | None -> (0, 0, 0, 0, 0) (* FIXME raise (Pdf.PDFError "No os/2 table found in truetype font") *) | Some (o, l) -> let b = mk_b (i32toi o) in read_os2_table unitsPerEm b (i32toi l) in let italicangle =