Created
August 6, 2013 21:33
-
-
Save jessecurry/6168893 to your computer and use it in GitHub Desktop.
An example of semantic font definitions. Used to more easily adhere to (and update) a style guide.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Base Fonts | |
#define FONT_GIRL_SCOUTS_SEMIBOLD(x) [UIFont fontWithName: @"Omnes_GirlScouts-Semibold" size: (x)] | |
#define FONT_GIRL_SCOUTS_MEDIUM(x) [UIFont fontWithName: @"Omnes_GirlScouts-Medium" size: (x)] | |
// Semantic Fonts | |
#define FONT_CELL_TEXT_LABEL FONT_GIRL_SCOUTS_MEDIUM(17.0) | |
#define FONT_CELL_DETAIL_TEXT_LABEL FONT_GIRL_SCOUTS_MEDIUM(14.0) | |
#define FONT_ON_SCREEN_TEXT FONT_GIRL_SCOUTS_MEDIUM(15.0) | |
#define FONT_ON_SCREEN_TEXT_SMALL FONT_GIRL_SCOUTS_MEDIUM(13.0) | |
#define FONT_BUTTON FONT_GIRL_SCOUTS_SEMIBOLD(15.0) | |
#define FONT_BUTTON_SMALL FONT_GIRL_SCOUTS_SEMIBOLD(13.0) | |
#define FONT_BUTTON_LARGE FONT_GIRL_SCOUTS_SEMIBOLD(17.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment