Hi , Doru
i have only one question: why you put font binary data into compiled method?
That means that in object memory it will be contained 3 times:
- 1 as source code
- 2 as big literal array
- 3 in freetype memory buffer
imo, #fontContents should be
fontContents
^ self url getContents ".. or whatever.. url is key here"
... or you can download the binaray data and put it into class var
(lazy-initialized etc)..
but do not hold binary data as source code.. this is really awful idea as to me.
unless you worry that longevity of your file copy @ smalltalk-hub will
be higher than
longevity on site where you downloaded it from.
--
Best regards,
Igor Stasenko.