Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want get list of loaded UIFont or UIFontDescriptor. #10

Closed
muukii opened this issue Mar 12, 2016 · 14 comments
Closed

I want get list of loaded UIFont or UIFontDescriptor. #10

muukii opened this issue Mar 12, 2016 · 14 comments

Comments

@muukii
Copy link

muukii commented Mar 12, 2016

Hi

Thank you for your great library.
I want get list of loaded UIFont or UIFontDescriptor.
Please, Add property.

@ArtSabintsev
Copy link
Owner

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.

@muukii
Copy link
Author

muukii commented Mar 12, 2016

@ArtSabintsev

Thank you!
I'm looking forward to it.

@ArtSabintsev
Copy link
Owner

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?

@ArtSabintsev
Copy link
Owner

When I ask why?, I'm curious as to how you will be making use of an array of registered fonts.

@muukii
Copy link
Author

muukii commented Mar 13, 2016

I need to know what the UIFont is provided by system.
So, I want to know imported font names when ran blast(:).

@muukii
Copy link
Author

muukii commented Mar 13, 2016

The code looks like this:

let loadedFontNames: Set<String>

if loadedFontNames.contain("FONT NAME") {
    // Loaded font
}
else {
    // System font
}

@ArtSabintsev
Copy link
Owner

ok, cool. I'll return an array of FontNames; [String]. Will do this tonight.

@muukii
Copy link
Author

muukii commented Mar 14, 2016

@ArtSabintsev

Thank you😆

@ArtSabintsev
Copy link
Owner

Try this: #11

If that works for you, I'll pull it in in the next 24 hours.

@muukii
Copy link
Author

muukii commented Mar 14, 2016

@ArtSabintsev
Cool.
Looks good to me :)

@ArtSabintsev
Copy link
Owner

Great - I'll merge it in after lunch or after work, as I still need to make a couple more changes.

@muukii
Copy link
Author

muukii commented Mar 14, 2016

Thanks.

@ArtSabintsev
Copy link
Owner

This will be done tonight - got a bit sidetracked.

@ArtSabintsev
Copy link
Owner

Alright, it's done. v2.1.0 is available through Github and various package managers (CocoaPods, Carthage, Swift PM).

Thanks for the suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants