mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-04-17 11:37:33 +02:00
more
This commit is contained in:
parent
3af58990e8
commit
be5402ca9b
@ -2142,7 +2142,6 @@ and specs =
|
||||
("-embed-missing-fonts",
|
||||
Arg.Unit (setop EmbedMissingFonts),
|
||||
" Embed missing fonts by calling gs");
|
||||
|
||||
("-twoup",
|
||||
Arg.Unit (setop TwoUp),
|
||||
" Put 2 pages onto one");
|
||||
|
@ -64,7 +64,8 @@ let font_widths f fontsize =
|
||||
*. float_of_int
|
||||
(Pdfstandard14.textwidth false Pdftext.WinAnsiEncoding sf (string_of_char (char_of_int x)))
|
||||
/. 1000.)
|
||||
| Pdftext.SimpleFont {fontmetrics = Some m} -> m
|
||||
| Pdftext.SimpleFont {fontmetrics = Some m} ->
|
||||
Array.map (fun x -> fontsize *. x /. 1000. ) m
|
||||
| _ -> raise (Pdf.PDFError "Cpdftype: Unsupported font")
|
||||
|
||||
let width_of_string ws s =
|
||||
|
Loading…
x
Reference in New Issue
Block a user