equal
deleted
inserted
replaced
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) && |