Bug 98 : OutOfMemoryError on createFont()
Last modified: 2005-07-27 19:52




Status:
RESOLVED
Resolution:
WONTFIX -
Priority:
P5
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-07-27 19:47
submitted by Don Braffitt:

I've tried this with various different values for font Size and with
earlier Processing versions, but I have never been able to get Create Font
to complete successfully with this font when I check All Characters.

response:

read the out of memory error section of the faq and tried to increase the ram:
http://processing.org/faq/bugs.html#memory

also, a unicode font is going to be enormous as bitmaps in ram. the basic
calculation would be: (next power of 2 above width/height)^2 x 4 bytes per
pixel x up to 64k characters.

so it could need up to 256 MB of ram just to create that font in a worst
case scenario:
32 x 32 x 4 bytes x 65536 chars = 256 MB
(if my quick calculations are correct).

we'll be adding something in the future so you can select specific charsets
that you want.