commit 680c5b68d55d58c5198c34149a2b367fda2c4520
parent 54bd59931ed1e8e25ec39853d5183fcb0fee9438
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Thu, 31 Mar 2016 19:29:14 -0600
viewer: just use the system dejavu sans mono
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/viewer/main.cc b/viewer/main.cc
@@ -79,7 +79,11 @@ window::window(int argc, char *argv[])
FT_Init_FreeType(&ft_library);
ft_face = NULL;
+#ifdef __OPENBSD__
+ FT_New_Face(ft_library, "/usr/X11R6/lib/X11/fonts/TTF/DejaVuSansMono.ttf", /* face_index */ 0, &ft_face);
+#else
FT_New_Face(ft_library, "DejaVuSansMono.ttf", /* face_index */ 0, &ft_face);
+#endif
font = demo_font_create(ft_face, demo_glstate_get_atlas(st));