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 UIFont allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

        @NotNull
        public static @NotNull UIFont boldSystemFontOfSize​(double fontSize)
      • buttonFontSize

        public static double buttonFontSize()
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        @NotNull
        public static @NotNull 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

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

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

        @NotNull
        public static @NotNull UIFont fontWithDescriptorSize​(@NotNull
                                                             @NotNull 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. API-Since: 7.0
      • fontWithNameSize

        @Nullable
        public static @Nullable UIFont fontWithNameSize​(@NotNull
                                                        @NotNull 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

        @NotNull
        public static @NotNull UIFont italicSystemFontOfSize​(double fontSize)
      • keyPathsForValuesAffectingValueForKey

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

        public static double labelFontSize()
      • monospacedDigitSystemFontOfSizeWeight

        @NotNull
        public static @NotNull UIFont monospacedDigitSystemFontOfSizeWeight​(double fontSize,
                                                                            double weight)
        API-Since: 9.0
      • new_objc

        public static UIFont new_objc()
      • preferredFontForTextStyle

        @NotNull
        public static @NotNull UIFont preferredFontForTextStyle​(@NotNull
                                                                @NotNull 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. API-Since: 7.0
      • preferredFontForTextStyleCompatibleWithTraitCollection

        @NotNull
        public static @NotNull UIFont preferredFontForTextStyleCompatibleWithTraitCollection​(@NotNull
                                                                                             @NotNull java.lang.String style,
                                                                                             @Nullable
                                                                                             @Nullable 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. API-Since: 10.0
      • 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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull 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. API-Since: 8.2
      • systemFontSize

        public static double systemFontSize()
      • version_static

        public static long version_static()
      • ascender

        public double ascender()
      • capHeight

        public double capHeight()
      • copyWithZone

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

        public double descender()
      • familyName

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

        @NotNull
        public @NotNull UIFontDescriptor fontDescriptor()
        Returns a font descriptor which describes the font. API-Since: 7.0
      • fontName

        @NotNull
        public @NotNull java.lang.String fontName()
      • fontWithSize

        @NotNull
        public @NotNull 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()
        API-Since: 4.0
      • pointSize

        public double pointSize()
      • xHeight

        public double xHeight()
      • monospacedSystemFontOfSizeWeight

        @NotNull
        public static @NotNull 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 substituted 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. API-Since: 13.0
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • systemFontOfSizeWeightWidth

        @NotNull
        public static @NotNull UIFont systemFontOfSizeWeightWidth​(double fontSize,
                                                                  double weight,
                                                                  double width)
        Returns an instance with the specified weight and width. Width values are declared in UIFontDescriptor.h. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.