[libbluray-devel] Fix runtime error when built against Java 8 Font instead of libbluray Font.

hpi1 git at videolan.org
Sun Nov 8 22:00:04 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Nov  8 22:32:21 2015 +0200| [c861485484f63231c7370e9acb643e248df856fe] | committer: hpi1

Fix runtime error when built against Java 8 Font instead of libbluray Font.

Implicit conversion int -> float causes wrong function signature in FontFactory.

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

 src/libbluray/bdj/java/java/awt/Font.java |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libbluray/bdj/java/java/awt/Font.java b/src/libbluray/bdj/java/java/awt/Font.java
index a126bc5..a952599 100644
--- a/src/libbluray/bdj/java/java/awt/Font.java
+++ b/src/libbluray/bdj/java/java/awt/Font.java
@@ -198,6 +198,9 @@ public class Font implements java.io.Serializable {
     public Font deriveFont(int style, int size) {
         return new Font(name, style, size, fontFile, family);
     }
+    public Font deriveFont(int style, float size) {
+        return new Font(name, style, (int)size, fontFile, family);
+    }
 
     /* constructor */
     private Font(String name, int style, int size, File fontFile, String family) {



More information about the libbluray-devel mailing list