We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Create Font (Unicode)
Page Index Toggle Pages: 1
Create Font (Unicode) (Read 1701 times)
Create Font (Unicode)
May 18th, 2005, 6:08pm
 
On Mac OS X 10.3.8 (Processing 0090 Beta), I tried to do

 Create Font
  ArialUnicodeMS
  Size: 18
  Smooth
  All Characters

and I eventually got

 apple.awt.EventQueueExceptionHandler Caught Throwable :
 java.lang.OutOfMemoryError
 java.lang.OutOfMemoryError

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.

- Don
Re: Create Font (Unicode)
Reply #1 - May 18th, 2005, 8:30pm
 
have you 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.
Re: Create Font (Unicode)
Reply #2 - Jul 28th, 2005, 4:47am
 
logged in the bugs db and closing thread:
http://dev.processing.org/bugs/show_bug.cgi?id=98
Page Index Toggle Pages: 1