Commit 8b67054d authored by Krzysztof Jankowski's avatar Krzysztof Jankowski Committed by Gargaj
Browse files

Linux fonts fix (Ubuntu at last) and readme for building under Linux (#88)

* Ubuntu missing fonts (fixed path)

* detailed instruction on building on linux

* fixed truetype fonts paths for linux + bring back TTF paths
parent c6b4e3a9
......@@ -70,9 +70,23 @@ Create a `config.json` with e.g. the following contents: (all fields are optiona
## Building
As you can see you're gonna need [CMAKE](https://cmake.org/) for this, but don't worry, a lot of it is automated at this point.
* On Windows, use at least Visual C++ 2010. For the DX9/DX11 builds, obviously you'll be needing a DirectX SDK, though a lot of it is already in the Windows 8.1 SDK as well.
* On Linux, you'll need ```xorg-dev``` and ```libglu1-mesa-dev```; after that ```cmake``` should take care of the rest.
* On OSX, ```cmake``` should take care of everything.
### Windows
Use at least Visual C++ 2010. For the DX9/DX11 builds, obviously you'll be needing a DirectX SDK, though a lot of it is already in the Windows 8.1 SDK as well.
### OSX/macOS
The ```cmake``` should take care of everything.
### Linux
You'll need ```xorg-dev``` and ```libglu1-mesa-dev```; after that ```cmake``` should take care of the rest.
```
apt install xorg-dev libglu1-mesa-dev cmake
cd Bonzomatic
cmake .
make
make install
```
## Organizing a competition
If you want to organize a competition using Bonzomatic at your party, here's a handy-dandy guide on how to get started:
......
......@@ -44,8 +44,11 @@ const char * Misc::GetDefaultFontPath()
"/usr/share/fonts/TTF/FreeMono.ttf",
"/usr/share/fonts/TTF/LiberationMono-Regular.ttf",
"/usr/share/fonts/TTF/VeraMono.ttf",
"/usr/share/fonts/corefonts/cour.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf",
"/usr/share/fonts/truetype/freefont/FreeMono.ttf",
"/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf",
"/usr/share/fonts/truetype/msttcorefonts/cour.ttf",
"/usr/share/fonts/corefonts/cour.ttf",
NULL
};
for (int i = 0; fontPaths[i]; ++i)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment