Package apple.uikit

Class UIFont

    • Constructor Detail

      • UIFont

        protected UIFont​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIFont alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • boldSystemFontOfSize

        public static UIFont boldSystemFontOfSize​(double fontSize)
      • buttonFontSize

        public static double buttonFontSize()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • familyNames

        public static NSArray<java.lang.String> familyNames()
        Returns an array of font family names for all installed fonts
      • fontNamesForFamilyName

        public static NSArray<java.lang.String> fontNamesForFamilyName​(java.lang.String familyName)
        Returns an array of font names for the specified family name
      • fontWithDescriptorSize

        public static UIFont fontWithDescriptorSize​(UIFontDescriptor descriptor,
                                                    double pointSize)
        Returns a font matching the font descriptor. If fontSize is greater than 0.0, it has precedence over UIFontDescriptorSizeAttribute in fontDescriptor.
      • fontWithNameSize

        public static UIFont fontWithNameSize​(java.lang.String fontName,
                                              double fontSize)
        Returns a font using CSS name matching semantics.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • italicSystemFontOfSize

        public static UIFont italicSystemFontOfSize​(double fontSize)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • labelFontSize

        public static double labelFontSize()
      • monospacedDigitSystemFontOfSizeWeight

        public static UIFont monospacedDigitSystemFontOfSizeWeight​(double fontSize,
                                                                   double weight)
      • new_objc

        public static java.lang.Object new_objc()
      • preferredFontForTextStyle

        public static UIFont preferredFontForTextStyle​(java.lang.String style)
        Returns an instance of the font associated with the text style and scaled appropriately for the user's selected content size category. See UIFontDescriptor.h for the complete list.
      • preferredFontForTextStyleCompatibleWithTraitCollection

        public static UIFont preferredFontForTextStyleCompatibleWithTraitCollection​(java.lang.String style,
                                                                                    UITraitCollection traitCollection)
        Returns an instance of the font associated with the text style and scaled appropriately for the content size category defined in the trait collection.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • smallSystemFontSize

        public static double smallSystemFontSize()
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • systemFontOfSize

        public static UIFont systemFontOfSize​(double fontSize)
        Think carefully before using these methods. In most cases, a font returned by +preferredFontForTextStyle: will be more appropriate, and will respect the user's selected content size category.
      • systemFontOfSizeWeight

        public static UIFont systemFontOfSizeWeight​(double fontSize,
                                                    double weight)
        Weights used here are analogous to those used with UIFontDescriptor's UIFontWeightTrait. See the UIFontWeight... constants in UIFontDescriptor.h for suggested values. The caveat above about the use of ...systemFont... methods applies to these methods too.
      • systemFontSize

        public static double systemFontSize()
      • version_static

        public static long version_static()
      • ascender

        public double ascender()
      • capHeight

        public double capHeight()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • descender

        public double descender()
      • familyName

        public java.lang.String familyName()
        Font attributes
      • fontDescriptor

        public UIFontDescriptor fontDescriptor()
        Returns a font descriptor which describes the font.
      • fontName

        public java.lang.String fontName()
      • fontWithSize

        public UIFont fontWithSize​(double fontSize)
        Create a new font that is identical to the current font except the specified size
      • leading

        public double leading()
      • lineHeight

        public double lineHeight()
      • pointSize

        public double pointSize()
      • xHeight

        public double xHeight()
      • monospacedSystemFontOfSizeWeight

        public static UIFont monospacedSystemFontOfSizeWeight​(double fontSize,
                                                              double weight)
        Returns current default monospaced font for system UI. Clients of this API should be aware that the monospaced system font has a similar coverage of default system UI font, which includes Latin and common symbols used for displaying text like source code. For the characters it does not cover, the subtituted fonts are usually not the same width as the monospaced system font, they can be wider, narrower, or variable. To ensure fixed advances in text layout, clients can consider using string attributes like UIFontDescriptorFixedAdvanceAttribute.