const char *bg = "#142e55";
char *parsed = NULL;
switch_event_t *params = NULL;
- const char *font_face = "/usr/share/fonts/truetype/freefont/FreeSansOblique.ttf";
+ const char *font_face = NULL;
const char *var, *tmp = NULL;
char *dup = NULL;
static void set_ticker(cv_context_t *context, const char *fg, const char *bg, const char *font_face, const char *fontsz, int speed, switch_img_position_t pos, const char *text)
{
- if (zstr(font_face)) {
- font_face = "FreeMono.ttf";
- }
-
if (zstr(fg)) {
fg = "#cccccc";
}
}
}
-
- if (zstr(font_face)) {
- font_face = "FreeMono.ttf";
- }
-
if (zstr(fg)) {
fg = "#cccccc";
}
new_handle->pool = pool;
new_handle->free_pool = free_pool;
+ if (zstr(font_family)) {
+ font_family = switch_core_sprintf(new_handle->pool, "%s%s%s",SWITCH_GLOBAL_dirs.fonts_dir, SWITCH_PATH_SEPARATOR, "FreeMono.ttf");
+ }
+
if (!switch_is_file_path(font_family)) {
new_handle->font_family = switch_core_sprintf(new_handle->pool, "%s%s%s",SWITCH_GLOBAL_dirs.fonts_dir, SWITCH_PATH_SEPARATOR, font_family);
} else {