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.
PLplot uses either fonts provided by the Free UCS Outline Fonts project (http://savannah.gnu.org/projects/freefont/) or Windows fonts (Arial, etc.). Both are not installed on Mac OS X by default. You can download the FreeFonts from http://download.savannah.gnu.org/releases/freefont/ and copy the ttf files into the User's Library/Fonts directory. In order cmake can find these fonts, we need to set the PL_FREETYPE_FONT_PATH option, e.g.
cmake -DPL_FREETYPE_FONT_PATH=/Users/smekal/Library/Fonts/ ..
freetype is also available via Macports. To install the freetype library open the terminal and enter
sudo port install freetype
mingw32-make
mingw32-make
copy objs\freetype.a objs\libfreetype.a
path_to_gnu_make\mingw32-make setup visualc
path_to_gnu_make\mingw32-make
CFLAGS ?= /nologo /c /Ox /W3 /WX /D_CRT_SECURE_NO_DEPRECATE
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.
The content of this page is available under the GNU Free Documentation License 1.2.