/** * @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; } /**
/** * @since Available in iOS 3.2 and later. */ public float getKern() { if (has(CTAttributedStringAttribute.Kern)) { CFNumber val = get(CTAttributedStringAttribute.Kern, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @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 float getWidthTrait() { if (has(Keys.WidthTrait())) { CFNumber val = get(Keys.WidthTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getSlantTrait() { if (has(Keys.SlantTrait())) { CFNumber val = get(Keys.SlantTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getWeightTrait() { if (has(Keys.WeightTrait())) { CFNumber val = get(Keys.WeightTrait(), 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 float getFixedAdvance() { if (has(CTFontAttribute.FixedAdvance)) { CFNumber val = get(CTFontAttribute.FixedAdvance, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getKern() { if (has(CTAttributedStringAttribute.Kern)) { CFNumber val = get(CTAttributedStringAttribute.Kern, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @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 getFixedAdvance() { if (has(CTFontAttribute.FixedAdvance)) { CFNumber val = get(CTFontAttribute.FixedAdvance, 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 float getKern() { if (has(CTAttributedStringAttribute.Kern)) { CFNumber val = get(CTAttributedStringAttribute.Kern, CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getWidthTrait() { if (has(Keys.WidthTrait())) { CFNumber val = get(Keys.WidthTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getWeightTrait() { if (has(Keys.WeightTrait())) { CFNumber val = get(Keys.WeightTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getSlantTrait() { if (has(Keys.SlantTrait())) { CFNumber val = get(Keys.SlantTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getWeightTrait() { if (has(Keys.WeightTrait())) { CFNumber val = get(Keys.WeightTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getWidthTrait() { if (has(Keys.WidthTrait())) { CFNumber val = get(Keys.WidthTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public float getSlantTrait() { if (has(Keys.SlantTrait())) { CFNumber val = get(Keys.SlantTrait(), CFNumber.class); return val.floatValue(); } return 0; } /**