mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
More draw/font bugfixes
This commit is contained in:
@@ -2100,7 +2100,7 @@ let loadttf n =
|
||||
let name, filename =
|
||||
match String.split_on_char '=' n with
|
||||
| [name; filename] -> name, filename
|
||||
| _ -> error "addjpeg: bad file specification"
|
||||
| _ -> error "loadttf: bad file specification. Should be <name>=<filename>"
|
||||
in
|
||||
try
|
||||
let fontfile = Pdfio.bytes_of_string (contents_of_file filename) in
|
||||
|
Reference in New Issue
Block a user