changeset 3254:c1f3d7105545

S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 2016-05-16 Andrew John Hughes <gnu.andrew@redhat.com> S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6 * Makefile.am: (ICEDTEA_PATCHES): Add new patch. * NEWS: Updated. * patches/openjdk/7050826-pr2956-allow_type1_fonts.patch: Backport to allow Type 1 fonts to be used with font configurations auto-generated by fontconfig.
author Andrew John Hughes <gnu.andrew@redhat.com>
date Tue, 14 Jun 2016 08:01:03 +0100
parents 24ce0141709b
children 2f2e32378389
files ChangeLog Makefile.am NEWS patches/openjdk/7050826-pr2956-allow_type1_fonts.patch
diffstat 4 files changed, 46 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 14 07:56:05 2016 +0100
+++ b/ChangeLog	Tue Jun 14 08:01:03 2016 +0100
@@ -1,3 +1,14 @@
+2016-05-16  Andrew John Hughes  <gnu.andrew@redhat.com>
+
+	S7050826, PR2956, RH1334465: Hebrew characters
+	are not rendered on OEL 5.6
+	* Makefile.am:
+	(ICEDTEA_PATCHES): Add new patch.
+	* NEWS: Updated.
+	* patches/openjdk/7050826-pr2956-allow_type1_fonts.patch:
+	Backport to allow Type 1 fonts to be used with
+	font configurations auto-generated by fontconfig.
+
 2016-05-13  Andrew John Hughes  <gnu.andrew@redhat.com>
 
 	PR2954: ecj/override.patch is missing new
--- a/Makefile.am	Tue Jun 14 07:56:05 2016 +0100
+++ b/Makefile.am	Tue Jun 14 08:01:03 2016 +0100
@@ -626,7 +626,8 @@
 	patches/openjdk/8071705-pr2820-menu_misbehaviour.patch \
 	patches/openjdk/8150954-pr2868-composite_desktop.patch \
 	patches/pr2890-system_cacerts.patch \
-	patches/openjdk/6863746-pr2951-no_ct.sym_in_javap.patch
+	patches/openjdk/6863746-pr2951-no_ct.sym_in_javap.patch \
+	patches/openjdk/7050826-pr2956-allow_type1_fonts.patch
 
 if WITH_RHINO
 ICEDTEA_PATCHES += \
--- a/NEWS	Tue Jun 14 07:56:05 2016 +0100
+++ b/NEWS	Tue Jun 14 08:01:03 2016 +0100
@@ -14,6 +14,8 @@
 
 New in release 1.13.12 (2016-07-XX):
 
+* Backports
+  - S7050826, PR2956, RH1334465: Hebrew characters are not rendered on OEL 5.6
 * Bug fixes
   - PR2954: ecj/override.patch is missing new @Overrides in RMIJRMPServerImpl.java
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openjdk/7050826-pr2956-allow_type1_fonts.patch	Tue Jun 14 08:01:03 2016 +0100
@@ -0,0 +1,31 @@
+# HG changeset patch
+# User prr
+# Date 1315504833 25200
+#      Thu Sep 08 11:00:33 2011 -0700
+# Node ID b72e7b89dda933e52d7cfd01baa7559c70be181a
+# Parent  545db1dd8c2a70c4cdb633b2e47457c4be051192
+7050826: Hebrew characters are not rendered on OEL 5.6
+Reviewed-by: bae, jgodinez
+
+diff -r 545db1dd8c2a -r b72e7b89dda9 src/solaris/native/sun/awt/fontpath.c
+--- openjdk/jdk/src/solaris/native/sun/awt/fontpath.c	Wed May 04 23:23:55 2016 +0100
++++ openjdk/jdk/src/solaris/native/sun/awt/fontpath.c	Thu Sep 08 11:00:33 2011 -0700
+@@ -1259,8 +1259,16 @@
+ 
+             fontformat = NULL;
+             (*FcPatternGetString)(fontPattern, FC_FONTFORMAT, 0, &fontformat);
+-            if (fontformat != NULL && strcmp((char*)fontformat, "TrueType")
+-                != 0) {
++            /* We only want TrueType fonts but some Linuxes still depend
++             * on Type 1 fonts for some Locale support, so we'll allow
++             * them there.
++             */
++            if (fontformat != NULL
++                && (strcmp((char*)fontformat, "TrueType") != 0)
++#ifdef __linux__
++                && (strcmp((char*)fontformat, "Type 1") != 0)
++#endif
++             ) {
+                 continue;
+             }
+             result = (*FcPatternGetCharSet)(fontPattern,