Skip to content

Instantly share code, notes, and snippets.

View Gerharbo's full-sized avatar

Gerhard Bos Gerharbo

View GitHub Profile
for fontFamily in UIFont.familyNames {
print("-----")
print(fontFamily)
for fontName in UIFont.fontNames(forFamilyName: fontFamily) {
print(" ", fontName)
}
}
#!/bin/bash
f=$(pwd)
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png"
sips --resampleWidth 57 "${f}/${1}" --out "${f}/app-icon.png"
sips --resampleWidth 114 "${f}/${1}" --out "${f}/app-icon@2x.png"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/app-icon-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/app-icon-29@2x.png"
@Gerharbo
Gerharbo / gist:2169d76998ef96caf409
Created March 11, 2015 19:29
List all fonts in Objective-c
for (NSString* fontFamily in [UIFont familyNames])
{
NSLog(@"%@", fontFamily);
for (NSString* fontName in [UIFont fontNamesForFamilyName: fontFamily])
{
NSLog(@" %@", fontName);
}
}