citrun

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

commit 8ee009ed7c376c4ac38db1846b875e69ee860cb6
parent 680c5b68d55d58c5198c34149a2b367fda2c4520
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Thu, 31 Mar 2016 19:53:51 -0600

viewer: use system fonts on osx too

Diffstat:
Mviewer/main.cc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/viewer/main.cc b/viewer/main.cc @@ -81,8 +81,10 @@ window::window(int argc, char *argv[]) ft_face = NULL; #ifdef __OPENBSD__ FT_New_Face(ft_library, "/usr/X11R6/lib/X11/fonts/TTF/DejaVuSansMono.ttf", /* face_index */ 0, &ft_face); +#elif __APPLE__ + FT_New_Face(ft_library, "/Library/Fonts/Andale Mono.ttf", /* face_index */ 0, &ft_face); #else - FT_New_Face(ft_library, "DejaVuSansMono.ttf", /* face_index */ 0, &ft_face); + errx(1, "PICK A FONT FOR THIS PLATFORM"); #endif font = demo_font_create(ft_face, demo_glstate_get_atlas(st));