os/2 table for testing
This commit is contained in:
parent
0d405404cb
commit
bc3c94db56
|
@ -562,7 +562,7 @@ let parse ?(subset=[]) data encoding =
|
||||||
in
|
in
|
||||||
let ascent, descent, capheight, xheight, avgwidth =
|
let ascent, descent, capheight, xheight, avgwidth =
|
||||||
match os2 with
|
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)
|
| Some (o, l) -> let b = mk_b (i32toi o) in read_os2_table unitsPerEm b (i32toi l)
|
||||||
in
|
in
|
||||||
let italicangle =
|
let italicangle =
|
||||||
|
|
Loading…
Reference in New Issue