cl-fond

API Reference

cl-fond

Bindings to libfond, a simple text rendering engine for OpenGL

CL-FOND-CFFI

  • Variable *STATIC*
    (make-pathname :name nil :type nil :defaults
                   (merge-pathnames "static/" cl-fond-cffi::*here*))
  • Cffi-Type SIZE_T
  • Cffi-Struct FONT
  • Class FONT  (FOREIGN-STRUCT-TYPE, TRANSLATABLE-FOREIGN-TYPE)
    No slots.
  • Function FONT-FILE (pointer-to-font)
  • Function (setf FONT-FILE) (value pointer-to-font)
  • Function FONT-INDEX (pointer-to-font)
  • Function (setf FONT-INDEX) (value pointer-to-font)
  • Function FONT-SIZE (pointer-to-font)
  • Function (setf FONT-SIZE) (value pointer-to-font)
  • Function FONT-CHARACTERS (pointer-to-font)
  • Function (setf FONT-CHARACTERS) (value pointer-to-font)
  • Function FONT-CODEPOINTS (pointer-to-font)
  • Function (setf FONT-CODEPOINTS) (value pointer-to-font)
  • Function FONT-WIDTH (pointer-to-font)
  • Function (setf FONT-WIDTH) (value pointer-to-font)
  • Function FONT-HEIGHT (pointer-to-font)
  • Function (setf FONT-HEIGHT) (value pointer-to-font)
  • Function FONT-OVERSAMPLE (pointer-to-font)
  • Function (setf FONT-OVERSAMPLE) (value pointer-to-font)
  • Function FONT-ATLAS (pointer-to-font)
  • Function (setf FONT-ATLAS) (value pointer-to-font)
  • Function FONT-FONTDATA (pointer-to-font)
  • Function (setf FONT-FONTDATA) (value pointer-to-font)
  • Function FONT-CHARDATA (pointer-to-font)
  • Function (setf FONT-CHARDATA) (value pointer-to-font)
  • Function FONT-FONTINFO (pointer-to-font)
  • Function (setf FONT-FONTINFO) (value pointer-to-font)
  • Function FONT-CONVERTED-CODEPOINTS (pointer-to-font)
  • Function (setf FONT-CONVERTED-CODEPOINTS) (value pointer-to-font)
  • Cffi-Struct BUFFER
  • Class BUFFER  (FOREIGN-STRUCT-TYPE, TRANSLATABLE-FOREIGN-TYPE)
    No slots.
  • Function BUFFER-FONT (pointer-to-buffer)
  • Function (setf BUFFER-FONT) (value pointer-to-buffer)
  • Function BUFFER-TEXTURE (pointer-to-buffer)
  • Function (setf BUFFER-TEXTURE) (value pointer-to-buffer)
  • Function BUFFER-WIDTH (pointer-to-buffer)
  • Function (setf BUFFER-WIDTH) (value pointer-to-buffer)
  • Function BUFFER-HEIGHT (pointer-to-buffer)
  • Function (setf BUFFER-HEIGHT) (value pointer-to-buffer)
  • Function BUFFER-PROGRAM (pointer-to-buffer)
  • Function (setf BUFFER-PROGRAM) (value pointer-to-buffer)
  • Function BUFFER-FRAMEBUFFER (pointer-to-buffer)
  • Function (setf BUFFER-FRAMEBUFFER) (value pointer-to-buffer)
  • Cffi-Struct EXTENT
  • Class EXTENT  (FOREIGN-STRUCT-TYPE, TRANSLATABLE-FOREIGN-TYPE)
    No slots.
  • Function EXTENT-L (pointer-to-extent)
  • Function (setf EXTENT-L) (value pointer-to-extent)
  • Function EXTENT-R (pointer-to-extent)
  • Function (setf EXTENT-R) (value pointer-to-extent)
  • Function EXTENT-T (pointer-to-extent)
  • Function (setf EXTENT-T) (value pointer-to-extent)
  • Function EXTENT-B (pointer-to-extent)
  • Function (setf EXTENT-B) (value pointer-to-extent)
  • Function EXTENT-GAP (pointer-to-extent)
  • Function (setf EXTENT-GAP) (value pointer-to-extent)
  • Cffi-Function FREE-FONT
  • Function FREE-FONT (font)
  • Cffi-Function LOAD-FONT
  • Function LOAD-FONT (font)
  • Cffi-Function LOAD-FONT-FIT
  • Function LOAD-FONT-FIT (font max-size)
  • Cffi-Function COMPUTE-TEXT
  • Function COMPUTE-TEXT (font text n vao)
  • Cffi-Function COMPUTE-TEXT-U
  • Function COMPUTE-TEXT-U (font text size n vao)
  • Cffi-Function UPDATE-TEXT
  • Function UPDATE-TEXT (font text n vbo ebo)
  • Cffi-Function UPDATE-TEXT-U
  • Function UPDATE-TEXT-U (font text size n vbo ebo)
  • Cffi-Function COMPUTE-EXTENT
  • Function COMPUTE-EXTENT (font text extent)
  • Cffi-Function COMPUTE-EXTENT-U
  • Function COMPUTE-EXTENT-U (font text size extent)
  • Cffi-Function FREE-BUFFER
  • Function FREE-BUFFER (buffer)
  • Cffi-Function LOAD-BUFFER
  • Function LOAD-BUFFER (buffer)
  • Cffi-Function RENDER-BUFFER
  • Function RENDER-BUFFER (buffer text x y color)
  • Cffi-Function RENDER-BUFFER-U
  • Function RENDER-BUFFER-U (buffer text size x y color)
  • Cffi-Function DECODE-UTF8
  • Function DECODE-UTF8 (string decoded size)
  • Cffi-Function FOND-ERROR
  • Function FOND-ERROR
  • Cffi-Function FOND-ERROR-STRING
  • Function FOND-ERROR-STRING (error)

Also exports

  • COMMON-LISP:ERROR

CL-FOND

  • Condition FOND-ERROR  (ERROR)
  • Class C-OBJECT
    HANDLE   Accessor: HANDLE
  • Method FREE ((object c-object))
  • Class FONT  (C-OBJECT)
    No slots.
  • Function MAKE-FONT (file charset &rest args &key index size oversample width height)
  • Function COMPUTE-TEXT (font text)
  • Function UPDATE-TEXT (font text vbo ebo)
  • Function COMPUTE-EXTENT (font text &key (start 0) (end (length text)))
  • Function FILE (font)
  • Function SIZE (font)
  • Function TEXT-HEIGHT (font)
  • Method WIDTH ((font font))
  • Method HEIGHT ((font font))
  • Method TEXTURE ((font font))
  • Function CHARSET (font)
  • Class BUFFER  (C-OBJECT)
    FONT   Accessor: FONT
  • Function MAKE-BUFFER (font width height)
  • Method RENDER ((buffer buffer) text &key (x 0) (y 0) color)
  • Method WIDTH ((buffer buffer))
  • Method HEIGHT ((buffer buffer))
  • Method TEXTURE ((buffer buffer))
  • Method (setf FONT) (font (buffer buffer))