<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Freetype</title><link>https://sourceforge.net/p/plplot/wiki/Freetype/</link><description>Recent changes to Freetype</description><atom:link href="https://sourceforge.net/p/plplot/wiki/Freetype/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 02 Nov 2018 00:03:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/wiki/Freetype/feed" rel="self" type="application/rss+xml"/><item><title>Freetype modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Freetype/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,15 @@
+
+
 Description
 -----------

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Fri, 02 Nov 2018 00:03:41 -0000</pubDate><guid>https://sourceforge.net4eda21e59638c2f51b422fa0c16563a38169eac2</guid></item><item><title>Freetype modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Freetype/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 05 Oct 2014 19:16:03 -0000</pubDate><guid>https://sourceforge.nete8d1de174f074c7d880cf549488e094788058f81</guid></item><item><title>Freetype modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Freetype/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;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. &lt;a href="http://www.freetype.org" rel="nofollow"&gt;http://www.freetype.org&lt;/a&gt; reveals more information.&lt;/p&gt;
&lt;h2 id="instructions-for-mac-os-x"&gt;Instructions for Mac OS X&lt;/h2&gt;
&lt;p&gt;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 &lt;a href="http://download.savannah.gnu.org/releases/freefont" rel="nofollow"&gt;http://download.savannah.gnu.org/releases/freefont/&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cmake -DPL_FREETYPE_FONT_PATH=/Users/smekal/Library/Fonts/ ..&lt;/code&gt;&lt;/p&gt;
&lt;h3 id="macports"&gt;Macports&lt;/h3&gt;
&lt;p&gt;freetype is also available via Macports. To install the freetype library open the terminal and enter&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo port install freetype&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="instructions-for-windows"&gt;Instructions for Windows&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Download the &lt;a class="" href="http://download.savannah.gnu.org/releases/freetype/ft237.zip" rel="nofollow"&gt;Freetype library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Unzip the ft237.zip package in a suitable place&lt;/li&gt;
&lt;li&gt;Cd into the new directory&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mingw-compiler"&gt;MinGW compiler&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Then for MinGW (call &lt;tt&gt;mingw32.make&lt;/tt&gt; twice!):&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;mingw32-make&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;mingw32-make&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;copy objs\freetype.a objs\libfreetype.a&lt;/code&gt;&lt;/p&gt;
&lt;h3 id="visual-c-compiler"&gt;Visual C++ compiler&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Or for Visual C++ (you need to use GNU-Make not nmake - download it from &lt;a href="http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz?download"&gt;http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz?download&lt;/a&gt; or &lt;a href="http://gnuwin32.sourceforge.net/packages/make.htm"&gt;http://gnuwin32.sourceforge.net/packages/make.htm&lt;/a&gt;):&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;path_to_gnu_make\mingw32-make setup visualc&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;path_to_gnu_make\mingw32-make&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For Visual C++ 2005 you need to change line 69 of &lt;tt&gt;freetype-2.2.1\builds\compiler\visualc.mk&lt;/tt&gt; to&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;CFLAGS ?= /nologo /c /Ox /W3 /WX /D_CRT_SECURE_NO_DEPRECATE&lt;/code&gt;&lt;/p&gt;
&lt;h3 id="set-cmake-paths"&gt;Set CMake paths&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;set environment variables (for MinGW and Visual C++)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;set FREETYPEDIR=C:\freetype-2.2.1&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set CMAKE_INCLUDE_PATH=%FREETYPEDIR%\include&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set CMAKE_LIBRARY_PATH=%FREETYPEDIR%\objs&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;CMake is now able to find the freetype library and headers.&lt;/p&gt;
&lt;p&gt;The content of this page is available under the &lt;a class="" href="http://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;GNU Free Documentation License 1.2&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Thu, 02 Oct 2014 03:41:34 -0000</pubDate><guid>https://sourceforge.nete2a99dadd5e84aab5ed15f80794302bfb074dd4d</guid></item></channel></rss>