Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce INIT-FREETYPE #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AlexCharlton
Copy link

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.

*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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant