citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 5573cad80449ae604606943ff959fd6929b536b8
parent 5a90eec8976192db60cc998fd6b35ff41aee985a
Author: kyle <kyle@getaddrinfo.net>
Date:   Sat,  2 Apr 2016 14:37:21 -0600

gl: pick a good font for Debian

Diffstat:
Msrc/main.cc | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main.cc b/src/main.cc @@ -81,8 +81,9 @@ window::window(int argc, char *argv[]) const char *font_path = "/usr/X11R6/lib/X11/fonts/TTF/DejaVuSansMono.ttf"; #elif defined(__APPLE__) const char *font_path = "/Library/Fonts/Andale Mono.ttf"; -#else - errx(1, "PICK A FONT FOR THIS PLATFORM"); +#elif defined(__gnu_linux__) + // Assuming Debian here + const char *font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf"; #endif ft_face = NULL; FT_New_Face(ft_library, font_path, /* face_index */ 0, &ft_face);