/** * @since Available in iOS 7.0 and later. */ public static NSObject observeRegisteredFontsChanged(final Runnable block) { return NSNotificationCenter.getDefaultCenter().addObserver(RegisteredFontsChangedNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { block.run(); } }); } }
/** * @since Available in iOS 4.1 and later. */ public static boolean registerFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return registerFonts(fontURLs, scope, null); } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean registerGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = registerGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return unregisterFonts(fontURLs, scope, null); } /*<methods>*/
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = unregisterGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(List<NSURL> fontURLs, CTFontManagerScope scope) { return unregisterFonts(new NSArray<>(fontURLs), scope, null); } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = unregisterGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(NSURL fontURL, CTFontManagerScope scope) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = unregisterFonts(fontURL, scope, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean registerFonts(List<NSURL> fontURLs, CTFontManagerScope scope) { return registerFonts(new NSArray<>(fontURLs), scope, null); } /**
/** * @since Available in iOS 7.0 and later. */ public static NSObject observeRegisteredFontsChanged(final Runnable block) { return NSNotificationCenter.getDefaultCenter().addObserver(RegisteredFontsChangedNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { block.run(); } }); } }
/** * @since Available in iOS 4.1 and later. */ public static boolean registerGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = registerGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = unregisterGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return unregisterFonts(fontURLs, scope, null); } /*<methods>*/
/** * @since Available in iOS 4.1 and later. */ public static boolean registerFonts(NSURL fontURL, CTFontManagerScope scope) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = registerFonts(fontURL, scope, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 7.0 and later. */ public static NSObject observeRegisteredFontsChanged(final Runnable block) { return NSNotificationCenter.getDefaultCenter().addObserver(RegisteredFontsChangedNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { block.run(); } }); } }
/** * @since Available in iOS 4.1 and later. */ public static boolean registerGraphicsFont(CGFont font) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = registerGraphicsFont(font, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return unregisterFonts(fontURLs, scope, null); } /*<methods>*/
/** * @since Available in iOS 4.1 and later. */ public static boolean registerFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return registerFonts(fontURLs, scope, null); } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean unregisterFonts(List<NSURL> fontURLs, CTFontManagerScope scope) { return unregisterFonts(new NSArray<>(fontURLs), scope, null); } /**
/** * @since Available in iOS 4.1 and later. */ public static boolean registerFonts(NSArray<NSURL> fontURLs, CTFontManagerScope scope) { return registerFonts(fontURLs, scope, null); } /**