xorg-x11-fonts/0001-jisx0201.1976-0.enc-Add-undefined-mapping-for-0x7f-0.patch
Hans de Goede 1883f4f609 Update most fonts:
-encodings-1.0.4
   -font-adobe-100dpi-1.0.3
   -font-adobe-75dpi-1.0.3
   -font-adobe-utopia-100dpi-1.0.4
   -font-adobe-utopia-75dpi-1.0.4
   -font-adobe-utopia-type1-1.0.4
   -font-arabic-misc-1.0.3
   -font-bh-100dpi-1.0.3
   -font-bh-75dpi-1.0.3
   -font-bh-lucidatypewriter-100dpi-1.0.3
   -font-bh-lucidatypewriter-75dpi-1.0.3
   -font-bitstream-100dpi-1.0.3
   -font-bitstream-75dpi-1.0.3
   -font-bitstream-type1-1.0.3
   -font-cronyx-cyrillic-1.0.3
   -font-cursor-misc-1.0.3
   -font-daewoo-misc-1.0.3
   -font-dec-misc-1.0.3
   -font-isas-misc-1.0.3
   -font-jis-misc-1.0.3
   -font-micro-misc-1.0.3
   -font-misc-cyrillic-1.0.3
   -font-misc-ethiopic-1.0.3
   -font-misc-misc-1.1.2
   -font-mutt-misc-1.0.3
   -font-schumacher-misc-1.1.2
   -font-screen-cyrillic-1.0.4
   -font-sony-misc-1.0.3
   -font-sun-misc-1.0.3
   -font-winitzki-cyrillic-1.0.3
   -font-xfree86-type1-1.0.4
- Fix a bug in jisx0201.1976-0.enc (#1009350)
2014-10-23 14:05:37 +02:00

43 lines
1.5 KiB
Diff

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