|
Lines 266-277
Link Here
|
| 266 |
#endif |
266 |
#endif |
| 267 |
{ |
267 |
{ |
| 268 |
/* Create all required font structures */ |
268 |
/* Create all required font structures */ |
| 269 |
char str[80]; |
269 |
char str[128]; |
| 270 |
|
270 |
|
| 271 |
/* Font used for titles */ |
271 |
/* Font used for titles */ |
| 272 |
if (!(titleFont = XLoadQueryFont(display, TITLE_FONT))) |
272 |
if (!(titleFont = XLoadQueryFont(display, TITLE_FONT))) |
| 273 |
{ |
273 |
{ |
| 274 |
sprintf(str, |
274 |
snprintf(str, sizeof (str) - 1, |
| 275 |
"Cannot open the title font <%s>\nUsing default called fixed.", |
275 |
"Cannot open the title font <%s>\nUsing default called fixed.", |
| 276 |
TITLE_FONT); |
276 |
TITLE_FONT); |
| 277 |
WarningMessage(str); |
277 |
WarningMessage(str); |
|
Lines 281-287
Link Here
|
| 281 |
/* Very small font used for copyright message etc. */ |
281 |
/* Very small font used for copyright message etc. */ |
| 282 |
if (!(copyFont = XLoadQueryFont(display, COPY_FONT))) |
282 |
if (!(copyFont = XLoadQueryFont(display, COPY_FONT))) |
| 283 |
{ |
283 |
{ |
| 284 |
sprintf(str, |
284 |
snprintf(str, sizeof (str) - 1, |
| 285 |
"Cannot open the copyright font <%s>\nUsing default called fixed.", |
285 |
"Cannot open the copyright font <%s>\nUsing default called fixed.", |
| 286 |
COPY_FONT); |
286 |
COPY_FONT); |
| 287 |
WarningMessage(str); |
287 |
WarningMessage(str); |
|
Lines 291-297
Link Here
|
| 291 |
/* Font used for general text everywhere */ |
291 |
/* Font used for general text everywhere */ |
| 292 |
if (!(textFont = XLoadQueryFont(display, TEXT_FONT))) |
292 |
if (!(textFont = XLoadQueryFont(display, TEXT_FONT))) |
| 293 |
{ |
293 |
{ |
| 294 |
sprintf(str, |
294 |
snprintf(str, sizeof (str) - 1, |
| 295 |
"Cannot open the text font <%s>\nUsing default called fixed.", |
295 |
"Cannot open the text font <%s>\nUsing default called fixed.", |
| 296 |
TEXT_FONT); |
296 |
TEXT_FONT); |
| 297 |
WarningMessage(str); |
297 |
WarningMessage(str); |
|
Lines 301-307
Link Here
|
| 301 |
/* Font used for data text in intro */ |
301 |
/* Font used for data text in intro */ |
| 302 |
if (!(dataFont = XLoadQueryFont(display, DATA_FONT))) |
302 |
if (!(dataFont = XLoadQueryFont(display, DATA_FONT))) |
| 303 |
{ |
303 |
{ |
| 304 |
sprintf(str, |
304 |
snprintf(str, sizeof (str) - 1, |
| 305 |
"Cannot open the data font <%s>\nUsing default called fixed.", |
305 |
"Cannot open the data font <%s>\nUsing default called fixed.", |
| 306 |
DATA_FONT); |
306 |
DATA_FONT); |
| 307 |
WarningMessage(str); |
307 |
WarningMessage(str); |