Forums
Freetype - Printable Version

+- Forums (http://www.scratchpadgames.net/forums)
+-- Forum: Main Forums (http://www.scratchpadgames.net/forums/forumdisplay.php?fid=1)
+--- Forum: Assets, Tools, Libraries and other useful things (http://www.scratchpadgames.net/forums/forumdisplay.php?fid=21)
+--- Thread: Freetype (/showthread.php?tid=576)



Freetype - Brian Beuken - 11-25-2020

This will be covered in some demos I am doing but its useful for older code too. Full2D Text display can be a bit tricky on C++ GPU projects but there's a nice library that lets us do quite a lot, to install the libs you do need to build it so here are the steps

Code:
sudo apt-get install libfreetype6 libfreetype6-dev -y

cd /home/pi
Code:
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.gz
Code:
tar -xvzf freetype-2.6.3.tar.gz
Code:
cd freetype-2.6.3
Code:
make
Code:
sudo make install
you could make a script for this if you want. I covered how to use this in Lesson 10 of the MagiPi tuts.


RE: Freetype - Brian Beuken - 11-26-2020

oh and check for latest verison, here I'm using 2.6.3 but theres actuallly 2.10.4 now. I have no idea what was updated but both work just fine