Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenfont/intern/blf_thumbs.c
| Context not available. | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "BLI_strict_flags.h" | |||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "blf_internal.h" | #include "blf_internal.h" | ||||
| Context not available. | |||||
| #include "BLF_api.h" | #include "BLF_api.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "BLI_strict_flags.h" | #include "CLG_log.h" | ||||
| static CLG_LogRef LOG = { "blf.thumbs" }; | |||||
| /** | /** | ||||
| * This function is used for generating thumbnail previews. | * This function is used for generating thumbnail previews. | ||||
| Context not available. | |||||
| /* Create a new blender font obj and fill it with default values */ | /* Create a new blender font obj and fill it with default values */ | ||||
| font = blf_font_new("thumb_font", filename); | font = blf_font_new("thumb_font", filename); | ||||
| if (!font) { | if (!font) { | ||||
| printf("Info: Can't load font '%s', no preview possible\n", filename); | CLOG_WARN(&LOG, "Can't load font '%s', no preview possible", filename); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||