mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
FS-7506: make core specify default font instead of each place we use it
This commit is contained in:
1 parent
810a5d5831
commit
34b3804413
3 files changed
+5
-10
No files matched your search
@@ -508,6 +508,10 @@ SWITCH_DECLARE(switch_status_t) switch_img_txt_handle_create(switch_img_txt_hand
|
||||
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 {
|
||||
|
||||
Reference in new issue
Block a user