Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freetype
#1
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.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's 



Reply


Messages In This Thread
Freetype - by Brian Beuken - 11-25-2020, 08:25 PM
RE: Freetype - by Brian Beuken - 11-26-2020, 09:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)