I want get list of loaded UIFont or UIFontDescriptor.
muukii opened this issue · 14 comments
Hi
Thank you for your great library.
I want get list of loaded UIFont or UIFontDescriptor.
Please, Add property.
You're welcome. Sure, I can add a method returns a list of loaded fonts.
I'll make a new blast(_:)
method that has a completion handler.
Thank you!
I'm looking forward to it.
It makes more sense to just return the font name as I don't have to initialize a new UIFont object with a fake size.
A) Is that OK?
B) Why do you want this feature?
When I ask why?
, I'm curious as to how you will be making use of an array of registered fonts.
I need to know what the UIFont is provided by system.
So, I want to know imported font names when ran blast(:).
The code looks like this:
let loadedFontNames: Set<String>
if loadedFontNames.contain("FONT NAME") {
// Loaded font
}
else {
// System font
}
ok, cool. I'll return an array of FontNames; [String]
. Will do this tonight.
Thank you😆
Try this: #11
If that works for you, I'll pull it in in the next 24 hours.
@ArtSabintsev
Cool.
Looks good to me :)
Great - I'll merge it in after lunch or after work, as I still need to make a couple more changes.
Thanks.
This will be done tonight - got a bit sidetracked.
Alright, it's done. v2.1.0 is available through Github and various package managers (CocoaPods, Carthage, Swift PM).
Thanks for the suggestions.