Freetype download and configuration, freetype download configuration
1. Download and compile the freetype Library
1 download: http://www.freetype.org/
Get compressed file: freetype-2.5.3.tar.gz
2 unzip: extract directly, get the directory freetype-2.5.3
3 compile: open with vs2010 :( path) \ freetype-2.5.3 \ builds \ windows \ vc2010 \ freetype. sln
2. Add the freetype library to Project 1 and add the Include directory. Click Project> properties> VC ++ directories> Include Directories.
Add: (PATH) \ freetype-2.5.3 \ include
2. Add the Library directory and click Project> properties> VC ++ directories> Library Directories.
Add (PATH) \ freetype-2.5.3 \ objs \ win32 \ vc2010
3. Click "Project"> "properties"> "Linker"> "Input"> "Additional Dependencies" to add Additional Dependencies.
Add: (PATH) \ freetype253.lib; freetype253_D.lib
3. Run the following code:
#include <ft2build.h>#include FT_FREETYPE_H#include <iostream>using namespace std;int main(){FT_Library library;FT_Init_FreeType(&library);FT_Face face;FT_New_Face(library, "msyh.ttf", 0, &face);cout<<"num_glyphs:"<<face->num_glyphs<<endl;cout<<"num_faces:"<<face->num_faces<<endl;system("Pause");return 0;}
It's okay to compile and run it.
Freetype library cannot be used
./Configure -- prefix =/zhi/3.4.5/arm-linux/-- host = arm-linux
Make & make install
Next, go to arm-linux/lib and move the freetype directory under freetype2 to the previous layer.
This will do.
Freetype download
Download.savannah.gnu.org/releases/freetype/