[ENH] Anti-aliasing type support & FreeType 2.0 beta plugin (very beta)

Andrew C. Greenberg werdna at gate.net
Mon Mar 6 02:54:01 UTC 2000

>Mac only note 2: Mac memory conventions limit how much memory FreeType can
>get, since C code allocates from the share of Squeak's alloted memory
>outside Squeak's object memory. This share is made quite small by the
>current VM, but may easily be increased by recompiling the VM. (Note that
>this plugin memory issue ought to be resolved in general.) I have compiled a
>special Mac VM with 500k for this, which lasts a good while longer. Running
>out of memory may yield strange errors from FreeType, like 'Bad file format
>specified', or fonts with blank characters. Just save & restart Squeak and
>go again and everything is forgiven.

This isn't necessary.  A few VM revisions ago, we added a new system 
parameter 23, to increase the "slop" allocated for VM (and hence) 
plugins.  Thus, you can adapt the allocation with a simple method 
call to Smalltalk.  To increase the allocation by 1K, simply perform 
the doIt:

	Smalltalk extraVMMemory: (Smalltalk extraVMMemory) + 1024

save the image and restart the VM.  From SystemDirectory:

extraVMMemory: extraBytesToReserve
	"Request that the given amount of extra memory be reserved 
for use by the virtual machine to leave extra C heap space available 
for things like plugins, network and file buffers, and so on. This 
request is stored when the image is saved and honored when the image 
is next started up. Answer the previous value of this parameter."

More information about the Squeak-dev mailing list