Disambiguate addtext error messages
This commit is contained in:
parent
25668ecfe8
commit
a2bece3878
4
cpdf.ml
4
cpdf.ml
|
@ -1631,9 +1631,9 @@ let addtext
|
|||
| Some fontdict ->
|
||||
begin match Pdf.lookup_direct pdf fontname fontdict with
|
||||
| Some font -> font
|
||||
| _ -> failwith "addtext: bad font"
|
||||
| _ -> failwith "addtext: bad font A"
|
||||
end
|
||||
| _ -> failwith "addtext: bad font"
|
||||
| _ -> failwith "addtext: bad font B"
|
||||
in
|
||||
let rawwidth = width_of_text (Pdftext.read_font pdf font) text in
|
||||
(rawwidth *. fontsize) /. 1000.
|
||||
|
|
Loading…
Reference in New Issue