jdk/src/java.desktop/share/classes/sun/print/PathGraphics.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 35667 ed476aba94de
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   886              * createGlyphVector() (with no layout) would create. However
   886              * createGlyphVector() (with no layout) would create. However
   887              * inconsistently, TRACKING is applied when creating a GlyphVector,
   887              * inconsistently, TRACKING is applied when creating a GlyphVector,
   888              * since it doesn't actually require "layout" (even though its
   888              * since it doesn't actually require "layout" (even though its
   889              * considered a layout attribute), it just requires a fractional
   889              * considered a layout attribute), it just requires a fractional
   890              * tweak to the[default]advances. So we need to specifically
   890              * tweak to the[default]advances. So we need to specifically
   891              * check for tracking until such time as as we can trust
   891              * check for tracking until such time as we can trust
   892              * the GlyphVector.FLAG_HAS_POSITION_ADJUSTMENTS bit.
   892              * the GlyphVector.FLAG_HAS_POSITION_ADJUSTMENTS bit.
   893              */
   893              */
   894             Map<TextAttribute, ?> map = font.getAttributes();
   894             Map<TextAttribute, ?> map = font.getAttributes();
   895             Object o = map.get(TextAttribute.TRACKING);
   895             Object o = map.get(TextAttribute.TRACKING);
   896             boolean tracking = o != null && (o instanceof Number) &&
   896             boolean tracking = o != null && (o instanceof Number) &&