TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by David Coufal.
A simple library that can calculate the required point size for a font to fit any given string in any given rectangle, maximizing the size of the string (within the specified maximum and minimum point sizes).
This code has been used since 2010 in the Just Big Text product.
To run the example project, clone the repo, and run pod install
from the Example directory first.
DECResizeFontToFitRect is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DECResizeFontToFitRect"
David Coufal, [email protected]
DECResizeFontToFitRect is available under the MIT license. See the LICENSE file for more info.