[libbluray-devel] Use correct font size

hpi1 git at videolan.org
Sun Nov 23 13:19:56 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Nov 23 13:53:06 2014 +0200| [d914521df68036623e310c6e6cc22979b7ed5ff1] | committer: hpi1

Use correct font size

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d914521df68036623e310c6e6cc22979b7ed5ff1
---

 src/libbluray/bdj/java-j2se/org/dvb/ui/FontFactory.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java-j2se/org/dvb/ui/FontFactory.java b/src/libbluray/bdj/java-j2se/org/dvb/ui/FontFactory.java
index d78e6e8..7fd6ec3 100644
--- a/src/libbluray/bdj/java-j2se/org/dvb/ui/FontFactory.java
+++ b/src/libbluray/bdj/java-j2se/org/dvb/ui/FontFactory.java
@@ -67,7 +67,7 @@ public class FontFactory {
                 }
 
                 Font font = Font.createFont(Font.TRUETYPE_FONT, fontFile);
-                font = font.deriveFont(data.getStyle(), data.getMaxSize());
+                font = font.deriveFont(data.getStyle(), 1);
 
                 fonts.put(data.getName(), font);
                 fontIds.put(data.getFileName().substring(0, 5), font);
@@ -105,6 +105,7 @@ public class FontFactory {
             }
 
             urlFont = Font.createFont(Font.TRUETYPE_FONT, fontFile);
+            urlFont = urlFont.deriveFont(urlFont.getStyle(), 1);
 
         } catch (IOException ex) {
             logger.error("Failed reading font from " + u.getPath() + ": " + ex);



More information about the libbluray-devel mailing list