bug-groff
[Top][All Lists]
Advanced

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

[bug #62941] [troff] no warning when font family nonexistent


From: G. Branden Robinson
Subject: [bug #62941] [troff] no warning when font family nonexistent
Date: Tue, 23 Aug 2022 10:20:45 -0400 (EDT)

Update of bug #62941 (project groff):

                  Status:               Confirmed => In Progress            

    _______________________________________________________

Follow-up Comment #4:

I have a fix.


diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 160c1378a..3e49a36da 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -567,8 +567,10 @@ void environment::set_family(symbol fam)
           (0 != "font family dictionary lookup"));
     if (0 /* nullptr */ == f)
       return;
-    if (f->make_definite(fontno) < 0)
+    if (f->make_definite(fontno) < 0) {
+      error("no font family named '%1' exists", fam.contents());
       return;
+    }
     prev_family = family;
     family = f;
   }



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62941>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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