-
Notifications
You must be signed in to change notification settings - Fork 125
Home
FTCoreText By Fuerte International
- Import CoreText.framework to your project
- Import FTCoreTextView.h
- Create an instance of FTCoreTextView
- Set the styles and the text for the view
##Styles Markup:
- _default: It is the default applied to the whole text. MArkups is not needed on the text
- _page: Divide the text in pages. Respond to markup <_page/>
- _bullet: define styles for bullets.
- _image: define style for images. Respond to markup <_image>imageNameOnBundle.extension</_image>
- _link: define style for links. Respond to markup <_link>link_target|link name</_link>
FTCoreText view is constantly developed by FuerteInt.com. Please drop us an email at open-source@fuerteint.com to let us know you are using this component.
Use of the CoreText framework is granted only for iOS 3.2 and later versions.
Although FTCoreTextView uses an html-like tag syntax all the complex properties of html are not supported. Most of the time this will result as not formatted text but sometimes it can lead to crashes. For instance nested tags are not allowed. There is a self.path reference to draw the text along a specific shape instead the given frame. This feature has been only partially implemented and not tested.
Open Source Initiative OSI - The MIT License (MIT):Licensing [OSI Approved License] The MIT License (MIT)
Copyright (c) 2011 Fuerte International
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.