More draw/font bugfixes

This commit is contained in:
John Whitington 2023-07-14 16:36:13 +01:00
parent 93219ce4a0
commit dcf387d0a0
1 changed files with 1 additions and 1 deletions

View File

@ -2100,7 +2100,7 @@ let loadttf n =
let name, filename = let name, filename =
match String.split_on_char '=' n with match String.split_on_char '=' n with
| [name; filename] -> name, filename | [name; filename] -> name, filename
| _ -> error "addjpeg: bad file specification" | _ -> error "loadttf: bad file specification. Should be <name>=<filename>"
in in
try try
let fontfile = Pdfio.bytes_of_string (contents_of_file filename) in let fontfile = Pdfio.bytes_of_string (contents_of_file filename) in