Hi,
  I am writing an app which uses a simplified chinese truetype font, the
font is really large ( more than 20M ). Every time I call dfb->CreateFont(),
more than 20M memory will be allocated. Because the app needs more than one
size(font face) of this font, I need to call CreateFont() multiple times.
But I don't have sufficient memory for such large font file. I don't want to
use dgiff font either, because chinese characters are so many, multiplied by
font sizes, dgiff fonts are large too.

  I also tried calling CreateDataBuffer() first, then calling
IDirectFBDataBuffer->CreateFont(), no effect on the memory using.

  DFB: 1.4.6 ( I tested with DFB 1.2.7, and it is all right, it won't load
more than one time if the fonts are the same file. )
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to