ADDITIONAL SYSTEM INFORMATION :
Windows 10 x64
OpenJDK 11 and later
JavaFX 14
A DESCRIPTION OF THE PROBLEM :
In case a OpenType font used in WebView is locally installed on a Windows machine, it causes the Print API to output garbage instead of actual text.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. From the fonts provided, install the OpenType(.otf) font locally
2. Run the sample from https://github.com/abhinayagarwal/FontCorruption
3. The WebView is loaded with the correct font
4. A print dialog appears. Either print to an actual printer or to a PDF file
5. Observe texts corruption (e.g "Hello world" prints as "J gnnq"y qtnf")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The printer output text should look exactly as the WebView, without text corruption.
ACTUAL -
The printer output text is corrupted
---------- BEGIN SOURCE ----------
Checkout the sample from https://github.com/abhinayagarwal/FontCorruption
Run `./gradlew run` with OpenJDK 11 and later
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Remove the offending OpenType font from the local computer
FREQUENCY : always
Windows 10 x64
OpenJDK 11 and later
JavaFX 14
A DESCRIPTION OF THE PROBLEM :
In case a OpenType font used in WebView is locally installed on a Windows machine, it causes the Print API to output garbage instead of actual text.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. From the fonts provided, install the OpenType(.otf) font locally
2. Run the sample from https://github.com/abhinayagarwal/FontCorruption
3. The WebView is loaded with the correct font
4. A print dialog appears. Either print to an actual printer or to a PDF file
5. Observe texts corruption (e.g "Hello world" prints as "J gnnq"y qtnf")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The printer output text should look exactly as the WebView, without text corruption.
ACTUAL -
The printer output text is corrupted
---------- BEGIN SOURCE ----------
Checkout the sample from https://github.com/abhinayagarwal/FontCorruption
Run `./gradlew run` with OpenJDK 11 and later
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Remove the offending OpenType font from the local computer
FREQUENCY : always