Give more information when reporting FTC_SBitCache_Lookup() errors.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17091 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-07-03 20:04:55 +00:00
parent fc9103455e
commit 3a355a1a08
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2003-07-03 22:03 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ftfont.m: Give more information when reporting
FTC_SBitCache_Lookup() errors.
2003-07-02 17:28 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ftfont.m (-initWithFontName:matrix:screenFont:):

View file

@ -988,7 +988,9 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib, FT_Pointer data, FT_
{
if ((error=FTC_SBitCache_Lookup(ftc_sbitcache, &cur, glyph, &sbit, NULL)))
{
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x\n",error);
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x (%08x, %ix%i, %08x)\n",
error, cur.font.face_id, cur.font.pix_width, cur.font.pix_height,
cur.flags);
continue;
}
@ -1365,7 +1367,9 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib, FT_Pointer data, FT_
{
if ((error=FTC_SBitCache_Lookup(ftc_sbitcache, &cur, glyph, &sbit, NULL)))
{
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x\n",error);
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x (%08x, %ix%i, %08x)\n",
error, cur.font.face_id, cur.font.pix_width, cur.font.pix_height,
cur.flags);
continue;
}
@ -1681,7 +1685,9 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib, FT_Pointer data, FT_
if ((error=FTC_SBitCache_Lookup(ftc_sbitcache, &cur, glyph, &sbit, NULL)))
{
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x",error);
NSLog(@"FTC_SBitCache_Lookup() failed with error %08x (%08x, %ix%i, %08x)\n",
error, cur.font.face_id, cur.font.pix_width, cur.font.pix_height,
cur.flags);
return NSZeroSize;
}