|
|
@@ -39,10 +39,8 @@ |
|
|
|
#include "cucul_internals.h" |
|
|
|
|
|
|
|
/* Internal fonts */ |
|
|
|
#if !defined(USE_WIN32) |
|
|
|
#include "font_mono9.h" |
|
|
|
#include "font_monobold12.h" |
|
|
|
#endif |
|
|
|
|
|
|
|
/* Helper structures for font loading */ |
|
|
|
#if !defined(_DOXYGEN_SKIP_ME) |
|
|
@@ -127,12 +125,10 @@ cucul_font_t *cucul_load_font(void const *data, unsigned int size) |
|
|
|
|
|
|
|
if(size == 0) |
|
|
|
{ |
|
|
|
#if !defined(USE_WIN32) |
|
|
|
if(!strcasecmp(data, "Monospace 9")) |
|
|
|
return cucul_load_font(mono9_data, mono9_size); |
|
|
|
return cucul_load_font((char *)&mono9_data, mono9_size); |
|
|
|
if(!strcasecmp(data, "Monospace Bold 12")) |
|
|
|
return cucul_load_font(monobold12_data, monobold12_size); |
|
|
|
#endif |
|
|
|
return cucul_load_font((char *)&monobold12_data, monobold12_size); |
|
|
|
|
|
|
|
#if defined(HAVE_ERRNO_H) |
|
|
|
errno = ENOENT; |
|
|
|