/** * @since Available in iOS 3.2 and later. */ public NSURL getURL() { if (has(CTFontAttribute.URL)) { NSURL val = get(CTFontAttribute.URL, NSURL.class); return val; } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public NSCharacterSet getCharacterSet() { if (has(CTFontAttribute.CharacterSet)) { NSCharacterSet val = get(CTFontAttribute.CharacterSet, NSCharacterSet.class); return val; } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public String getName() { if (has(CTFontAttribute.Name)) { CFString val = get(CTFontAttribute.Name, CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public List<CTFontDescriptor> getCascadeList() { if (has(CTFontAttribute.CascadeList)) { CFArray val = get(CTFontAttribute.CascadeList, CFArray.class); return val.toList(CTFontDescriptor.class); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public String getDisplayName() { if (has(CTFontAttribute.DisplayName)) { CFString val = get(CTFontAttribute.DisplayName, CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public float getSize() { if (has(CTFontAttribute.Size)) { CFNumber val = get(CTFontAttribute.Size, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getBaselineAdjust() { if (has(CTFontAttribute.BaselineAdjust)) { CFNumber val = get(CTFontAttribute.BaselineAdjust, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public boolean isEnabled() { if (has(CTFontAttribute.Enabled)) { CFBoolean val = get(CTFontAttribute.Enabled, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 3.2 and later. */ public float getFixedAdvance() { if (has(CTFontAttribute.FixedAdvance)) { CFNumber val = get(CTFontAttribute.FixedAdvance, CFNumber.class); return val.floatValue(); } return 0; } /**
public <T extends NativeObject> T get(CTFontAttribute key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CTFontAttributes set(CTFontAttribute key, NativeObject value) {
/** * @since Available in iOS 3.2 and later. */ public CTFontTraits getTraits() { if (has(CTFontAttribute.Traits)) { CFDictionary val = get(CTFontAttribute.Traits, CFDictionary.class); return new CTFontTraits(val); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontVariationAxes getVariationAxes() { if (has(CTFontAttribute.Variation)) { CFDictionary val = get(CTFontAttribute.Variation, CFDictionary.class); return new CTFontVariationAxes(val); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public List<String> getLanguages() { if (has(CTFontAttribute.Languages)) { CFArray val = get(CTFontAttribute.Languages, CFArray.class); return val.asStringList(); } return null; } /**
/** * @since Available in iOS 7.0 and later. */ public boolean isDownloaded() { if (has(CTFontAttribute.Downloaded)) { CFBoolean val = get(CTFontAttribute.Downloaded, CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 3.2 and later. */ public String getStyleName() { if (has(CTFontAttribute.StyleName)) { CFString val = get(CTFontAttribute.StyleName, CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CGAffineTransform getMatrix() { if (has(CTFontAttribute.Matrix)) { NSData val = get(CTFontAttribute.Matrix, NSData.class); return val.getStructData(CGAffineTransform.class); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public long getMacintoshEncodings() { if (has(CTFontAttribute.MacintoshEncodings)) { CFNumber val = get(CTFontAttribute.MacintoshEncodings, CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontFormat getFormat() { if (has(CTFontAttribute.Format)) { CFNumber val = get(CTFontAttribute.Format, CFNumber.class); return CTFontFormat.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontPriority getPriority() { if (has(CTFontAttribute.Priority)) { CFNumber val = get(CTFontAttribute.Priority, CFNumber.class); return CTFontPriority.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontOrientation getOrientation() { if (has(CTFontAttribute.Orientation)) { CFNumber val = get(CTFontAttribute.Orientation, CFNumber.class); return CTFontOrientation.valueOf(val.longValue()); } return null; } /**