This commit is contained in:
John Whitington 2022-09-16 17:32:13 +01:00
parent be5402ca9b
commit 7a5f09daef
1 changed files with 4 additions and 4 deletions

View File

@ -3989,8 +3989,8 @@ let go () =
let font =
match args.font with
| StandardFont f -> Pdftext.StandardFont (f, Pdftext.WinAnsiEncoding)
(* FIXME we don't have text here, so we don't really want embed_truetype: separate functions again? *)
| FontToEmbed (fontfile, encoding) -> Cpdfembed.embed_truetype pdf ~fontfile ~fontname:args.fontname ~text:"" ~encoding
| FontToEmbed (fontfile, encoding) ->
Cpdfembed.embed_truetype pdf ~fontfile ~fontname:args.fontname ~text:"" ~encoding
| _ -> error "TOC: not a standard or embedded font"
in
let pdf = Cpdftoc.typeset_table_of_contents ~font ~fontsize:args.fontsize ~title:args.toc_title ~bookmark:args.toc_bookmark pdf in
@ -4000,8 +4000,8 @@ let go () =
let font =
match args.font with
| StandardFont f -> Pdftext.StandardFont (f, Pdftext.WinAnsiEncoding)
(* We don't have the PDF yet to do the embeddeding of the font. FIXME: next up - do we need separate functions? *)
| FontToEmbed (fontfile, encoding) -> Cpdfembed.embed_truetype (Pdf.empty ()) ~fontfile ~fontname:args.fontname ~text:"" ~encoding
| FontToEmbed (fontfile, encoding) ->
Cpdfembed.embed_truetype (Pdf.empty ()) ~fontfile ~fontname:args.fontname ~text:"" ~encoding
| _ -> error "text to PDF: not a standard or embedded font"
in
let pdf =