groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 03/15: [gropdf]: Warn when a font can't be embedded.


From: G. Branden Robinson
Subject: [groff] 03/15: [gropdf]: Warn when a font can't be embedded.
Date: Mon, 6 Jun 2022 22:26:11 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e75c4e5b92c57642bba54db92c582b3907540f3f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        * 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',



reply via email to

[Prev in Thread] Current Thread [Next in Thread]