From 7a5f09daef045276fdd12085adc0b18cdff35d08 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Fri, 16 Sep 2022 17:32:13 +0100 Subject: [PATCH] more --- cpdfcommand.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 0433006..8fb6953 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -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 =