Skip to content

Commit

Permalink
Render string characters only if in correct range.
Browse files Browse the repository at this point in the history
  • Loading branch information
patzy committed Feb 25, 2012
1 parent fc92d4a commit 37061f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/font.lisp
Expand Up @@ -102,8 +102,10 @@ wrapped text."
(gl:with-pushed-matrix
(gl:load-matrix basis)
(if (= (font-base fnt) -1)
(loop for c across str do
(font-render-glyph fnt (char-code c))
(loop for c across str
for code = (char-code c)
when (< 0 code 255) do
(font-render-glyph fnt )
(basis-translate basis (char-width fnt c) 0 0)
(gl:load-matrix basis))
(progn (gl:list-base (font-base fnt))
Expand Down

0 comments on commit 37061f2

Please sign in to comment.