os/2 table for testing

This commit is contained in:
John Whitington 2023-06-28 16:20:31 +01:00
parent 0d405404cb
commit bc3c94db56
1 changed files with 1 additions and 1 deletions

View File

@ -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 =