gbranden pushed a commit to branch master
in repository groff.

commit e75c4e5b92c57642bba54db92c582b3907540f3f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jun 4 12:08:26 2022 -0500

    [gropdf]: Warn when a font can't be embedded.
    
    * src/devices/gropdf/gropdf.pl (LoadFont): Warn if a font to be embedded
      in PDF output cannot be located in the "download" file.
    
    Fixes <https://savannah.gnu.org/bugs/?62572>.  Thanks to Deri James.
---
 ChangeLog                    | 8 ++++++++
 src/devices/gropdf/gropdf.pl | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 069b9e99..4189edfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-06-04  G. Branden Robinson <[email protected]>
+
+       * src/devices/gropdf/gropdf.pl (LoadFont): Warn if a font to be
+       embedded in PDF output cannot be located in the "download" file.
+
+       Fixes <https://savannah.gnu.org/bugs/?62572>.  Thanks to Deri
+       James.
+
 2022-06-04  G. Branden Robinson <[email protected]>
 
        * tmac/a4.tmac: Drop file from distribution.  It has been
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index d3b8e9c8..30c358a3 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -2459,6 +2459,8 @@ sub LoadFont
     }
     else
     {
+       Msg(0, "unable to embed font file for '$fnt{internalname}'"
+           . " ($ofontnm) (corrupt 'download' file?)") if $embedall;
        $fno=++$objct;
        $fontlst{$fontno}->{OBJ}=BuildObj($objct,
                        {'Type' => '/Font',

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to