I'm working on windows 7 64bit system using clozure cl (version 1.8-r15286m) with quicklisp installed.
I need some freetype2 bindings for common lisp. (map characters to glyphs + kerning info)
I've tried to install "cl-freetype2" using
(ql:quickload "cl-freetype")
from 32bit clozure cl, and I've run into several problems.
- "grovel.lisp" (located in
quicklisp/software/cffi_0.11.1/grovel/grovel.lisp
) assumes that I have gcc installed at "c:/msys/1.0/bin/gcc.exe" (I have mingw-gcc in path, but not there). Fixed by replacing "c:/msys/1.0/bin/gcc.exe" with "gcc" in "grovel.lisp". - When trying to compile cffi bindings for freetype2, same file does not include drive letters when passing include directories to compiler (i.e. instead of
-i"d:/somedir"
it passes-i"/somedir"
to gcc`). - "grovel.lisp" tries to include unix include directories.
I cannot fix #2 myself. I found this discussions, tried both listed patches, and neither of them worked. (first one breaks cffi, because ccl can't find neither "namestring-prefix" function nor "pathname-prefix" function), second one does not fix the problem.
What can I do in this situation? I'd prefer to avoid fixing "groveller" myself, I simply need some bindings for freetype2. Basically, I need to be able to
- Load truetype font.
- Map unicode char to glyph.
- Get kerning information for pair of glyphs.
- Load glyph bitmap.
Any ideas?