1883f4f
From 1cc96f25aff9898a93f2a575d9f6c57574da042f Mon Sep 17 00:00:00 2001
1883f4f
From: Akira TAGOH <tagoh@redhat.com>
1883f4f
Date: Thu, 23 Oct 2014 12:57:43 +0200
1883f4f
Subject: [PATCH font/encodings] jisx0201.1976-0.enc: Add undefined mapping for
1883f4f
 0x7f - 0xa0 range
1883f4f
1883f4f
The jisx0201 encoding has a hole in it in the 0x7f - 0xa0 range, see:
1883f4f
http://en.wikipedia.org/wiki/JIS_X_0201
1883f4f
1883f4f
The document for the format of the encoding files says:
1883f4f
"Codes not listed are assumed to map through the identity (i.e. to the same
1883f4f
 numerical value). In order to override this default mapping, you may specify
1883f4f
 a range of codes to be undefined by using an `UNDEFINE' line"
1883f4f
1883f4f
jisx0201.1976-0.enc was not doing this, causing all the codes on the range
1883f4f
to be mapped 1:1. This specifically is causing problems for ttmkfdir, which
1883f4f
checks that a font covers (most of) an encoding before adding a line for that
1883f4f
encoding to fonts.scale, and the hole not properly being undefined causes
1883f4f
this check to fail for atleast the Sazanami fonts.
1883f4f
1883f4f
Cc: Akira TAGOH <tagoh@redhat.com>
1883f4f
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1009350
1883f4f
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1883f4f
---
1883f4f
 large/jisx0201.1976-0.enc | 1 +
1883f4f
 1 file changed, 1 insertion(+)
1883f4f
1883f4f
diff --git a/large/jisx0201.1976-0.enc b/large/jisx0201.1976-0.enc
1883f4f
index 915d50c..328bc7a 100644
1883f4f
--- a/large/jisx0201.1976-0.enc
1883f4f
+++ b/large/jisx0201.1976-0.enc
1883f4f
@@ -68,6 +68,7 @@ ENDMAPPING
1883f4f
 STARTMAPPING unicode
1883f4f
 0x5C	0x00A5	# YEN SIGN
1883f4f
 0x7E	0x203E	# OVERLINE
1883f4f
+UNDEFINE	0x7F	0xA0
1883f4f
 0x00A1 0x00DF 0xFF61
1883f4f
 ENDMAPPING
1883f4f
 STARTMAPPING cmap 1 1
1883f4f
-- 
1883f4f
2.1.0
1883f4f