The patch below stops freeamp from crashing when trying to render a
truetype character that has no glyph. This fix is too simple as we
should probably look for another glyph to render, however this will
allow me to listen to my bj�rk albums again :)
diff -c ui/freeamp/unix/src/ttfont.cpp~ ui/freeamp/unix/src/ttfont.cpp
*** ui/freeamp/unix/src/ttfont.cpp~ Tue Oct 17 03:24:05 2000
--- ui/freeamp/unix/src/ttfont.cpp Fri Jun 22 11:45:50 2001
***************
*** 193,199 ****
{
j = text[i];
! if (!TT_VALID(f->glyphs[j]))
continue;
TT_Get_Glyph_Metrics(f->glyphs[j], &metrics);
--- 193,199 ----
{
j = text[i];
! if (j >= f->num_glyph || !TT_VALID(f->glyphs[j]))
continue;
TT_Get_Glyph_Metrics(f->glyphs[j], &metrics);
--
Kristian G. Kvilekval
email:[EMAIL PROTECTED] office:(805)893-4178 http://www.cs.ucsb.edu/~kris
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev