-
Bug
-
Resolution: Fixed
-
P2
-
fx2.1
-
2.1-beta-b09
In the app I load the following font:
Font.loadFont(this.getClass().getResource("FuturaStd-Light.otf").toString(), 0)
font = Font[name=FuturaStd-Light, family=Futura Std Light, style=Regular, size=12.0]
and use it using css for label:
Label label = new Label("some text");
label.setStyle("-fx-font-family: FuturaStd-Light;");
or directly:
label.setFont(font);
In both cases the app crashes:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fef06eaaba, pid=788, tid=6204
#
# JRE version: 7.0_02-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [javafx-font.dll+0x3aaba]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Font.loadFont(this.getClass().getResource("FuturaStd-Light.otf").toString(), 0)
font = Font[name=FuturaStd-Light, family=Futura Std Light, style=Regular, size=12.0]
and use it using css for label:
Label label = new Label("some text");
label.setStyle("-fx-font-family: FuturaStd-Light;");
or directly:
label.setFont(font);
In both cases the app crashes:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fef06eaaba, pid=788, tid=6204
#
# JRE version: 7.0_02-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [javafx-font.dll+0x3aaba]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
- duplicates
-
JDK-8127952 Font loaded via Font.loadFont is not rendered
- Closed