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:
System.setProperty("apple.awt.graphics.UseQuartz", "true");
per StackOverflow answerFont.createFont()
to load the system font (/Library/Fonts/DevanagariMT.ttc
, etc.) per JDK-7162125This 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.
Diff:
Attatching patch for solution #2 (discarded because it didn't work)
Attaching screenshot of actual rendering
Diff: