< prev index next >

src/java.desktop/share/classes/sun/font/TrueTypeFont.java

Print this page

        

@@ -995,10 +995,16 @@
     @Override
     public int getWeight() {
        return (fontWeight > 0) ? fontWeight : super.getWeight();
     }
 
+    @Override
+    protected boolean isAAT() {
+        return getDirectoryEntry(TrueTypeFont.morxTag) != null ||
+                getDirectoryEntry(TrueTypeFont.mortTag) != null;
+    }
+
     /* TrueTypeFont can use the fsSelection fields of OS/2 table
      * to determine the style. In the unlikely case that doesn't exist,
      * can use macStyle in the 'head' table but simpler to
      * fall back to super class algorithm of looking for well known string.
      * A very few fonts don't specify this information, but I only
< prev index next >