;;; You should have received a copy of the GNU General Public License
;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
-(in-package :gacela)
+
+(eval-when (compile load eval)
+ (when (not (find-package 'gacela)) (make-package 'gacela :nicknames '(gg) :use '(lisp)))
+ (in-package 'gacela :nicknames '(gg) :use '(lisp)))
+
(defun load-font (font-file &key (size 40) (encoding ft_encoding_unicode) static)
(let* ((key (make-resource-font :filename font-file :encoding encoding))
(ftglSetFontCharMap font encoding)
(set-resource key
`(:id-font ,font)
- (lambda () (true-load-font font-file encoding static))
+ (lambda () (true-load-font font-file size encoding static))
(lambda () (ftglDestroyFont font))
:static static)
key))))