Freetype download and configuration, freetype download configuration

Source: Internet
Author: User

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.