cl-freetype2
cl-freetype2 copied to clipboard
MAKE-VECTOR fails due to incorrect struct name
When creating a vector using MAKE-VECTOR, the following error is returned:
Unknown CFFI type (:STRUCT FREETYPE2-TYPES:FT-VECTOR)
[Condition of type CFFI::UNDEFINED-FOREIGN-TYPE-ERROR]
The reason for this is a typo in that function. The following:
(let ((vector (make-collected-foreign 'ft-vector
'(:struct ft-vector))))
Should be replaced by:
(let ((vector (make-collected-foreign 'ft-vector
'(:struct foreign-ft-vector))))