This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (NSString* fontFamily in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", fontFamily); | |
for (NSString* fontName in [UIFont fontNamesForFamilyName: fontFamily]) | |
{ | |
NSLog(@" %@", fontName); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
f=$(pwd) | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/app-icon.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/app-icon-29.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for fontFamily in UIFont.familyNames { | |
print("-----") | |
print(fontFamily) | |
for fontName in UIFont.fontNames(forFamilyName: fontFamily) { | |
print(" ", fontName) | |
} | |
} |