-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
jfx18
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Windows Temurin 17
A DESCRIPTION OF THE PROBLEM :
URL.getFile() returns a URL encoded string. It must be decoded to get a usable file name.
URL decode this line:
https://github.com/openjdk/jfx/blob/e24eeceb28741f4a044ea2cb0cb23a1174b27c66/modules/javafx.graphics/src/main/java/javafx/scene/text/Font.java#L470
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Font.loadFont("file:/C:/path%20with%20spaces/font.ttf", 12);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It returns a loaded font
ACTUAL -
It returns null
---------- BEGIN SOURCE ----------
Font.loadFont("file:/C:/path%20with%20spaces/font.ttf", 12);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Open input stream and load fonts like that. Doesn't help CSS though.
FREQUENCY : always
Windows Temurin 17
A DESCRIPTION OF THE PROBLEM :
URL.getFile() returns a URL encoded string. It must be decoded to get a usable file name.
URL decode this line:
https://github.com/openjdk/jfx/blob/e24eeceb28741f4a044ea2cb0cb23a1174b27c66/modules/javafx.graphics/src/main/java/javafx/scene/text/Font.java#L470
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Font.loadFont("file:/C:/path%20with%20spaces/font.ttf", 12);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It returns a loaded font
ACTUAL -
It returns null
---------- BEGIN SOURCE ----------
Font.loadFont("file:/C:/path%20with%20spaces/font.ttf", 12);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Open input stream and load fonts like that. Doesn't help CSS though.
FREQUENCY : always