SheenFigureLegacy
SheenFigureLegacy copied to clipboard
cannot run the library
hello ,, am trying to to use this library for arabic font , but i cant build it or run it to se the result is there any step by step to run this library ,, because it has alot of files missing i already download the freetype files but still not working
please i need some help
Probably you did not configure FreeType. Read the following link: https://github.com/mta452/SheenFigure/issues/1
Ok thanks ,, am able to run the demo app ,, but lets say i have a font and i want to include it my project ,, does it work ?
and what should i do to include this library in my project ? i tried to add it ,, but it gives alot of errors
I had the same problem, you have two choices:
- Use Core Graphics to render the text. or
- Use FreeType.
I used Core Graphics and this is how to include it in your project:
- Open SheenFigure folder, you will find two xcode project, choose SheenFigureCG.
- Build the project by selecting (iOS device) from the schema drop-down list (where you select the simulator) then run it.
- Now you will have libsheenfigure.a file, include this file in your project.
- You will need include the original header files on your project also.
- Go to the your build setting, and add this flag in (Other c flags): -DSF_IOS_CG (For Core Graphics).
- At the end, include the SFLabel folder in your project, you will find it in the demo project.
I followed previous steps to use the library in my project but it gives *Use of undeclared identifier 'SF_BRIDGE' error
could you please help me to fix it
by the way I didn't find SFLable folder in demo project instead I found SSLable folder and I use it
The new version is different, make sure you include PCH content from the sample project to your project
thanks that fix it
but that make my app crash with error in run xcode exc bad access
I am new to Xcode could you help me
It depends on what you are using, make sure you define the constant correctly in the PCH file.
Also there is no need to do what i mentioned inn step 5: "5. Go to the your build setting, and add this flag in (Other c flags): -DSF_IOS_CG (For Core Graphics)."
because you can define that in the PCH file.
I fixed the error
thank you very much
Zainab
Hi i am new on iphone , i face problem to integrate this library . where from we download FreeType library. Please help Thanks Swatantra