https://github.com/intrepidpursuits/ipcustomfontlabel
https://github.com/intrepidpursuits/ipcustomfontlabel
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/intrepidpursuits/ipcustomfontlabel
- Owner: IntrepidPursuits
- Created: 2013-05-08T18:06:05.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-08T19:56:22.000Z (about 13 years ago)
- Last Synced: 2025-03-29T04:47:51.516Z (about 1 year ago)
- Language: Objective-C
- Size: 116 KB
- Stars: 0
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
##IPCustomFontLabel
1. Add your custom font to the project. [See here](http://jaysonlane.net/2012/07/using-custom-fonts-on-iphone-ipad/) for instructions.
2. Add `IPCustomFontLabel.h` and `IPCustomFontLabel.m` to your project.
3. Select your label in interface builder, and navigate to the identity inspector.
4. Set the "Custom Class" to `IPCustomFontLabel`

5. Under "User Defined Runtime Attributes", set the properties you wish to modify.

##Available properties:
| keyPath | type | value |
| -------------- | ------------ | ---------------------------------------- |
| `fontFamily` | String | The desired PostScript font family name |
| `shadowColor` | Color | Color of text shadow |
| `shadowOffset` | Size | Offset of the text shadow |