Freetype
From PLplotWiki
Revision as of 07:23, 1 February 2008 by Smekal (Talk | contribs) (New page: == Freetype Library == === Description === FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high...)
Freetype Library
Description
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well. http://www.freetype.org reveals more information.
Instructions for Windows
- Download Freetype library
- Unzip the ft221.zip package in a suitable place
- Cd into the new directory
- Than for MinGW (call mingw32.make twice!):
mingw32-make mingw32-make copy objs\freetype.a objs\libfreetype.a
- Or for Visual C++ (you need to use GNU-Make not nmake - download it from http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz?download or http://gnuwin32.sourceforge.net/packages/make.htm):
path_to_gnu_make\mingw32-make setup visualc path_to_gnu_make\mingw32-make
- For Visual C++ 2005 you need to change line 69 of freetype-2.2.1\builds\compiler\visualc.mk to
CFLAGS ?= /nologo /c /Ox /W3 /WX /D_CRT_SECURE_NO_DEPRECATE
- set environment variables
set FREETYPEDIR=C:\freetype-2.2.1 set CMAKE_INCLUDE_PATH=%FREETYPEDIR%\include set CMAKE_LIBRARY_PATH=%FREETYPEDIR%\objs
CMake is now able to find the freetype library and headers.