/** * @since Available in iOS 3.2 and later. */ public CTFontDescriptor createMatchingFontDescriptor(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptor(set); } /**
/** * @since Available in iOS 3.2 and later. */ public List<CTFontDescriptor> createMatchingFontDescriptors(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptors(set).toList(CTFontDescriptor.class); } /**
/** * @since Available in iOS 3.2 and later. */ public CFType getLocalizedAttribute(CTFontAttribute attribute) { return getLocalizedAttribute(attribute, null); } /*<methods>*/
/** * @since Available in iOS 6.0 and later. */ public static boolean matchFontDescriptors(List<CTFontDescriptor> descriptors, List<CTFontAttribute> mandatoryAttributes, ProgressHandler progressHandler) { CTFontDescriptor.progressHandler = progressHandler; CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return matchFontDescriptors(CFArray.create(descriptors), set, new FunctionPtr(cbProgress)); } /**
/** * @since Available in iOS 6.0 and later. */ public static boolean matchFontDescriptors(List<CTFontDescriptor> descriptors, List<CTFontAttribute> mandatoryAttributes, @Block Block2<CTFontDescriptorMatchingState, NSDictionary, Boolean> progressBlock) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return matchFontDescriptors(CFArray.create(descriptors), set, progressBlock); } /**
/** * @since Available in iOS 3.2 and later. */ public CFType getLocalizedAttribute(CTFontAttribute attribute) { return getLocalizedAttribute(attribute, null); } /*<methods>*/
/** * @since Available in iOS 3.2 and later. */ public List<CTFontDescriptor> createMatchingFontDescriptors(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptors(set).toList(CTFontDescriptor.class); } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontDescriptor createMatchingFontDescriptor(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptor(set); } /**
/** * @since Available in iOS 6.0 and later. */ public static boolean matchFontDescriptors(List<CTFontDescriptor> descriptors, List<CTFontAttribute> mandatoryAttributes, @Block Block2<CTFontDescriptorMatchingState, NSDictionary, Boolean> progressBlock) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return matchFontDescriptors(CFArray.create(descriptors), set, progressBlock); } /**
/** * @since Available in iOS 3.2 and later. */ public CFType getLocalizedAttribute(CTFontAttribute attribute) { return getLocalizedAttribute(attribute, null); } /*<methods>*/
/** * @since Available in iOS 3.2 and later. */ public List<CTFontDescriptor> createMatchingFontDescriptors(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptors(set).toList(CTFontDescriptor.class); } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontDescriptor createMatchingFontDescriptor(List<CTFontAttribute> mandatoryAttributes) { CFSet set = CFMutableSet.create(); for (CTFontAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return createMatchingFontDescriptor(set); } /**