[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] ttf-fonts module
From: |
Michael Raskin |
Subject: |
[STUMP] ttf-fonts module |
Date: |
Fri, 14 Mar 2014 12:12:51 +0400 |
>I've created a new branch "font-module" where I'm trying to factorize
>font rendering with truetype fonts into a module. This way it shouldn't
>be hard to support anti-aliased fonts in lisp distributions that
>support them, while maintaining compatibility with distributions that
>don't (ie ECL). It will also allow us to write a freetype module that
>does the same thing with otf fonts.
>
>I need some help as my asdf skills are a little wanting. As I
>understand it, font-rendering.lisp in stumpwm defines some generic
>functions, and then some concrete implementations for xlib fonts. I
>factored out the ttf code into contrib/utils/ttf-fonts.lisp. Now these
>symbols are ttf-fonts::symbol-name instead of just symbol-name. Is
>there an accepted way to tell lisp that the methods in the ttf-fonts
>package are the concrete implementations of the generic methods defined
>in font-rendering.lisp?
I think you need to specify that your :ttf-fonts package imports
ttf-fonts::symbol-name from the :stumpwm package.
The simplest way, though, is just to use
(defmethod ttf-fonts::symbol-name …