Skip to content

Commit

Permalink
testcard2 Ubuntu DejaVu path fix
Browse files Browse the repository at this point in the history
DejaVuSansMono.ttf is in /usr/share/fonts/truetype/dejavu in Ubuntu
at least since version 14.04.
  • Loading branch information
MartinPulec committed Jul 24, 2023
1 parent 0ce939e commit 03f0a5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video_capture/testcard2.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ static const char * const font_candidates[] = { "cour.ttf", };
static const char * const font_candidates[] = { "Monaco.ttf", "Geneva.ttf", "Keyboard.ttf", };
#else
#define DEFAULT_FONT_DIR "/usr/share/fonts"
static const char * const font_candidates[] = {
"DejaVuSansMono.ttf", "truetype/freefont/FreeMonoBold.ttf", "truetype/DejaVuSansMono.ttf", // Ubuntu
static const char *const font_candidates[] = {
"DejaVuSansMono.ttf", // bundled in AppImage
"truetype/freefont/FreeMonoBold.ttf", "truetype/dejavu/DejaVuSansMono.ttf", // Ubuntu
"TTF/DejaVuSansMono.ttf", "liberation/LiberationMono-Regular.ttf", // Arch
"liberation-mono/LiberationMono-Regular.ttf", // Fedora
};
Expand All @@ -99,6 +100,7 @@ static const char * const font_candidates[] = {
void * vidcap_testcard2_thread(void *args);

struct testcard_state2 {

int count;
unsigned char *bg; ///< bars coverted to dest color_spec
struct timeval t0;
Expand Down

0 comments on commit 03f0a5f

Please sign in to comment.