SheenFigureLegacy icon indicating copy to clipboard operation
SheenFigureLegacy copied to clipboard

cannot run the library

Open ghass64 opened this issue 11 years ago • 10 comments

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

ghass64 avatar Apr 08 '13 17:04 ghass64

Probably you did not configure FreeType. Read the following link: https://github.com/mta452/SheenFigure/issues/1

mta452 avatar Apr 09 '13 12:04 mta452

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 ?

ghass64 avatar Apr 10 '13 15:04 ghass64

and what should i do to include this library in my project ? i tried to add it ,, but it gives alot of errors

ghass64 avatar Apr 10 '13 16:04 ghass64

I had the same problem, you have two choices:

  1. Use Core Graphics to render the text. or
  2. Use FreeType.

I used Core Graphics and this is how to include it in your project:

  1. Open SheenFigure folder, you will find two xcode project, choose SheenFigureCG.
  2. Build the project by selecting (iOS device) from the schema drop-down list (where you select the simulator) then run it.
  3. Now you will have libsheenfigure.a file, include this file in your project.
  4. You will need include the original header files on your project also.
  5. Go to the your build setting, and add this flag in (Other c flags): -DSF_IOS_CG (For Core Graphics).
  6. At the end, include the SFLabel folder in your project, you will find it in the demo project.

almousa1990 avatar Apr 15 '13 23:04 almousa1990

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

ZainabA avatar May 03 '13 15:05 ZainabA

The new version is different, make sure you include PCH content from the sample project to your project

almousa1990 avatar May 03 '13 15:05 almousa1990

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

ZainabA avatar May 03 '13 18:05 ZainabA

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.

almousa1990 avatar May 03 '13 22:05 almousa1990

I fixed the error

thank you very much

Zainab

ZainabA avatar May 03 '13 22:05 ZainabA

Hi i am new on iphone , i face problem to integrate this library . where from we download FreeType library. Please help Thanks Swatantra

swatantrasingh avatar Jul 12 '13 07:07 swatantrasingh