summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwl <wl>2005-12-07 20:34:03 +0000
committerwl <wl>2005-12-07 20:34:03 +0000
commit81c45c89499d8361366288b11e0e8b1deca599b6 (patch)
treeceb9f40449e85f023a046d967175d536d96bf239
parent8fde383a77b9ce749b20956e3ad58c73a1e50bcb (diff)
downloadgroff-81c45c89499d8361366288b11e0e8b1deca599b6.tar.gz
* src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
glyphs which have kern values but aren't handled (glyph variants, for example).
-rw-r--r--ChangeLog6
-rw-r--r--src/utils/afmtodit/afmtodit.pl3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 599465a6..c97d7fb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
+
+ * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
+ glyphs which have kern values but aren't handled (glyph variants,
+ for example).
+
2005-12-02 Werner LEMBERG <wl@gnu.org>
* src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
diff --git a/src/utils/afmtodit/afmtodit.pl b/src/utils/afmtodit/afmtodit.pl
index bab1cc52..d589d7bf 100644
--- a/src/utils/afmtodit/afmtodit.pl
+++ b/src/utils/afmtodit/afmtodit.pl
@@ -6443,7 +6443,8 @@ if ($#kern1 >= 0) {
for (my $i = 0; $i <= $#kern1; $i++) {
my $c1 = $kern1[$i];
my $c2 = $kern2[$i];
- if ($nmap{$c1} != 0 && $nmap{$c2} != 0) {
+ if (defined $nmap{$c1} && $nmap{$c1} != 0
+ && defined $nmap{$c2} && $nmap{$c2} != 0) {
for (my $j = 0; $j < $nmap{$c1}; $j++) {
for (my $k = 0; $k < $nmap{$c2}; $k++) {
if ($kernx[$i] != 0) {