Menu

#800 Devanagari ligatures rendered incorrectly on OS X

None
open
nobody
None
5
2016-02-22
2016-02-22
No

Reported on omegat-development

Devanagari ligatures are not rendered correctly on OS X, though they are correct on Windows. Examples:

String Space-separated Expected display
राक्षस र ा क ् ष स
गायत्री ग ा य त ् र ी
उबुन्टु उ ब ु न ् ट ु
सफ्टवेयर स फ ् ट व े र
केन्द्र क े न ् द ् र

Actual rendering:

Attempted fixes that did not work:

  1. Setting System.setProperty("apple.awt.graphics.UseQuartz", "true"); per StackOverflow answer
  2. Using Font.createFont() to load the system font (/Library/Fonts/DevanagariMT.ttc, etc.) per JDK-7162125
  3. Using Java 9 early access (build 106): in fact this is worse, as there is a crash when rendering a document containing Devanagari text

This is not an OmegaT-specific problem, as jEdit and other Swing programs also show the same issue.

There doesn't seem to be much we can do about this besides wait for a fix in Java itself.

5 Attachments

Discussion

  • Aaron Madlon-Kay

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,13 +2,13 @@
    
     Devanagari ligatures are not rendered correctly on OS X, though they are correct on Windows. Examples:
    
    -String | Space-separated | Header
    +String | Space-separated | Expected display
     ---------- | ---------- | ------ 
    -राक्षस | र ा क ् ष स |  
    -गायत्री | ग ा य त ् र ी |  
    -उबुन्टु | उ ब ु न ् ट ु | 
    -सफ्टवेयर | स फ ् ट व े र |
    -केन्द्र | क े न ् द ् र |
    +राक्षस | र ा क ् ष स | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.17.48.png)
    +गायत्री | ग ा य त ् र ी | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.19.21.png)
    +उबुन्टु | उ ब ु न ् ट ु | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.20.34.png)
    +सफ्टवेयर | स फ ् ट व े र | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.21.44.png)
    +केन्द्र | क े न ् द ् र | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.23.57.png)
    
     Attempted fixes that did not work:
    
     
  • Aaron Madlon-Kay

    Attatching patch for solution #2 (discarded because it didn't work)

     
  • Aaron Madlon-Kay

    Attaching screenshot of actual rendering

     
  • Aaron Madlon-Kay

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,8 +10,15 @@
     सफ्टवेयर | स फ ् ट व े र | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.21.44.png)
     केन्द्र | क े न ् द ् र | ![](https://sourceforge.net/p/omegat/bugs/800/attachment/Screenshot%202016-02-20%2012.23.57.png)
    
    +Actual rendering:
    +![](https://sourceforge.net/p/omegat/bugs/_discuss/thread/dc55678e/bb48/attachment/Screen%20Shot%202016-02-22%20at%2011.06.59.png)
    +
     Attempted fixes that did not work:
    
     1. Setting `System.setProperty("apple.awt.graphics.UseQuartz", "true");` per [StackOverflow answer](http://stackoverflow.com/a/6407206/448068)
     2. Using `Font.createFont()` to load the system font (`/Library/Fonts/DevanagariMT.ttc`, etc.) per [JDK-7162125](https://bugs.openjdk.java.net/browse/JDK-7162125)
     3. Using Java 9 early access (build 106): in fact this is worse, as there is a crash when rendering a document containing Devanagari text
    +
    +This is not an OmegaT-specific problem, as jEdit and other Swing programs also show the same issue.
    +
    +There doesn't seem to be much we can do about this besides wait for a fix in Java itself.
    
     

Log in to post a comment.