Package apple.uikit
Class UIFont
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIFont
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIFont(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UIFontalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)doubleascender()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static UIFontboldSystemFontOfSize(double fontSize)static doublebuttonFontSize()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)doublecapHeight()static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()doubledescender()static java.lang.Stringdescription_static()java.lang.StringfamilyName()Font attributesstatic NSArray<java.lang.String>familyNames()Returns an array of font family names for all installed fontsUIFontDescriptorfontDescriptor()Returns a font descriptor which describes the font.java.lang.StringfontName()static NSArray<java.lang.String>fontNamesForFamilyName(java.lang.String familyName)Returns an array of font names for the specified family namestatic UIFontfontWithDescriptorSize(UIFontDescriptor descriptor, double pointSize)Returns a font matching the font descriptor.static UIFontfontWithNameSize(java.lang.String fontName, double fontSize)Returns a font using CSS name matching semantics.UIFontfontWithSize(double fontSize)Create a new font that is identical to the current font except the specified sizestatic longhash_static()UIFontinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static UIFontitalicSystemFontOfSize(double fontSize)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static doublelabelFontSize()doubleleading()doublelineHeight()static UIFontmonospacedDigitSystemFontOfSizeWeight(double fontSize, double weight)static UIFontmonospacedSystemFontOfSizeWeight(double fontSize, double weight)Returns current default monospaced font for system UI.static java.lang.Objectnew_objc()doublepointSize()static UIFontpreferredFontForTextStyle(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.static UIFontpreferredFontForTextStyleCompatibleWithTraitCollection(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.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static doublesmallSystemFontSize()static org.moe.natj.objc.Classsuperclass_static()static UIFontsystemFontOfSize(double fontSize)Think carefully before using these methods.static UIFontsystemFontOfSizeWeight(double fontSize, double weight)Weights used here are analogous to those used with UIFontDescriptor's UIFontWeightTrait.static doublesystemFontSize()static longversion_static()doublexHeight()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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:
copyWithZonein interfaceNSCopying
-
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.
-
-