Accept ISO646.1991-IRV as a Unicode charmap
in PCF and BDF drivers Resolves: #1451795
This commit is contained in:
parent
0df73a9ae0
commit
0c07bf59f2
58
freetype-2.8-pcf-encoding.patch
Normal file
58
freetype-2.8-pcf-encoding.patch
Normal file
@ -0,0 +1,58 @@
|
||||
From 082f2faf5007812bac6a1f783c7dcc6f49d761fe Mon Sep 17 00:00:00 2001
|
||||
From: Werner Lemberg <wl@gnu.org>
|
||||
Date: Wed, 24 May 2017 07:40:46 +0200
|
||||
Subject: [PATCH] [bdf, pcf] Support ISO646.1991-IRV character encoding (aka
|
||||
ASCII).
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Problem reported by Marek Kašík <mkasik@redhat.com>, cf.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1451795
|
||||
|
||||
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdrivr.c
|
||||
(PCF_Face_Init): Implement it.
|
||||
---
|
||||
ChangeLog | 11 +++++++++++
|
||||
src/bdf/bdfdrivr.c | 6 +++++-
|
||||
src/pcf/pcfdrivr.c | 6 +++++-
|
||||
3 files changed, 21 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/bdf/bdfdrivr.c b/src/bdf/bdfdrivr.c
|
||||
index a2242be0..c0a5a5c5 100644
|
||||
--- a/src/bdf/bdfdrivr.c
|
||||
+++ b/src/bdf/bdfdrivr.c
|
||||
@@ -545,7 +545,11 @@ THE SOFTWARE.
|
||||
if ( !ft_strcmp( s, "10646" ) ||
|
||||
( !ft_strcmp( s, "8859" ) &&
|
||||
!ft_strcmp( face->charset_encoding, "1" ) ) )
|
||||
- unicode_charmap = 1;
|
||||
+ unicode_charmap = 1;
|
||||
+ /* another name for ASCII */
|
||||
+ else if ( !ft_strcmp( s, "646.1991" ) &&
|
||||
+ !ft_strcmp( face->charset_encoding, "IRV" ) )
|
||||
+ unicode_charmap = 1;
|
||||
}
|
||||
|
||||
{
|
||||
diff --git a/src/pcf/pcfdrivr.c b/src/pcf/pcfdrivr.c
|
||||
index 9f4d36d1..50530941 100644
|
||||
--- a/src/pcf/pcfdrivr.c
|
||||
+++ b/src/pcf/pcfdrivr.c
|
||||
@@ -387,7 +387,11 @@ THE SOFTWARE.
|
||||
if ( !ft_strcmp( s, "10646" ) ||
|
||||
( !ft_strcmp( s, "8859" ) &&
|
||||
!ft_strcmp( face->charset_encoding, "1" ) ) )
|
||||
- unicode_charmap = 1;
|
||||
+ unicode_charmap = 1;
|
||||
+ /* another name for ASCII */
|
||||
+ else if ( !ft_strcmp( s, "646.1991" ) &&
|
||||
+ !ft_strcmp( face->charset_encoding, "IRV" ) )
|
||||
+ unicode_charmap = 1;
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.13.0
|
||||
|
@ -7,7 +7,7 @@
|
||||
Summary: A free and portable font rendering engine
|
||||
Name: freetype
|
||||
Version: 2.8
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement
|
||||
Group: System Environment/Libraries
|
||||
URL: http://www.freetype.org
|
||||
@ -25,6 +25,8 @@ Patch2: freetype-2.5.2-more-demos.patch
|
||||
|
||||
Patch3: freetype-2.6.5-libtool.patch
|
||||
|
||||
Patch4: freetype-2.8-pcf-encoding.patch
|
||||
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: zlib-devel
|
||||
@ -83,6 +85,7 @@ pushd ft2demos-%{version}
|
||||
popd
|
||||
|
||||
%patch3 -p1 -b .libtool
|
||||
%patch4 -p1 -b .pcf-encoding
|
||||
|
||||
%build
|
||||
|
||||
@ -196,6 +199,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed May 24 2017 Marek Kasik <mkasik@redhat.com> - 2.8-2
|
||||
- Accept ISO646.1991-IRV as a Unicode charmap in PCF and BDF drivers
|
||||
- Resolves: #1451795
|
||||
|
||||
* Wed May 17 2017 Marek Kasik <mkasik@redhat.com> - 2.8-1
|
||||
- Update to 2.8
|
||||
- Modify/remove patches as needed
|
||||
|
Loading…
Reference in New Issue
Block a user