cl-freetype2 icon indicating copy to clipboard operation
cl-freetype2 copied to clipboard

Introduce INIT-FREETYPE

Open AlexCharlton opened this issue 11 years ago • 0 comments

I was recently bitten when trying to use cl-freetype2 in an image where it had been pre-loaded. My program promptly crashed with a less than helpful memory error. *LIBRARY* clearly must be re-initialized every time a lisp using cl-freetype2 is run.

In order to make this fact more obvious and less clunky than asking the library user to call

(setf *library* (make-freetype))

this patch introduces a new function, INIT-FREETYPE, that does exactly this.

AlexCharlton avatar May 26 '13 20:05 AlexCharlton