2001-09-03
2001-09-03 14:07:10 by Per Hedbor <ph@opera.com>
-
d094f76199c454dae6ad18433c6f2e2122457732
(9 lines)
(+7/-2)
[
Show
| Annotate
]
Branch: 5.2
Report an error if the decoding of the internal font failed
Rev: server/font_handlers/builtin.pike:1.11
4:
#else
inherit "ttf";
#endif
- constant cvs_version = "$Id: builtin.pike,v 1.10 2001/08/21 14:26:51 per Exp $";
+ constant cvs_version = "$Id: builtin.pike,v 1.11 2001/09/03 14:07:10 per Exp $";
constant name = "Builtin fonts";
constant doc = "Fonts included in pike (and roxen)";
70: Inside #if constant(__rbf) && constant(grbf) and #if defined(THREADS)
#ifdef THREADS
object key = lock->lock();
#endif
- if( !roxenbuiltin ) catch(roxenbuiltin = grbf());
+ if( !roxenbuiltin )
+ if( mixed err = catch(roxenbuiltin = grbf()) )
+ werror("Failed to open builtin font: %s\n",
+ describe_backtrace( err ) );
+
if( roxenbuiltin )
#if constant(Image.FreeType.Face)
return FTFont( roxenbuiltin, size,"-", bold, italic );