/TextPath

Primary LanguageSwiftMIT LicenseMIT

TextPath

Platform build

Convert NSAttributedText to CGPath and SVG text path;

Supported attributes are:

  • NSAttributedString.Key.strikethroughStyle
  • NSAttributedString.Key.underlineStyle
  • NSAttributedString.Key.kern
  • NSAttributedString.Key.font
  • NSAttributedString.Key.paragraphStyle
  • Support RTL language
  • Support right alignment texts

Example

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

Installation

To install it, simply add the following line to your Podfile:

pod 'TextPath'

You can also use SPM;

Author

Mehdi Sohrabi, mehdok@gmail.com Heavily based on https://github.com/malczak/TextPaths

License

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

Further Reading