JDK-8134078 : [macosx] Font ligatures are not rendered for natively loaded font
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8u51
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-08-20
  • Updated: 2020-09-15
  • Resolved: 2016-11-16
Related Reports
Blocks :  
Duplicate :  
Relates :  
Optional font ligatures are not rendered when natively loaded font is used.
When the same font is loaded in application using java.awt.Font.createFont() method, it works fine.

The behaviour is strictly reproducible on Mac OSX.
It works as expected on Windows operating systems.

Steps to reproduce
1. Install ���Hasklig��� font (Hasklig-Regular.noDFLT.otf)
    (make sure that the file becomes available in ~/Library/Fonts folder),
2. In a small Swing app, add JLabel with "->" as text.
3. Enable ligatures on the font.
4. Actual behaviour:
    Compile Ligatures1Test.java and run it.
    The window shows characters that are rendered separately.
4. The expected behaviour:
    Compile Ligatures2Test.java and run it.
    The window shows characters that are rendered as a single glyph.

Application to use java.awt.Font.createFont() method,
Loading font from non-standard directory.
you should open a back port of JDK-7162125 and JDK-8147002 and target to 8-pool

Alexander S, can you please check (is dup or not) or let me know if you can't do this..

my apologies.

Why are we deferring without even verifying what I wrote earlier - this is a duplicate of a bug that I already fixed ?

9-defer-request: No resources to fix in , retarget to 10

Alexey, is this bug fix still in your plans to meet ZBB (Oct 20)? http://openjdk.java.net/projects/jdk9/

This sounds like a duplicate of https://bugs.openjdk.java.net/browse/JDK-7162125.