JDK-8134657 : Arabic characters appear separated from each other by little bit of a gap
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8u60
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2015-08-27
  • Updated: 2019-10-10
  • Resolved: 2019-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.10240]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Nvidia HD 5800

A DESCRIPTION OF THE PROBLEM :
Using JavaFX ( scene builder 2.0) with a label or text field the Arabic characters have little of a gap between them . see this for example http://www.arabguru.com/public/java1.png

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
just make any scene with arabic text

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
arabic don't have gaps between the characters 
ACTUAL -
here is a picture of the actual separated characters http://www.arabguru.com/public/java1.png

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.text.*?>
<?import javafx.scene.layout.*?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>


<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="773.0" prefWidth="954.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
   <children>
      <GridPane>
        <columnConstraints>
            <ColumnConstraints hgrow="SOMETIMES" maxWidth="472.0" minWidth="10.0" prefWidth="149.0" />
            <ColumnConstraints hgrow="SOMETIMES" maxWidth="472.0" minWidth="10.0" prefWidth="211.0" />
          <ColumnConstraints hgrow="SOMETIMES" maxWidth="499.0" minWidth="10.0" prefWidth="479.0" />
          <ColumnConstraints hgrow="SOMETIMES" maxWidth="685.0" minWidth="10.0" prefWidth="117.0" />
        </columnConstraints>
        <rowConstraints>
          <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
          <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
          <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
        </rowConstraints>
         <children>
            <Label alignment="CENTER" nodeOrientation="RIGHT_TO_LEFT" prefHeight="106.0" prefWidth="348.0" text="������ ���������������� :  " GridPane.columnIndex="2" GridPane.halignment="LEFT" GridPane.rowIndex="1">
               <font>
                  <Font name="Arabic Typesetting" size="62.0" />
               </font>
            </Label>
            <TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
         </children>
      </GridPane>
   </children>
</VBox>

---------- END SOURCE ----------


Comments
This may be similar to 8136593 but I am not sure it is a straight duplicate.
30-10-2015

I think this is a duplicate - ie we already have a report on this. The problem is that the LCD text rendering code is not reading back the surface so the glyphs are not being properly composited together. This seems to be a short-cut taken for reasons I can't really explain other than perhaps performance.
28-08-2015