Class UIFontDescriptorSymbolicTraits


  • public final class UIFontDescriptorSymbolicTraits
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ClassClarendonSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassFreeformSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassMask
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassModernSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassOldStyleSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassOrnamentals
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassSansSerif
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassScripts
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassSlabSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassSymbolic
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassTransitionalSerifs
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int ClassUnknown
      Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font.
      static int TraitBold
      Symbolic Font Traits (Typeface info - lower 16 bits of UIFontDescriptorSymbolicTraits) UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font.
      static int TraitCondensed  
      static int TraitExpanded
      expanded and condensed traits are mutually exclusive
      static int TraitItalic
      Symbolic Font Traits (Typeface info - lower 16 bits of UIFontDescriptorSymbolicTraits) UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font.
      static int TraitLooseLeading
      Use looser leading values
      static int TraitMonoSpace
      Use fixed-pitch glyphs if available.
      static int TraitTightLeading
      Use tighter leading values
      static int TraitUIOptimized
      Synthesize appropriate attributes for UI rendering such as control titles if necessary
      static int TraitVertical
      Use vertical glyph variants and metrics
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TraitItalic

        public static final int TraitItalic
        Symbolic Font Traits (Typeface info - lower 16 bits of UIFontDescriptorSymbolicTraits) UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font. The upper 16 bits is used to describe appearance of the font whereas the lower 16 bits for typeface. The font appearance information represented by the upper 16 bits can be used for stylistic font matching.
        See Also:
        Constant Field Values
      • TraitBold

        public static final int TraitBold
        Symbolic Font Traits (Typeface info - lower 16 bits of UIFontDescriptorSymbolicTraits) UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font. The upper 16 bits is used to describe appearance of the font whereas the lower 16 bits for typeface. The font appearance information represented by the upper 16 bits can be used for stylistic font matching.
        See Also:
        Constant Field Values
      • TraitExpanded

        public static final int TraitExpanded
        expanded and condensed traits are mutually exclusive
        See Also:
        Constant Field Values
      • TraitMonoSpace

        public static final int TraitMonoSpace
        Use fixed-pitch glyphs if available. May have multiple glyph advances (most CJK glyphs may contain two spaces)
        See Also:
        Constant Field Values
      • TraitVertical

        public static final int TraitVertical
        Use vertical glyph variants and metrics
        See Also:
        Constant Field Values
      • TraitUIOptimized

        public static final int TraitUIOptimized
        Synthesize appropriate attributes for UI rendering such as control titles if necessary
        See Also:
        Constant Field Values
      • TraitTightLeading

        public static final int TraitTightLeading
        Use tighter leading values
        See Also:
        Constant Field Values
      • TraitLooseLeading

        public static final int TraitLooseLeading
        Use looser leading values
        See Also:
        Constant Field Values
      • ClassMask

        public static final int ClassMask
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassUnknown

        public static final int ClassUnknown
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassOldStyleSerifs

        public static final int ClassOldStyleSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassTransitionalSerifs

        public static final int ClassTransitionalSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassModernSerifs

        public static final int ClassModernSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassClarendonSerifs

        public static final int ClassClarendonSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassSlabSerifs

        public static final int ClassSlabSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassFreeformSerifs

        public static final int ClassFreeformSerifs
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassSansSerif

        public static final int ClassSansSerif
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassOrnamentals

        public static final int ClassOrnamentals
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassScripts

        public static final int ClassScripts
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values
      • ClassSymbolic

        public static final int ClassSymbolic
        Font appearance info (upper 16 bits of NSFontSymbolicTraits UIFontDescriptorClassFamily classifies certain stylistic qualities of the font. These values correspond closely to the font class values in the OpenType 'OS/2' table. The class values are bundled in the upper four bits of the UIFontDescriptorSymbolicTraits and can be accessed via UIFontDescriptorClassMask. For specific meaning of each identifier, refer to the OpenType specification.
        See Also:
        Constant Field Values