mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-02-03 11:58:01 +01:00
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…
x
Reference in New Issue
Block a user