├── .gitignore ├── LICENSE ├── README.md ├── fonts.gif ├── fontsizing.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── fontsizing ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76@2x-1.png │ │ ├── Icon-77.png │ │ ├── Icon-83.5@2x-1.png │ │ ├── Icon-Notification-1.png │ │ ├── Icon-Notification@2x-1.png │ │ ├── Icon-Notification@2x.png │ │ ├── Icon-Notification@3x.png │ │ ├── Icon-Small-40@2x-1.png │ │ ├── Icon-Small-40@2x.png │ │ ├── Icon-Small-40@3x.png │ │ ├── Icon-Small-41.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x-1.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ └── iTunesArtwork@1x.png │ ├── Contents.json │ ├── f-logo.imageset │ │ ├── Contents.json │ │ ├── f-logo@2x.png │ │ └── f-logo@3x.png │ ├── fancyTeal.colorset │ │ └── Contents.json │ ├── launch-background.imageset │ │ ├── Contents.json │ │ ├── launch-background@2x.png │ │ └── launch-background@3x.png │ └── lightBlue.colorset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── FontTestingView.swift ├── Info.plist ├── TextStyleLabel.swift ├── UIFont+Debug.swift ├── UIFontTextStyle+CustomFont.swift └── ViewController.swift ├── fontsizingUITests ├── Info.plist └── fontsizingUITests.swift ├── gifit.sh ├── recipes-logo-128.png └── traboule-logo-square-160.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots/**/*.png 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2018 Dave Lyon, Traboule Software LLC. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | 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 THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Font Size Tester for iOS Apps 4 | 5 | A quick way to test out a resizable font stack at all sizes via UI testing. For more info, see our [UIFontMetrics guide over at iOS Dev Recipes](https://www.iosdev.recipes/fonts/ui-font-metrics-and-resizable-text/). 6 | 7 | 8 | ## Installation: 9 | 10 | Clone the repo, open the xcodeproj and run in the simulator 11 | 12 | ## Usage: 13 | 14 | Change the fonts listed in [UIFontTextStyle+CustomFont.swift](https://github.com/davelyon/ios-font-size-tester/blob/master/fontsizing/UIFontTextStyle%2BCustomFont.swift#L3-L18) to your preferences, and then run the app. You can generate a set of screenshots matching all content sizes by running the tests included with the project. 15 | 16 | 17 | 18 | Generate a gif like this via the included script: `./gifit.sh` (Requires imagemagick) 19 | 20 | ## Supported By: 21 | 22 | iOS Dev Recipes and related open source projects are maintained by [Dave Lyon](http://davelyon.net/) and [Traboule Software](https://www.traboulesoftware.com/). 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /fonts.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fonts.gif -------------------------------------------------------------------------------- /fontsizing.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D5706BF320CC40E700EE6F96 /* fontsizingUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5706BF220CC40E700EE6F96 /* fontsizingUITests.swift */; }; 11 | D58470D320BF8859006077F3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D58470D220BF8859006077F3 /* AppDelegate.swift */; }; 12 | D58470D520BF8859006077F3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D58470D420BF8859006077F3 /* ViewController.swift */; }; 13 | D58470D820BF8859006077F3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D58470D620BF8859006077F3 /* Main.storyboard */; }; 14 | D58470DA20BF8859006077F3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D58470D920BF8859006077F3 /* Assets.xcassets */; }; 15 | D58470DD20BF8859006077F3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D58470DB20BF8859006077F3 /* LaunchScreen.storyboard */; }; 16 | D5AFDA1020CB48D200386DE2 /* UIFont+Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5AFDA0F20CB48D200386DE2 /* UIFont+Debug.swift */; }; 17 | D5AFDA1220CB48F900386DE2 /* UIFontTextStyle+CustomFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5AFDA1120CB48F900386DE2 /* UIFontTextStyle+CustomFont.swift */; }; 18 | D5AFDA1420CB492800386DE2 /* FontTestingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5AFDA1320CB492800386DE2 /* FontTestingView.swift */; }; 19 | D5AFDA1620CB496200386DE2 /* TextStyleLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5AFDA1520CB496200386DE2 /* TextStyleLabel.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | D5706BF520CC40E700EE6F96 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D58470C720BF8858006077F3 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = D58470CE20BF8858006077F3; 28 | remoteInfo = fontsizing; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | D5706BF020CC40E700EE6F96 /* fontsizingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = fontsizingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | D5706BF220CC40E700EE6F96 /* fontsizingUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = fontsizingUITests.swift; sourceTree = ""; }; 35 | D5706BF420CC40E700EE6F96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | D58470CF20BF8859006077F3 /* fontsizing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = fontsizing.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | D58470D220BF8859006077F3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | D58470D420BF8859006077F3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | D58470D720BF8859006077F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | D58470D920BF8859006077F3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 41 | D58470DC20BF8859006077F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 42 | D58470DE20BF8859006077F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | D5AFDA0F20CB48D200386DE2 /* UIFont+Debug.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIFont+Debug.swift"; sourceTree = ""; }; 44 | D5AFDA1120CB48F900386DE2 /* UIFontTextStyle+CustomFont.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIFontTextStyle+CustomFont.swift"; sourceTree = ""; }; 45 | D5AFDA1320CB492800386DE2 /* FontTestingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FontTestingView.swift; sourceTree = ""; }; 46 | D5AFDA1520CB496200386DE2 /* TextStyleLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextStyleLabel.swift; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | D5706BED20CC40E700EE6F96 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | D58470CC20BF8858006077F3 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | D5706BF120CC40E700EE6F96 /* fontsizingUITests */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | D5706BF220CC40E700EE6F96 /* fontsizingUITests.swift */, 71 | D5706BF420CC40E700EE6F96 /* Info.plist */, 72 | ); 73 | path = fontsizingUITests; 74 | sourceTree = ""; 75 | }; 76 | D58470C620BF8858006077F3 = { 77 | isa = PBXGroup; 78 | children = ( 79 | D58470D120BF8859006077F3 /* fontsizing */, 80 | D5706BF120CC40E700EE6F96 /* fontsizingUITests */, 81 | D58470D020BF8859006077F3 /* Products */, 82 | ); 83 | sourceTree = ""; 84 | }; 85 | D58470D020BF8859006077F3 /* Products */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | D58470CF20BF8859006077F3 /* fontsizing.app */, 89 | D5706BF020CC40E700EE6F96 /* fontsizingUITests.xctest */, 90 | ); 91 | name = Products; 92 | sourceTree = ""; 93 | }; 94 | D58470D120BF8859006077F3 /* fontsizing */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | D58470D220BF8859006077F3 /* AppDelegate.swift */, 98 | D58470D420BF8859006077F3 /* ViewController.swift */, 99 | D58470D620BF8859006077F3 /* Main.storyboard */, 100 | D58470D920BF8859006077F3 /* Assets.xcassets */, 101 | D58470DB20BF8859006077F3 /* LaunchScreen.storyboard */, 102 | D58470DE20BF8859006077F3 /* Info.plist */, 103 | D5AFDA0F20CB48D200386DE2 /* UIFont+Debug.swift */, 104 | D5AFDA1120CB48F900386DE2 /* UIFontTextStyle+CustomFont.swift */, 105 | D5AFDA1320CB492800386DE2 /* FontTestingView.swift */, 106 | D5AFDA1520CB496200386DE2 /* TextStyleLabel.swift */, 107 | ); 108 | path = fontsizing; 109 | sourceTree = ""; 110 | }; 111 | /* End PBXGroup section */ 112 | 113 | /* Begin PBXNativeTarget section */ 114 | D5706BEF20CC40E700EE6F96 /* fontsizingUITests */ = { 115 | isa = PBXNativeTarget; 116 | buildConfigurationList = D5706BF920CC40E700EE6F96 /* Build configuration list for PBXNativeTarget "fontsizingUITests" */; 117 | buildPhases = ( 118 | D5706BEC20CC40E700EE6F96 /* Sources */, 119 | D5706BED20CC40E700EE6F96 /* Frameworks */, 120 | D5706BEE20CC40E700EE6F96 /* Resources */, 121 | ); 122 | buildRules = ( 123 | ); 124 | dependencies = ( 125 | D5706BF620CC40E700EE6F96 /* PBXTargetDependency */, 126 | ); 127 | name = fontsizingUITests; 128 | productName = fontsizingUITests; 129 | productReference = D5706BF020CC40E700EE6F96 /* fontsizingUITests.xctest */; 130 | productType = "com.apple.product-type.bundle.ui-testing"; 131 | }; 132 | D58470CE20BF8858006077F3 /* fontsizing */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = D58470E120BF8859006077F3 /* Build configuration list for PBXNativeTarget "fontsizing" */; 135 | buildPhases = ( 136 | D58470CB20BF8858006077F3 /* Sources */, 137 | D58470CC20BF8858006077F3 /* Frameworks */, 138 | D58470CD20BF8858006077F3 /* Resources */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = fontsizing; 145 | productName = fontsizing; 146 | productReference = D58470CF20BF8859006077F3 /* fontsizing.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | D58470C720BF8858006077F3 /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastSwiftUpdateCheck = 1000; 156 | LastUpgradeCheck = 0930; 157 | ORGANIZATIONNAME = davelyon; 158 | TargetAttributes = { 159 | D5706BEF20CC40E700EE6F96 = { 160 | CreatedOnToolsVersion = 10.0; 161 | ProvisioningStyle = Manual; 162 | TestTargetID = D58470CE20BF8858006077F3; 163 | }; 164 | D58470CE20BF8858006077F3 = { 165 | CreatedOnToolsVersion = 9.2; 166 | ProvisioningStyle = Manual; 167 | }; 168 | }; 169 | }; 170 | buildConfigurationList = D58470CA20BF8858006077F3 /* Build configuration list for PBXProject "fontsizing" */; 171 | compatibilityVersion = "Xcode 8.0"; 172 | developmentRegion = en; 173 | hasScannedForEncodings = 0; 174 | knownRegions = ( 175 | en, 176 | Base, 177 | ); 178 | mainGroup = D58470C620BF8858006077F3; 179 | productRefGroup = D58470D020BF8859006077F3 /* Products */; 180 | projectDirPath = ""; 181 | projectRoot = ""; 182 | targets = ( 183 | D58470CE20BF8858006077F3 /* fontsizing */, 184 | D5706BEF20CC40E700EE6F96 /* fontsizingUITests */, 185 | ); 186 | }; 187 | /* End PBXProject section */ 188 | 189 | /* Begin PBXResourcesBuildPhase section */ 190 | D5706BEE20CC40E700EE6F96 /* Resources */ = { 191 | isa = PBXResourcesBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | ); 195 | runOnlyForDeploymentPostprocessing = 0; 196 | }; 197 | D58470CD20BF8858006077F3 /* Resources */ = { 198 | isa = PBXResourcesBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | D58470DD20BF8859006077F3 /* LaunchScreen.storyboard in Resources */, 202 | D58470DA20BF8859006077F3 /* Assets.xcassets in Resources */, 203 | D58470D820BF8859006077F3 /* Main.storyboard in Resources */, 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | }; 207 | /* End PBXResourcesBuildPhase section */ 208 | 209 | /* Begin PBXSourcesBuildPhase section */ 210 | D5706BEC20CC40E700EE6F96 /* Sources */ = { 211 | isa = PBXSourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | D5706BF320CC40E700EE6F96 /* fontsizingUITests.swift in Sources */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | D58470CB20BF8858006077F3 /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | D5AFDA1020CB48D200386DE2 /* UIFont+Debug.swift in Sources */, 223 | D5AFDA1420CB492800386DE2 /* FontTestingView.swift in Sources */, 224 | D58470D520BF8859006077F3 /* ViewController.swift in Sources */, 225 | D5AFDA1220CB48F900386DE2 /* UIFontTextStyle+CustomFont.swift in Sources */, 226 | D58470D320BF8859006077F3 /* AppDelegate.swift in Sources */, 227 | D5AFDA1620CB496200386DE2 /* TextStyleLabel.swift in Sources */, 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | /* End PBXSourcesBuildPhase section */ 232 | 233 | /* Begin PBXTargetDependency section */ 234 | D5706BF620CC40E700EE6F96 /* PBXTargetDependency */ = { 235 | isa = PBXTargetDependency; 236 | target = D58470CE20BF8858006077F3 /* fontsizing */; 237 | targetProxy = D5706BF520CC40E700EE6F96 /* PBXContainerItemProxy */; 238 | }; 239 | /* End PBXTargetDependency section */ 240 | 241 | /* Begin PBXVariantGroup section */ 242 | D58470D620BF8859006077F3 /* Main.storyboard */ = { 243 | isa = PBXVariantGroup; 244 | children = ( 245 | D58470D720BF8859006077F3 /* Base */, 246 | ); 247 | name = Main.storyboard; 248 | sourceTree = ""; 249 | }; 250 | D58470DB20BF8859006077F3 /* LaunchScreen.storyboard */ = { 251 | isa = PBXVariantGroup; 252 | children = ( 253 | D58470DC20BF8859006077F3 /* Base */, 254 | ); 255 | name = LaunchScreen.storyboard; 256 | sourceTree = ""; 257 | }; 258 | /* End PBXVariantGroup section */ 259 | 260 | /* Begin XCBuildConfiguration section */ 261 | D5706BF720CC40E700EE6F96 /* Debug */ = { 262 | isa = XCBuildConfiguration; 263 | buildSettings = { 264 | CLANG_ENABLE_OBJC_WEAK = YES; 265 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 266 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 267 | CODE_SIGN_STYLE = Manual; 268 | DEVELOPMENT_TEAM = ""; 269 | INFOPLIST_FILE = fontsizingUITests/Info.plist; 270 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 271 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 272 | PRODUCT_BUNDLE_IDENTIFIER = "recipes.iosdev.ios-font-tester-ui-test"; 273 | PRODUCT_NAME = "$(TARGET_NAME)"; 274 | PROVISIONING_PROFILE_SPECIFIER = ""; 275 | SWIFT_VERSION = 4.2; 276 | TARGETED_DEVICE_FAMILY = "1,2"; 277 | TEST_TARGET_NAME = fontsizing; 278 | }; 279 | name = Debug; 280 | }; 281 | D5706BF820CC40E700EE6F96 /* Release */ = { 282 | isa = XCBuildConfiguration; 283 | buildSettings = { 284 | CLANG_ENABLE_OBJC_WEAK = YES; 285 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 286 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 287 | CODE_SIGN_STYLE = Manual; 288 | DEVELOPMENT_TEAM = ""; 289 | INFOPLIST_FILE = fontsizingUITests/Info.plist; 290 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 291 | PRODUCT_BUNDLE_IDENTIFIER = "recipes.iosdev.ios-font-tester-ui-test"; 292 | PRODUCT_NAME = "$(TARGET_NAME)"; 293 | PROVISIONING_PROFILE_SPECIFIER = ""; 294 | SWIFT_VERSION = 4.2; 295 | TARGETED_DEVICE_FAMILY = "1,2"; 296 | TEST_TARGET_NAME = fontsizing; 297 | }; 298 | name = Release; 299 | }; 300 | D58470DF20BF8859006077F3 /* Debug */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_ANALYZER_NONNULL = YES; 305 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 307 | CLANG_CXX_LIBRARY = "libc++"; 308 | CLANG_ENABLE_MODULES = YES; 309 | CLANG_ENABLE_OBJC_ARC = YES; 310 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 311 | CLANG_WARN_BOOL_CONVERSION = YES; 312 | CLANG_WARN_COMMA = YES; 313 | CLANG_WARN_CONSTANT_CONVERSION = YES; 314 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 316 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 329 | CLANG_WARN_UNREACHABLE_CODE = YES; 330 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 331 | CODE_SIGN_IDENTITY = "iPhone Developer"; 332 | COPY_PHASE_STRIP = NO; 333 | DEBUG_INFORMATION_FORMAT = dwarf; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | ENABLE_TESTABILITY = YES; 336 | GCC_C_LANGUAGE_STANDARD = gnu11; 337 | GCC_DYNAMIC_NO_PIC = NO; 338 | GCC_NO_COMMON_BLOCKS = YES; 339 | GCC_OPTIMIZATION_LEVEL = 0; 340 | GCC_PREPROCESSOR_DEFINITIONS = ( 341 | "DEBUG=1", 342 | "$(inherited)", 343 | ); 344 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 346 | GCC_WARN_UNDECLARED_SELECTOR = YES; 347 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 348 | GCC_WARN_UNUSED_FUNCTION = YES; 349 | GCC_WARN_UNUSED_VARIABLE = YES; 350 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 351 | MTL_ENABLE_DEBUG_INFO = YES; 352 | ONLY_ACTIVE_ARCH = YES; 353 | SDKROOT = iphoneos; 354 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 355 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 356 | }; 357 | name = Debug; 358 | }; 359 | D58470E020BF8859006077F3 /* Release */ = { 360 | isa = XCBuildConfiguration; 361 | buildSettings = { 362 | ALWAYS_SEARCH_USER_PATHS = NO; 363 | CLANG_ANALYZER_NONNULL = YES; 364 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 376 | CLANG_WARN_EMPTY_BODY = YES; 377 | CLANG_WARN_ENUM_CONVERSION = YES; 378 | CLANG_WARN_INFINITE_RECURSION = YES; 379 | CLANG_WARN_INT_CONVERSION = YES; 380 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 381 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 382 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 383 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 384 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 385 | CLANG_WARN_STRICT_PROTOTYPES = YES; 386 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 387 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 388 | CLANG_WARN_UNREACHABLE_CODE = YES; 389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 390 | CODE_SIGN_IDENTITY = "iPhone Developer"; 391 | COPY_PHASE_STRIP = NO; 392 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 393 | ENABLE_NS_ASSERTIONS = NO; 394 | ENABLE_STRICT_OBJC_MSGSEND = YES; 395 | GCC_C_LANGUAGE_STANDARD = gnu11; 396 | GCC_NO_COMMON_BLOCKS = YES; 397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 398 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 399 | GCC_WARN_UNDECLARED_SELECTOR = YES; 400 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 401 | GCC_WARN_UNUSED_FUNCTION = YES; 402 | GCC_WARN_UNUSED_VARIABLE = YES; 403 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 404 | MTL_ENABLE_DEBUG_INFO = NO; 405 | SDKROOT = iphoneos; 406 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 407 | VALIDATE_PRODUCT = YES; 408 | }; 409 | name = Release; 410 | }; 411 | D58470E220BF8859006077F3 /* Debug */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 415 | CODE_SIGN_STYLE = Manual; 416 | DEVELOPMENT_TEAM = ""; 417 | INFOPLIST_FILE = fontsizing/Info.plist; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 419 | PRODUCT_BUNDLE_IDENTIFIER = "recipes.iosdev.ios-font-size-tester"; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | PROVISIONING_PROFILE_SPECIFIER = ""; 422 | SWIFT_VERSION = 4.0; 423 | TARGETED_DEVICE_FAMILY = "1,2"; 424 | }; 425 | name = Debug; 426 | }; 427 | D58470E320BF8859006077F3 /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 431 | CODE_SIGN_STYLE = Manual; 432 | DEVELOPMENT_TEAM = ""; 433 | INFOPLIST_FILE = fontsizing/Info.plist; 434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 435 | PRODUCT_BUNDLE_IDENTIFIER = "recipes.iosdev.ios-font-size-tester"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | PROVISIONING_PROFILE_SPECIFIER = ""; 438 | SWIFT_VERSION = 4.0; 439 | TARGETED_DEVICE_FAMILY = "1,2"; 440 | }; 441 | name = Release; 442 | }; 443 | /* End XCBuildConfiguration section */ 444 | 445 | /* Begin XCConfigurationList section */ 446 | D5706BF920CC40E700EE6F96 /* Build configuration list for PBXNativeTarget "fontsizingUITests" */ = { 447 | isa = XCConfigurationList; 448 | buildConfigurations = ( 449 | D5706BF720CC40E700EE6F96 /* Debug */, 450 | D5706BF820CC40E700EE6F96 /* Release */, 451 | ); 452 | defaultConfigurationIsVisible = 0; 453 | defaultConfigurationName = Release; 454 | }; 455 | D58470CA20BF8858006077F3 /* Build configuration list for PBXProject "fontsizing" */ = { 456 | isa = XCConfigurationList; 457 | buildConfigurations = ( 458 | D58470DF20BF8859006077F3 /* Debug */, 459 | D58470E020BF8859006077F3 /* Release */, 460 | ); 461 | defaultConfigurationIsVisible = 0; 462 | defaultConfigurationName = Release; 463 | }; 464 | D58470E120BF8859006077F3 /* Build configuration list for PBXNativeTarget "fontsizing" */ = { 465 | isa = XCConfigurationList; 466 | buildConfigurations = ( 467 | D58470E220BF8859006077F3 /* Debug */, 468 | D58470E320BF8859006077F3 /* Release */, 469 | ); 470 | defaultConfigurationIsVisible = 0; 471 | defaultConfigurationName = Release; 472 | }; 473 | /* End XCConfigurationList section */ 474 | }; 475 | rootObject = D58470C720BF8858006077F3 /* Project object */; 476 | } 477 | -------------------------------------------------------------------------------- /fontsizing.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /fontsizing.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /fontsizing/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | @UIApplicationMain 4 | class AppDelegate: UIResponder, UIApplicationDelegate { 5 | 6 | var window: UIWindow? 7 | 8 | 9 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 10 | // Override point for customization after application launch. 11 | UIFont.showAllFonts() 12 | return true 13 | } 14 | 15 | func applicationWillResignActive(_ application: UIApplication) { 16 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 17 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 18 | } 19 | 20 | func applicationDidEnterBackground(_ application: UIApplication) { 21 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 22 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 23 | } 24 | 25 | func applicationWillEnterForeground(_ application: UIApplication) { 26 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 27 | } 28 | 29 | func applicationDidBecomeActive(_ application: UIApplication) { 30 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 31 | } 32 | 33 | func applicationWillTerminate(_ application: UIApplication) { 34 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 35 | } 36 | 37 | 38 | } 39 | 40 | 41 | func genericResizableFont() -> UIFont { 42 | // Where size is your own, preferred "Default" font size for UIContentSizeCategoryLarge 43 | let customFont = UIFont(name: "Helvetica", size: 17.0)! 44 | 45 | return UIFontMetrics.default.scaledFont(for: customFont) 46 | 47 | // Alternatively, to scale your fonts like the system does for a UIFontTextStyle (e.g. "title1"), use that style with the font metrics 48 | // return UIFontMetrics(forTextStyle: .title1).scaledFont(for: customFont) 49 | } 50 | -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-Notification@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-Notification@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-Small.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-Small@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-Small@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-Small-40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-Small-40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-Notification-1.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-Notification@2x-1.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "idiom" : "ipad", 71 | "size" : "29x29", 72 | "scale" : "1x" 73 | }, 74 | { 75 | "size" : "29x29", 76 | "idiom" : "ipad", 77 | "filename" : "Icon-Small@2x-1.png", 78 | "scale" : "2x" 79 | }, 80 | { 81 | "size" : "40x40", 82 | "idiom" : "ipad", 83 | "filename" : "Icon-Small-41.png", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "size" : "40x40", 88 | "idiom" : "ipad", 89 | "filename" : "Icon-Small-40@2x-1.png", 90 | "scale" : "2x" 91 | }, 92 | { 93 | "size" : "76x76", 94 | "idiom" : "ipad", 95 | "filename" : "Icon-77.png", 96 | "scale" : "1x" 97 | }, 98 | { 99 | "size" : "76x76", 100 | "idiom" : "ipad", 101 | "filename" : "Icon-76@2x-1.png", 102 | "scale" : "2x" 103 | }, 104 | { 105 | "size" : "83.5x83.5", 106 | "idiom" : "ipad", 107 | "filename" : "Icon-83.5@2x-1.png", 108 | "scale" : "2x" 109 | }, 110 | { 111 | "size" : "1024x1024", 112 | "idiom" : "ios-marketing", 113 | "filename" : "iTunesArtwork@1x.png", 114 | "scale" : "1x" 115 | } 116 | ], 117 | "info" : { 118 | "version" : 1, 119 | "author" : "xcode" 120 | } 121 | } -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-76@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-76@2x-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-77.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small-41.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@1x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/f-logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "f-logo@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "f-logo@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/f-logo.imageset/f-logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/f-logo.imageset/f-logo@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/f-logo.imageset/f-logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/f-logo.imageset/f-logo@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/fancyTeal.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x50", 13 | "alpha" : "1.000", 14 | "blue" : "0xC2", 15 | "green" : "0xE3" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/launch-background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "launch-background@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "launch-background@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/launch-background.imageset/launch-background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/launch-background.imageset/launch-background@2x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/launch-background.imageset/launch-background@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/fontsizing/Assets.xcassets/launch-background.imageset/launch-background@3x.png -------------------------------------------------------------------------------- /fontsizing/Assets.xcassets/lightBlue.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x50", 13 | "alpha" : "1.000", 14 | "blue" : "0xFC", 15 | "green" : "0xD7" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /fontsizing/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /fontsizing/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /fontsizing/FontTestingView.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public class FontTestingView: UIStackView { 4 | 5 | private let sizeLabel: UILabel = UILabel() 6 | 7 | public override init(frame: CGRect) { 8 | super.init(frame: frame) 9 | sharedInit() 10 | } 11 | 12 | public required init(coder aDecoder: NSCoder) { 13 | super.init(coder: aDecoder) 14 | sharedInit() 15 | } 16 | 17 | func sharedInit() { 18 | sizeLabel.text = traitCollection.preferredContentSizeCategory.rawValue 19 | sizeLabel.adjustsFontForContentSizeCategory = true 20 | addArrangedSubview(sizeLabel) 21 | 22 | UIFontTextStyle.allStyles.forEach { style in 23 | let label = TextStyleLabel(frame: .zero) 24 | label.textStyle = style 25 | label.text = style.debugDescription 26 | 27 | addArrangedSubview(label) 28 | } 29 | } 30 | 31 | public override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { 32 | super.traitCollectionDidChange(previousTraitCollection) 33 | sizeLabel.text = traitCollection.preferredContentSizeCategory.rawValue 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /fontsizing/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Font Sizing 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /fontsizing/TextStyleLabel.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | /* 4 | A subclass of UILabel intended to by provided font sizing only via 5 | `textStyle`. 6 | 7 | This UILabel will default to resizing based on the content size category. 8 | */ 9 | public class TextStyleLabel: UILabel { 10 | 11 | public var textStyle: UIFontTextStyle = .body { 12 | didSet { 13 | font = textStyle.scaledCustomFont() 14 | adjustsFontForContentSizeCategory = true 15 | } 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fontsizing/UIFont+Debug.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | extension UIFont { 4 | 5 | 6 | #if DEBUG 7 | 8 | static func showAllFonts() { 9 | UIFont.familyNames.forEach { family in 10 | print(family) 11 | print("\t\(UIFont.fontNames(forFamilyName: family).joined(separator: "\n\t"))") 12 | } 13 | } 14 | 15 | #endif 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fontsizing/UIFontTextStyle+CustomFont.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | fileprivate let _largeTitle: (String, CGFloat) = ( "AvenirNext-Heavy", 34.0 ) 4 | 5 | fileprivate let _title1: (String, CGFloat) = ( "AvenirNext-DemiBold", 28.0 ) 6 | fileprivate let _title2: (String, CGFloat) = ( "AvenirNext-Medium", 22.0 ) 7 | fileprivate let _title3: (String, CGFloat) = ( "AvenirNext-Regular", 20.0 ) 8 | 9 | fileprivate let _headline: (String, CGFloat) = ( "AvenirNext-DemiBold", 17.0 ) 10 | fileprivate let _subheadline: (String, CGFloat) = ( "AvenirNext-UltraLight", 17.0 ) 11 | 12 | fileprivate let _body: (String, CGFloat) = ( "AvenirNext-Regular", 17.0 ) 13 | fileprivate let _callout: (String, CGFloat) = ( "AvenirNext-DemiBold", 16.0 ) 14 | 15 | fileprivate let _footnote: (String, CGFloat) = ( "AvenirNext-Regular", 15.0 ) 16 | 17 | fileprivate let _caption1: (String, CGFloat) = ( "AvenirNext-Medium", 13.0 ) 18 | fileprivate let _caption2: (String, CGFloat) = ( "AvenirNext-Regular", 11.0 ) 19 | 20 | extension UIFontTextStyle { 21 | 22 | public static let ultraLargeTitle: UIFontTextStyle = .init(rawValue: "TitleUltraLarge") 23 | 24 | /** 25 | The UIFont metrics for a given font style, useful if you need to do content sizing as well. 26 | */ 27 | var fontMetrics: UIFontMetrics { 28 | return UIFontMetrics(forTextStyle: self) 29 | } 30 | 31 | /** 32 | The scaled custom UIFont for a given text style, optionally scaled per the trait collection 33 | */ 34 | func scaledCustomFont(for traitCollection: UITraitCollection? = nil) -> UIFont { 35 | let (name, size) = UIFontTextStyle.sizeMap[self]! 36 | let customFont = UIFont(name: name, size: size)! 37 | 38 | if let traitCollection = traitCollection { 39 | if let maximumPointSize = maximumPointSize { 40 | return fontMetrics.scaledFont(for: customFont, maximumPointSize: maximumPointSize, compatibleWith: traitCollection) 41 | } 42 | return fontMetrics.scaledFont(for: customFont, compatibleWith: traitCollection) 43 | } 44 | 45 | if let maximumPointSize = maximumPointSize { 46 | return fontMetrics.scaledFont(for: customFont, maximumPointSize: maximumPointSize) 47 | } 48 | 49 | return fontMetrics.scaledFont(for: customFont) 50 | } 51 | 52 | /** 53 | The un-scaled custom UIFont for a given text style 54 | */ 55 | fileprivate var customFont: UIFont { 56 | let (name, size) = UIFontTextStyle.sizeMap[self]! 57 | return UIFont(name: name, size: size)! 58 | } 59 | 60 | /** 61 | (Optionally) Provide the maximum point size by text style 62 | */ 63 | fileprivate var maximumPointSize: CGFloat? { 64 | switch self { 65 | case .largeTitle: return 44.0 66 | default: return nil 67 | } 68 | } 69 | 70 | fileprivate static let sizeMap: [ UIFontTextStyle: (String, CGFloat) ] = [ 71 | .largeTitle: _largeTitle, 72 | .title1: _title1, 73 | .title2: _title2, 74 | .title3: _title3, 75 | .headline: _headline, 76 | .subheadline: _subheadline, 77 | .body: _body, 78 | .callout: _callout, 79 | .footnote: _footnote, 80 | .caption1: _caption1, 81 | .caption2: _caption2, 82 | ] 83 | 84 | static let allStyles: [UIFontTextStyle] = [ 85 | .largeTitle, 86 | .title1, 87 | .title2, 88 | .title3, 89 | .headline, 90 | .subheadline, 91 | .body, 92 | .callout, 93 | .footnote, 94 | .caption1, 95 | .caption2 96 | ] 97 | 98 | var debugDescription: String { 99 | // Drop the `UICTFontTextStyle` prefix 100 | return String(self.rawValue.dropFirst(17)) 101 | } 102 | } 103 | 104 | #if swift(>=4.2) 105 | extension UIFontTextStyle: CaseIterable { 106 | public typealias AllCases = [UIFontTextStyle] 107 | 108 | public static var allCases: AllCases { 109 | return [ 110 | .largeTitle, 111 | .title1, 112 | .title2, 113 | .title3, 114 | .headline, 115 | .subheadline, 116 | .body, 117 | .callout, 118 | .footnote, 119 | .caption1, 120 | .caption2 121 | ] 122 | } 123 | } 124 | #endif 125 | -------------------------------------------------------------------------------- /fontsizing/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // fontsizing 4 | // 5 | // Created by Dave Lyon on 5/30/18. 6 | // Copyright © 2018 davelyon. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Foundation 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | // let extraFeatures: [UIFontDescriptor.AttributeName : Any] = [ 18 | // .featureSettings: [ 19 | // [ 20 | // UIFontDescriptor.FeatureKey.typeIdentifier: 14, 21 | // UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType 22 | // ], 23 | // [ 24 | // UIFontDescriptor.FeatureKey.typeIdentifier: 16, 25 | // UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType 26 | // ], 27 | // [ 28 | // UIFontDescriptor.FeatureKey.typeIdentifier: 12, 29 | // UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType 30 | // ], 31 | // [ 32 | // UIFontDescriptor.FeatureKey.typeIdentifier: 18, 33 | // UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType 34 | // ], 35 | // [ 36 | // UIFontDescriptor.FeatureKey.typeIdentifier: 1, 37 | // UIFontDescriptor.FeatureKey.featureIdentifier: kContextualAlternatesType 38 | // ], 39 | // [ 40 | // UIFontDescriptor.FeatureKey.typeIdentifier: kStylisticAltFourOffSelector, // Open 4 41 | // UIFontDescriptor.FeatureKey.featureIdentifier: kContextualAlternatesType 42 | // ], 43 | // 44 | //// [ 45 | //// UIFontDescriptor.FeatureKey.typeIdentifier: kUpperCaseSmallCapsSelector, 46 | //// UIFontDescriptor.FeatureKey.featureIdentifier: kUpperCaseType 47 | //// ], 48 | // [ 49 | // UIFontDescriptor.FeatureKey.typeIdentifier: kDiagonalFractionsSelector, 50 | // UIFontDescriptor.FeatureKey.featureIdentifier: kFractionsType 51 | // ], 52 | // 53 | //// [ 54 | //// UIFontDescriptor.FeatureKey.typeIdentifier: kUpperCaseSmallCapsSelector, 55 | //// UIFontDescriptor.FeatureKey.featureIdentifier: kLowerCaseType 56 | //// ] 57 | // 58 | // ] 59 | // ] 60 | // 61 | // print(UIFontDescriptor.FeatureKey.typeIdentifier) // CTFeatureSelectorIdentifier 62 | // print(UIFontDescriptor.FeatureKey.featureIdentifier) // CTFeatureTypeIdentifier 63 | // 64 | // print(kStylisticAlternativesType) 65 | // print(kStylisticAltFourteenOnSelector) 66 | // let testString = "A:aa bBdc ɑ ①:00:00 6969 123456789 word 1/2" 67 | // 68 | 69 | 70 | // let specialFont = font.fontDescriptor.addingAttributes(extraFeatures) 71 | // 72 | // let label = UILabel(frame: .zero) 73 | // label.font = UIFont(descriptor: specialFont, size: 0) 74 | // label.text = testString 75 | // 76 | // stackView.addArrangedSubview(label) 77 | // 78 | // let label2 = UILabel(frame: .zero) 79 | // label2.font = font 80 | // label2.text = testString 81 | // 82 | // stackView.addArrangedSubview(label2) 83 | // 84 | // let ref = font as CTFont 85 | // let traits = CTFontCopyTraits(ref) 86 | // let features = CTFontCopyFeatures(ref) 87 | // print(traits) 88 | // print(features) 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /fontsizingUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /fontsizingUITests/fontsizingUITests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | #if swift(>=4.2) 4 | extension UIContentSizeCategory: CaseIterable { 5 | public typealias AllCases = [UIContentSizeCategory] 6 | public static var allCases: AllCases { 7 | return [ 8 | .extraSmall, 9 | .small, 10 | .medium, 11 | .large, // Default 12 | .extraLarge, 13 | .extraExtraLarge, 14 | .extraExtraExtraLarge, 15 | .accessibilityMedium, 16 | .accessibilityLarge, 17 | .accessibilityExtraLarge, 18 | .accessibilityExtraExtraLarge, 19 | .accessibilityExtraExtraExtraLarge, 20 | .unspecified 21 | ] 22 | } 23 | 24 | } 25 | #else 26 | extension UIContentSizeCategory { 27 | public static var allCases: [UIContentSizeCategory] { 28 | return [ 29 | .extraSmall, 30 | .small, 31 | .medium, 32 | .large, // Default 33 | .extraLarge, 34 | .extraExtraLarge, 35 | .extraExtraExtraLarge, 36 | .accessibilityMedium, 37 | .accessibilityLarge, 38 | .accessibilityExtraLarge, 39 | .accessibilityExtraExtraLarge, 40 | .accessibilityExtraExtraExtraLarge, 41 | .unspecified 42 | ] 43 | } 44 | 45 | } 46 | #endif 47 | 48 | class FontSizingUITests: XCTestCase { 49 | 50 | override class var defaultTestSuite: XCTestSuite { 51 | let suite = XCTestSuite.init(forTestCaseClass: FontSizingUITests.self) 52 | 53 | UIContentSizeCategory.allCases.forEach { size in 54 | 55 | let test = FontSizingUITests(selector: #selector(runSnapshot)) 56 | test.contentSizeCategory = size 57 | suite.addTest(test) 58 | } 59 | return suite 60 | } 61 | 62 | var contentSizeCategory: UIContentSizeCategory! 63 | 64 | override func setUp() { 65 | super.setUp() 66 | 67 | continueAfterFailure = false 68 | 69 | let app = XCUIApplication() 70 | 71 | XCTContext.runActivity(named: "set content size category to: \(contentSizeCategory.rawValue)") { _ in 72 | app.launchArguments = [ 73 | "-UIPreferredContentSizeCategoryName", 74 | contentSizeCategory.rawValue, 75 | ] 76 | } 77 | 78 | app.launch() 79 | } 80 | 81 | @objc func runSnapshot() { 82 | XCTContext.runActivity(named: "Font Snapshot: \(contentSizeCategory.rawValue)") { activity in 83 | let screenshot = XCUIScreen.main.screenshot() 84 | let attachment = XCTAttachment(screenshot: screenshot) 85 | attachment.lifetime = .keepAlways 86 | #if swift(>=4.2) 87 | let index = UIContentSizeCategory.allCases.firstIndex(of: contentSizeCategory) ?? 999 88 | #else 89 | let index = UIContentSizeCategory.allCases.index(of: contentSizeCategory) ?? 999 90 | #endif 91 | attachment.name = "\(String(format: "%02d", index))-\(contentSizeCategory.rawValue)" 92 | 93 | activity.add(attachment) 94 | } 95 | } 96 | } 97 | 98 | -------------------------------------------------------------------------------- /gifit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DSTAMP=`date +%Y-%m-%d-%H-%M-%S` 4 | BUILD_OUTPUT_PATH="build/result/$DSTAMP" 5 | ATT_PATH="$BUILD_OUTPUT_PATH/Attachments" 6 | 7 | xcodebuild -scheme fontsizing \ 8 | -resultBundlePath $BUILD_OUTPUT_PATH \ 9 | -destination 'platform=iOS Simulator,name=iPhone 8 Plus' \ 10 | -configuration Debug test \ 11 | -quiet 12 | 13 | # Make a space-separated Bash array 14 | FLIST=($(ls -1 $ATT_PATH | xargs)) 15 | 16 | echo "Converting images to gif, this may take a moment…" 17 | 18 | # `convert` comes with imagemagick, and here we list all of the files we 19 | # gerated, with a delay of 30/100 of a second between each frame, with a final 20 | # output of `fonts.gif` 21 | convert $(printf "$ATT_PATH/%s -delay 31\n" "${FLIST[@]}") fonts.gif 22 | 23 | -------------------------------------------------------------------------------- /recipes-logo-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/recipes-logo-128.png -------------------------------------------------------------------------------- /traboule-logo-square-160.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davelyon/ios-font-size-tester/a49c32cabe510cb86366bc395d0f0367e6bd7868/traboule-logo-square-160.png --------------------------------------------------------------------------------