Blame SOURCES/0001-jisx0201.1976-0.enc-Add-undefined-mapping-for-0x7f-0.patch

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