Latest 0.1.0
Homepage https://github.com/Galeas/DCTypography
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform

DCTypography is a simple and user-friendly tool designed for reconciliation of developers and designers :)

With DCTypography you can create a typographic styles when it’s convenient to you, add them to the shared storage and use when needed. You need just specify typographic parameters.

Example 1:

DCTypographyStyle *style = [DCTypographyStyle styleWithName:@"style"];
[style setFont:[UIFont fontWithName:@"Menlo-Regular" size:24]];
[style setForegroundColor:[UIColor redColor]];
[style setBackgroundColor:[UIColor yellowColor]];
[style setTrackingValue:10 fromPhotoshop:NO];
[style setLinespacing:24];
[style setAlignment:NSTextAlignmentCenter];
[DCTypography addStyle:style];
...
[self.label setAttributedText:[DCTypography attributedStringWithContents:@"Lorem ipsum dolor sit amet, consectetur adipiscing elit." styleName:@"style"]];

Result 1:

Result 1

Example 2:

DCTypographyStyle *style1 = [DCTypographyStyle styleWithName:@"style1"];
[style1 setFont:[UIFont systemFontOfSize:10 weight:UIFontWeightBlack]];
[style1 setForegroundColor:[UIColor blueColor]];
[style1 setBackgroundColor:[UIColor greenColor]];
[DCTypography addStyle:style1];
...
[self.lalbel setAttributedText:[DCTypography attributedStringWithContents:@"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla leo neque, lacinia id diam at, porta vestibulum ante. Nulla ut risus rutrum neque bibendum porta. Nulla cursus, mi quis consequat rhoncus, nulla dolor maximus lacus, ut egestas leo libero dictum lacus. In purus elit, tincidunt rutrum nisi sit amet, dictum posuere neque." styleName:@"style1"]];

Result 2:

Result 2

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

DCTypography is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "DCTypography"

Author

Evgeniy Branitsky, [email protected]

License

DCTypography is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DCTypography",
    "version": "0.1.0",
    "summary": "DCTypography is a simple and user-friendly tool designed for reconciliation of developers and designers :)",
    "description": "With DCTypography you can create a typographic styles when it's convenient to you, add them to the shared storage and use when needed. You need just specify typographic parameters.",
    "homepage": "https://github.com/Galeas/DCTypography",
    "license": "MIT",
    "authors": {
        "Evgeniy Branitsky": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Galeas/DCTypography.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This