groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/33: [gropdf]: Alter font embedding failure diagnostic.


From: G. Branden Robinson
Subject: [groff] 01/33: [gropdf]: Alter font embedding failure diagnostic.
Date: Sun, 16 Oct 2022 15:52:15 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 21ae05c5c6cbd79d11ff51f12110da4766e3d5e6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Oct 10 07:36:45 2022 -0500

    [gropdf]: Alter font embedding failure diagnostic.
    
    * src/devices/gropdf/gropdf.pl (GetType1): Clarify diagnostic.  When
      failing to open a font file for embedding in a PDF, mention this
      context.
---
 ChangeLog                    | 6 ++++++
 src/devices/gropdf/gropdf.pl | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6beb8c63f..a772f2b01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-10  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/devices/gropdf/gropdf.pl (GetType1): Clarify diagnostic.
+       When failing to open a font file for embedding in a PDF, mention
+       this context.
+
 2022-10-09  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/afmtodit/afmtodit.tables: Update against Unicode 15.
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index 50d07ca27..37f6e5644 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -2571,7 +2571,7 @@ sub GetType1
     my $f;
 
     OpenFile(\$f,$fontdir,"$file");
-    Die("failed to open '$file'") if !defined($f);
+    Die("unable to open font '$file' for embedding") if !defined($f);
 
     $head=GetChunk($f,1,"currentfile eexec");
     $body=GetChunk($f,2,"00000000") if !eof($f);



reply via email to

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