changeset 6947:084a6d5b5416

RT-36926: [Font, Linux] PangoGlyphLayout can't see embedded font
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 30 Apr 2014 11:22:22 -0700
parents d71ed34d7bd5
children 6d2f01663378
files modules/graphics/src/main/java/com/sun/javafx/font/freetype/FTFactory.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/font/freetype/FTFactory.java	Wed Apr 30 10:48:19 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/javafx/font/freetype/FTFactory.java	Wed Apr 30 11:22:22 2014 -0700
@@ -80,7 +80,11 @@
             OSFreetype.FT_Done_Face(face);
         }
         OSFreetype.FT_Done_FreeType(library);
-        return error == 0;
+        if (error != 0) return false;
+        if (OSFreetype.isPangoEnabled()) {
+            return OSPango.FcConfigAppFontAddFile(0, path);
+        }
+        return true;
     }
 
     private static class StubGlyphLayout extends GlyphLayout {