changeset 4968:906d256bc339

RT-31476: Exception when font size is set to 0
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 04 Sep 2013 10:40:21 -0700
parents 9d380c47ef14
children 35ec849231d5
files modules/graphics/src/main/java/com/sun/javafx/font/directwrite/DWFontFile.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/font/directwrite/DWFontFile.java	Wed Sep 04 13:26:08 2013 -0400
+++ b/modules/graphics/src/main/java/com/sun/javafx/font/directwrite/DWFontFile.java	Wed Sep 04 10:40:21 2013 -0700
@@ -111,6 +111,7 @@
 
     Path2D getGlyphOutline(int gc, float size) {
         if (fontFace == null) return null;
+        if (size == 0) return new Path2D();
         return fontFace.GetGlyphRunOutline(size, (short)gc, false);
     }