├── glyphs-svg-clipboard-demo.gif ├── TypoFig ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ ├── icon_16x16@1x.png │ │ ├── icon_16x16@2x.png │ │ ├── icon_32x32@1x.png │ │ ├── icon_32x32@2x.png │ │ ├── icon_128x128@1x.png │ │ ├── icon_128x128@2x.png │ │ ├── icon_256x256@1x.png │ │ ├── icon_256x256@2x.png │ │ ├── icon_512x512@1x.png │ │ ├── icon_512x512@2x.png │ │ └── Contents.json ├── AppDelegate.h ├── TypoFig.entitlements ├── main.m ├── Info.plist ├── AppDelegate.m └── Base.lproj │ └── MainMenu.xib ├── README.md ├── LICENSE └── TypoFig.xcodeproj └── project.pbxproj /glyphs-svg-clipboard-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/glyphs-svg-clipboard-demo.gif -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_16x16@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_16x16@1x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_32x32@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_32x32@1x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_128x128@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_128x128@1x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_256x256@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_256x256@1x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_512x512@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_512x512@1x.png -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsms/TypoFig/HEAD/TypoFig/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png -------------------------------------------------------------------------------- /TypoFig/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // TypoFig 4 | // 5 | // Created by Rasmus Andersson on 3/8/20. 6 | // Copyright © 2020 Rasmus Andersson. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /TypoFig/TypoFig.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /TypoFig/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TypoFig 4 | // 5 | // Created by Rasmus Andersson on 3/8/20. 6 | // Copyright © 2020 Rasmus Andersson. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | @autoreleasepool { 13 | // Setup code that might create autoreleased objects goes here. 14 | } 15 | return NSApplicationMain(argc, argv); 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TypoFig 2 | 3 | Small Mac app for assisting with typography design in Figma. 4 | 5 | 6 | 7 | [→ Download](https://github.com/rsms/TypoFig/releases/latest) 8 | 9 | Currently the app only does one specific thing: Convert Glyphs clipboard contents to SVG. 10 | 11 | 1. Start the app 12 | 2. Copy shapes in Glyphs.app 13 | 3. Paste somewhere that accepts SVG, for example Figma 14 | 15 | 16 | 17 | The app observes the clipboard. When it sees some Glyphs content it attempts to 18 | convert it into SVG and then adds the SVG to the clipboard. 19 | When the app finds Glyphs content and converts it, it bounces its app icon in the Dock. 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Rasmus Andersson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /TypoFig/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2020 Rasmus Andersson. All rights reserved. 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | NSSupportsAutomaticTermination 32 | 33 | NSSupportsSuddenTermination 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /TypoFig/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "icon_16x16@1x.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "icon_16x16@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "icon_32x32@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "icon_32x32@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "icon_128x128@1x.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "icon_128x128@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "icon_256x256@1x.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "icon_256x256@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "icon_512x512@1x.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "icon_512x512@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /TypoFig/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #define auto __auto_type 4 | 5 | @interface AppDelegate () 6 | 7 | @property (weak) IBOutlet NSWindow *window; 8 | @end 9 | 10 | @implementation AppDelegate { 11 | NSInteger lastChangeCount; 12 | } 13 | 14 | static NSString* glyphsAppGlyphPBUTI; 15 | 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | // Glyphs uses a dynamic UTI for writing pasteboard data. 19 | // Get its dynamic UTI. 20 | glyphsAppGlyphPBUTI = (NSString*)CFBridgingRelease(UTTypeCreatePreferredIdentifierForTag(kUTTagClassNSPboardType, CFSTR("Glyphs elements pasteboard type"), kUTTypeData)); 21 | //NSLog(@"glyphsAppGlyphPBUTI: %@", glyphsAppGlyphPBUTI); 22 | 23 | [self pollPasteboard]; 24 | } 25 | 26 | 27 | - (void)pollPasteboard { 28 | //NSLog(@"pollPasteboard"); 29 | auto pb = [NSPasteboard generalPasteboard]; 30 | if (lastChangeCount != pb.changeCount) { 31 | lastChangeCount = pb.changeCount; 32 | [self checkPasteboard:pb]; 33 | } 34 | [self performSelector:@selector(pollPasteboard) withObject:nil afterDelay:1]; 35 | } 36 | 37 | 38 | - (void)checkPasteboard:(NSPasteboard*)pb { 39 | //NSLog(@"pb %@", pb); 40 | for (NSPasteboardItem* item in pb.pasteboardItems) { 41 | //NSLog(@"item %@", item); 42 | for (NSPasteboardType type in item.types) { 43 | //NSLog(@" type %@", type); 44 | 45 | if ([type isEqualToString:glyphsAppGlyphPBUTI]) { 46 | id plist = [item propertyListForType:type]; 47 | if (plist != nil && 48 | ![plist isKindOfClass:[NSNull class]] && 49 | ( [[plist class] isKindOfClass:[NSDictionary class]] || 50 | [plist respondsToSelector:@selector(objectForKey:)] 51 | ) 52 | ) { 53 | [self handleGlyphsAppGlyphPBData:(NSDictionary*)plist pb:pb]; 54 | return; 55 | } 56 | //NSLog(@" plist %@ %@", [plist class], plist); 57 | } 58 | } 59 | } 60 | } 61 | 62 | 63 | typedef struct { 64 | double x; 65 | double y; 66 | NSString* op; 67 | } GlyphsVectorCmdNode; 68 | 69 | 70 | - (void)handleGlyphsAppGlyphPBData:(NSDictionary*)d pb:(NSPasteboard*)pb { 71 | //NSLog(@" d %@", d); 72 | 73 | double __block minX = 99999999999, maxX = -99999999999, minY = 99999999999, maxY = -99999999999; 74 | 75 | auto makePath = ^NSString*(NSDictionary* path) { 76 | 77 | NSArray* nodes = path[@"nodes"]; 78 | 79 | auto getNode = ^(size_t index) { 80 | auto v = [nodes[index] componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 81 | GlyphsVectorCmdNode n = {0, 0, @"(MISSING)"}; 82 | if (v.count > 0 && [[NSScanner scannerWithString:v[0]] scanDouble:&n.x]) { 83 | if (v.count > 1 && [[NSScanner scannerWithString:v[1]] scanDouble:&n.y]) { 84 | n.y = n.y * -1; 85 | if (n.x < minX) { minX = n.x; } 86 | if (n.x > maxX) { maxX = n.x; } 87 | if (n.y < minY) { minY = n.y; } 88 | if (n.y > maxY) { maxY = n.y; } 89 | if (v.count > 2) { 90 | n.op = v[2]; 91 | } 92 | } 93 | } 94 | return n; 95 | }; 96 | 97 | auto commands = [NSMutableArray arrayWithCapacity:nodes.count]; 98 | BOOL hasMoveTo = NO; 99 | 100 | auto lastIndex = ((ssize_t)nodes.count) - 1; 101 | for (auto i = lastIndex; i >= 0; i--) { 102 | auto n = getNode(i); 103 | 104 | //NSLog(@"%f, %f, %@", n.x, n.y, n.op); 105 | 106 | if (i == 0) { 107 | [commands addObject:[NSString stringWithFormat:@"M %.10g %.10g", n.x, n.y]]; 108 | hasMoveTo = YES; 109 | } else if ([n.op isEqualToString:@"LINE"]) { 110 | [commands addObject:[NSString stringWithFormat:@"L %.10g %.10g", n.x, n.y]]; 111 | } else if ([n.op isEqualToString:@"CURVE"]) { 112 | // two control points 113 | auto c1 = getNode(i-2); 114 | auto c2 = getNode(i-1); 115 | i -= 2; 116 | [commands addObject:[NSString stringWithFormat: 117 | @"C %.10g %.10g %.10g %.10g %.10g %.10g", 118 | c1.x, c1.y, c2.x, c2.y, n.x, n.y]]; 119 | } else { 120 | NSLog(@"unexpected glyphs node type %@", n.op); 121 | return nil; 122 | } 123 | 124 | if (i <= 0 && !hasMoveTo) { 125 | // wrap around; add move to at front 126 | auto n = getNode(lastIndex); 127 | [commands addObject:[NSString stringWithFormat:@"M %.10g %.10g", n.x, n.y]]; 128 | } 129 | } 130 | 131 | // build SVG path element 132 | auto svg = [NSMutableString stringWithString: 133 | @""]; 142 | 143 | return svg; 144 | }; 145 | 146 | /*"290 0 LINE", 147 | "290 1314 LINE", 148 | "604 1314 LINE SMOOTH", 149 | "843 1314 OFFCURVE", 150 | "935 1197 OFFCURVE", 151 | "934 1020 CURVE SMOOTH", 152 | "935 844 OFFCURVE", 153 | "843 736 OFFCURVE", 154 | "606 736 CURVE SMOOTH", 155 | "210 736 LINE", 156 | "210 576 LINE", 157 | "612 576 LINE SMOOTH", 158 | "955 575 OFFCURVE", 159 | "1110 760 OFFCURVE", 160 | "1110 1020 CURVE SMOOTH", 161 | "1110 1281 OFFCURVE", 162 | "955 1472 OFFCURVE", 163 | "610 1472 CURVE SMOOTH", 164 | "112 1472 LINE", 165 | "112 0 LINE" 166 | 167 | BECOMES 168 | 169 | d=" 170 | M 290 0 171 | L 290 1314 172 | L 604 1314 173 | C 843 1314 935 1197 934 1020 174 | C 935 844 843 736 606 736 175 | L 210 736 176 | L 210 576 177 | L 612 576 178 | C 955 575 1110 760 1110 1020 179 | C 1110 1281 955 1472 610 1472 180 | L 112 1472 181 | L 112 0 182 | Z" */ 183 | 184 | 185 | auto paths = [NSMutableArray arrayWithCapacity:((NSArray*)d[@"paths"]).count]; 186 | for (NSDictionary* path in d[@"paths"]) { 187 | auto d = makePath(path); 188 | if (d == nil) { 189 | return; 190 | } 191 | [paths addObject:d]; 192 | } 193 | 194 | //NSLog(@"x [%f-%f], y [%f-%f]", minX, maxX, minY, maxY); 195 | auto width = maxX - minX; 196 | auto height = -minY + maxY; 197 | 198 | auto svg = [NSString stringWithFormat: 199 | @"" 201 | "" 202 | "%@" 203 | "" 204 | "", 205 | width, height, 206 | 207 | // viewBox 208 | width, height, 209 | //width, height, 210 | //minX, -maxY, maxX, maxY-minY, 211 | 212 | -minX, height-maxY, 213 | [paths componentsJoinedByString:@"\n"] 214 | ]; 215 | 216 | // resolve & copy pdf item before clearing pasteboard 217 | auto pdfData = [pb dataForType:NSPasteboardTypePDF]; 218 | 219 | // must clear in order to write (can't append to pasteboard items written by other app) 220 | [pb clearContents]; 221 | 222 | // add glyphs pb item as well as any pdf item that was in the pasteboard originally 223 | [pb setPropertyList:d forType:glyphsAppGlyphPBUTI]; 224 | if (pdfData != nil) { 225 | [pb setData:pdfData forType:NSPasteboardTypePDF]; 226 | } 227 | 228 | // add svg 229 | [pb setData:[svg dataUsingEncoding:NSUTF8StringEncoding] forType:NSPasteboardTypeString]; 230 | // NSLog(@"wrote SVG"); 231 | 232 | // update lastChangeCount so we don't cause an infinite poll loop 233 | lastChangeCount = pb.changeCount; 234 | 235 | // bounce the app in the dock once to let the user know the pb was updated 236 | [NSApp requestUserAttention:NSInformationalRequest]; 237 | 238 | /* Example of plist for /R 239 | { 240 | anchors = ( 241 | { 242 | name = top; 243 | position = "{572, 1656}"; 244 | }, 245 | { 246 | name = bottom; 247 | position = "{598, 0}"; 248 | } 249 | ); 250 | glyph = R; 251 | layer = "C698F293-3EC0-4A5A-A3A0-0FDB1F5CF265"; 252 | paths = ( 253 | { 254 | closed = 1; 255 | nodes = ( 256 | "290 0 LINE", 257 | "290 1314 LINE", 258 | "604 1314 LINE SMOOTH", 259 | "843 1314 OFFCURVE", 260 | "935 1197 OFFCURVE", 261 | "934 1020 CURVE SMOOTH", 262 | "935 844 OFFCURVE", 263 | "843 736 OFFCURVE", 264 | "606 736 CURVE SMOOTH", 265 | "210 736 LINE", 266 | "210 576 LINE", 267 | "612 576 LINE SMOOTH", 268 | "955 575 OFFCURVE", 269 | "1110 760 OFFCURVE", 270 | "1110 1020 CURVE SMOOTH", 271 | "1110 1281 OFFCURVE", 272 | "955 1472 OFFCURVE", 273 | "610 1472 CURVE SMOOTH", 274 | "112 1472 LINE", 275 | "112 0 LINE" 276 | ); 277 | }, 278 | { 279 | closed = 1; 280 | nodes = ( 281 | "604 662 LINE", 282 | "960 0 LINE", 283 | "1168 0 LINE", 284 | "806 662 LINE" 285 | ); 286 | } 287 | ); 288 | } */ 289 | } 290 | 291 | 292 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 293 | // Insert code here to tear down your application 294 | } 295 | 296 | 297 | @end 298 | -------------------------------------------------------------------------------- /TypoFig.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6A844CD52415908400573772 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A844CD42415908400573772 /* AppDelegate.m */; }; 11 | 6A844CD72415908600573772 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6A844CD62415908600573772 /* Assets.xcassets */; }; 12 | 6A844CDA2415908600573772 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6A844CD82415908600573772 /* MainMenu.xib */; }; 13 | 6A844CDD2415908600573772 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A844CDC2415908600573772 /* main.m */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXFileReference section */ 17 | 6A844CD02415908400573772 /* TypoFig.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TypoFig.app; sourceTree = BUILT_PRODUCTS_DIR; }; 18 | 6A844CD32415908400573772 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 19 | 6A844CD42415908400573772 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 20 | 6A844CD62415908600573772 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 21 | 6A844CD92415908600573772 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 22 | 6A844CDB2415908600573772 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 23 | 6A844CDC2415908600573772 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 24 | 6A844CDE2415908600573772 /* TypoFig.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = TypoFig.entitlements; sourceTree = ""; }; 25 | /* End PBXFileReference section */ 26 | 27 | /* Begin PBXFrameworksBuildPhase section */ 28 | 6A844CCD2415908400573772 /* Frameworks */ = { 29 | isa = PBXFrameworksBuildPhase; 30 | buildActionMask = 2147483647; 31 | files = ( 32 | ); 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXFrameworksBuildPhase section */ 36 | 37 | /* Begin PBXGroup section */ 38 | 6A844CC72415908400573772 = { 39 | isa = PBXGroup; 40 | children = ( 41 | 6A844CD22415908400573772 /* TypoFig */, 42 | 6A844CD12415908400573772 /* Products */, 43 | ); 44 | sourceTree = ""; 45 | }; 46 | 6A844CD12415908400573772 /* Products */ = { 47 | isa = PBXGroup; 48 | children = ( 49 | 6A844CD02415908400573772 /* TypoFig.app */, 50 | ); 51 | name = Products; 52 | sourceTree = ""; 53 | }; 54 | 6A844CD22415908400573772 /* TypoFig */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | 6A844CD32415908400573772 /* AppDelegate.h */, 58 | 6A844CD42415908400573772 /* AppDelegate.m */, 59 | 6A844CD62415908600573772 /* Assets.xcassets */, 60 | 6A844CD82415908600573772 /* MainMenu.xib */, 61 | 6A844CDB2415908600573772 /* Info.plist */, 62 | 6A844CDC2415908600573772 /* main.m */, 63 | 6A844CDE2415908600573772 /* TypoFig.entitlements */, 64 | ); 65 | path = TypoFig; 66 | sourceTree = ""; 67 | }; 68 | /* End PBXGroup section */ 69 | 70 | /* Begin PBXNativeTarget section */ 71 | 6A844CCF2415908400573772 /* TypoFig */ = { 72 | isa = PBXNativeTarget; 73 | buildConfigurationList = 6A844CE12415908600573772 /* Build configuration list for PBXNativeTarget "TypoFig" */; 74 | buildPhases = ( 75 | 6A844CCC2415908400573772 /* Sources */, 76 | 6A844CCD2415908400573772 /* Frameworks */, 77 | 6A844CCE2415908400573772 /* Resources */, 78 | ); 79 | buildRules = ( 80 | ); 81 | dependencies = ( 82 | ); 83 | name = TypoFig; 84 | productName = TypoFig; 85 | productReference = 6A844CD02415908400573772 /* TypoFig.app */; 86 | productType = "com.apple.product-type.application"; 87 | }; 88 | /* End PBXNativeTarget section */ 89 | 90 | /* Begin PBXProject section */ 91 | 6A844CC82415908400573772 /* Project object */ = { 92 | isa = PBXProject; 93 | attributes = { 94 | LastUpgradeCheck = 1130; 95 | ORGANIZATIONNAME = "Rasmus Andersson"; 96 | TargetAttributes = { 97 | 6A844CCF2415908400573772 = { 98 | CreatedOnToolsVersion = 11.3.1; 99 | }; 100 | }; 101 | }; 102 | buildConfigurationList = 6A844CCB2415908400573772 /* Build configuration list for PBXProject "TypoFig" */; 103 | compatibilityVersion = "Xcode 9.3"; 104 | developmentRegion = en; 105 | hasScannedForEncodings = 0; 106 | knownRegions = ( 107 | en, 108 | Base, 109 | ); 110 | mainGroup = 6A844CC72415908400573772; 111 | productRefGroup = 6A844CD12415908400573772 /* Products */; 112 | projectDirPath = ""; 113 | projectRoot = ""; 114 | targets = ( 115 | 6A844CCF2415908400573772 /* TypoFig */, 116 | ); 117 | }; 118 | /* End PBXProject section */ 119 | 120 | /* Begin PBXResourcesBuildPhase section */ 121 | 6A844CCE2415908400573772 /* Resources */ = { 122 | isa = PBXResourcesBuildPhase; 123 | buildActionMask = 2147483647; 124 | files = ( 125 | 6A844CD72415908600573772 /* Assets.xcassets in Resources */, 126 | 6A844CDA2415908600573772 /* MainMenu.xib in Resources */, 127 | ); 128 | runOnlyForDeploymentPostprocessing = 0; 129 | }; 130 | /* End PBXResourcesBuildPhase section */ 131 | 132 | /* Begin PBXSourcesBuildPhase section */ 133 | 6A844CCC2415908400573772 /* Sources */ = { 134 | isa = PBXSourcesBuildPhase; 135 | buildActionMask = 2147483647; 136 | files = ( 137 | 6A844CDD2415908600573772 /* main.m in Sources */, 138 | 6A844CD52415908400573772 /* AppDelegate.m in Sources */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | /* End PBXSourcesBuildPhase section */ 143 | 144 | /* Begin PBXVariantGroup section */ 145 | 6A844CD82415908600573772 /* MainMenu.xib */ = { 146 | isa = PBXVariantGroup; 147 | children = ( 148 | 6A844CD92415908600573772 /* Base */, 149 | ); 150 | name = MainMenu.xib; 151 | sourceTree = ""; 152 | }; 153 | /* End PBXVariantGroup section */ 154 | 155 | /* Begin XCBuildConfiguration section */ 156 | 6A844CDF2415908600573772 /* Debug */ = { 157 | isa = XCBuildConfiguration; 158 | buildSettings = { 159 | ALWAYS_SEARCH_USER_PATHS = NO; 160 | CLANG_ANALYZER_NONNULL = YES; 161 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 162 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 163 | CLANG_CXX_LIBRARY = "libc++"; 164 | CLANG_ENABLE_MODULES = YES; 165 | CLANG_ENABLE_OBJC_ARC = YES; 166 | CLANG_ENABLE_OBJC_WEAK = YES; 167 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 168 | CLANG_WARN_BOOL_CONVERSION = YES; 169 | CLANG_WARN_COMMA = YES; 170 | CLANG_WARN_CONSTANT_CONVERSION = YES; 171 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 172 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 173 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 174 | CLANG_WARN_EMPTY_BODY = YES; 175 | CLANG_WARN_ENUM_CONVERSION = YES; 176 | CLANG_WARN_INFINITE_RECURSION = YES; 177 | CLANG_WARN_INT_CONVERSION = YES; 178 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 179 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 180 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 181 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 182 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 183 | CLANG_WARN_STRICT_PROTOTYPES = YES; 184 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 185 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 186 | CLANG_WARN_UNREACHABLE_CODE = YES; 187 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 188 | COPY_PHASE_STRIP = NO; 189 | DEBUG_INFORMATION_FORMAT = dwarf; 190 | ENABLE_STRICT_OBJC_MSGSEND = YES; 191 | ENABLE_TESTABILITY = YES; 192 | GCC_C_LANGUAGE_STANDARD = gnu11; 193 | GCC_DYNAMIC_NO_PIC = NO; 194 | GCC_NO_COMMON_BLOCKS = YES; 195 | GCC_OPTIMIZATION_LEVEL = 0; 196 | GCC_PREPROCESSOR_DEFINITIONS = ( 197 | "DEBUG=1", 198 | "$(inherited)", 199 | ); 200 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 201 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 202 | GCC_WARN_UNDECLARED_SELECTOR = YES; 203 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 204 | GCC_WARN_UNUSED_FUNCTION = YES; 205 | GCC_WARN_UNUSED_VARIABLE = YES; 206 | MACOSX_DEPLOYMENT_TARGET = 10.14; 207 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 208 | MTL_FAST_MATH = YES; 209 | ONLY_ACTIVE_ARCH = YES; 210 | SDKROOT = macosx; 211 | }; 212 | name = Debug; 213 | }; 214 | 6A844CE02415908600573772 /* Release */ = { 215 | isa = XCBuildConfiguration; 216 | buildSettings = { 217 | ALWAYS_SEARCH_USER_PATHS = NO; 218 | CLANG_ANALYZER_NONNULL = YES; 219 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 220 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 221 | CLANG_CXX_LIBRARY = "libc++"; 222 | CLANG_ENABLE_MODULES = YES; 223 | CLANG_ENABLE_OBJC_ARC = YES; 224 | CLANG_ENABLE_OBJC_WEAK = YES; 225 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 226 | CLANG_WARN_BOOL_CONVERSION = YES; 227 | CLANG_WARN_COMMA = YES; 228 | CLANG_WARN_CONSTANT_CONVERSION = YES; 229 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 230 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 231 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 232 | CLANG_WARN_EMPTY_BODY = YES; 233 | CLANG_WARN_ENUM_CONVERSION = YES; 234 | CLANG_WARN_INFINITE_RECURSION = YES; 235 | CLANG_WARN_INT_CONVERSION = YES; 236 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 237 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 238 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 239 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 240 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 241 | CLANG_WARN_STRICT_PROTOTYPES = YES; 242 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 243 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 244 | CLANG_WARN_UNREACHABLE_CODE = YES; 245 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 246 | COPY_PHASE_STRIP = NO; 247 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 248 | ENABLE_NS_ASSERTIONS = NO; 249 | ENABLE_STRICT_OBJC_MSGSEND = YES; 250 | GCC_C_LANGUAGE_STANDARD = gnu11; 251 | GCC_NO_COMMON_BLOCKS = YES; 252 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 253 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 254 | GCC_WARN_UNDECLARED_SELECTOR = YES; 255 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 256 | GCC_WARN_UNUSED_FUNCTION = YES; 257 | GCC_WARN_UNUSED_VARIABLE = YES; 258 | MACOSX_DEPLOYMENT_TARGET = 10.14; 259 | MTL_ENABLE_DEBUG_INFO = NO; 260 | MTL_FAST_MATH = YES; 261 | SDKROOT = macosx; 262 | }; 263 | name = Release; 264 | }; 265 | 6A844CE22415908600573772 /* Debug */ = { 266 | isa = XCBuildConfiguration; 267 | buildSettings = { 268 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 269 | CODE_SIGN_ENTITLEMENTS = TypoFig/TypoFig.entitlements; 270 | CODE_SIGN_STYLE = Automatic; 271 | COMBINE_HIDPI_IMAGES = YES; 272 | CURRENT_PROJECT_VERSION = 2; 273 | DEVELOPMENT_TEAM = 2JS2795PX7; 274 | INFOPLIST_FILE = TypoFig/Info.plist; 275 | LD_RUNPATH_SEARCH_PATHS = ( 276 | "$(inherited)", 277 | "@executable_path/../Frameworks", 278 | ); 279 | PRODUCT_BUNDLE_IDENTIFIER = me.rsms.TypoFig; 280 | PRODUCT_NAME = "$(TARGET_NAME)"; 281 | }; 282 | name = Debug; 283 | }; 284 | 6A844CE32415908600573772 /* Release */ = { 285 | isa = XCBuildConfiguration; 286 | buildSettings = { 287 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 288 | CODE_SIGN_ENTITLEMENTS = TypoFig/TypoFig.entitlements; 289 | CODE_SIGN_STYLE = Automatic; 290 | COMBINE_HIDPI_IMAGES = YES; 291 | CURRENT_PROJECT_VERSION = 2; 292 | DEVELOPMENT_TEAM = 2JS2795PX7; 293 | INFOPLIST_FILE = TypoFig/Info.plist; 294 | LD_RUNPATH_SEARCH_PATHS = ( 295 | "$(inherited)", 296 | "@executable_path/../Frameworks", 297 | ); 298 | PRODUCT_BUNDLE_IDENTIFIER = me.rsms.TypoFig; 299 | PRODUCT_NAME = "$(TARGET_NAME)"; 300 | }; 301 | name = Release; 302 | }; 303 | /* End XCBuildConfiguration section */ 304 | 305 | /* Begin XCConfigurationList section */ 306 | 6A844CCB2415908400573772 /* Build configuration list for PBXProject "TypoFig" */ = { 307 | isa = XCConfigurationList; 308 | buildConfigurations = ( 309 | 6A844CDF2415908600573772 /* Debug */, 310 | 6A844CE02415908600573772 /* Release */, 311 | ); 312 | defaultConfigurationIsVisible = 0; 313 | defaultConfigurationName = Release; 314 | }; 315 | 6A844CE12415908600573772 /* Build configuration list for PBXNativeTarget "TypoFig" */ = { 316 | isa = XCConfigurationList; 317 | buildConfigurations = ( 318 | 6A844CE22415908600573772 /* Debug */, 319 | 6A844CE32415908600573772 /* Release */, 320 | ); 321 | defaultConfigurationIsVisible = 0; 322 | defaultConfigurationName = Release; 323 | }; 324 | /* End XCConfigurationList section */ 325 | }; 326 | rootObject = 6A844CC82415908400573772 /* Project object */; 327 | } 328 | -------------------------------------------------------------------------------- /TypoFig/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | Default 540 | 541 | 542 | 543 | 544 | 545 | 546 | Left to Right 547 | 548 | 549 | 550 | 551 | 552 | 553 | Right to Left 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | Default 565 | 566 | 567 | 568 | 569 | 570 | 571 | Left to Right 572 | 573 | 574 | 575 | 576 | 577 | 578 | Right to Left 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | --------------------------------------------------------------------------------