Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Introduce INIT-FREETYPE #4

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

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.

Add convenient initialization function
*LIBRARY* must be reset if cl-freetype2 is to be used after being
pre-loaded in an image, so this function was introduced to make this
less clunky.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment