Skip to content

Commit

Permalink
Make sure extent returns something even if font is not loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Aug 16, 2017
1 parent ba2dcb2 commit c379527
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/font.lisp
Expand Up @@ -107,5 +107,7 @@ void main(){
(resource ebo))))))

(defmethod extent ((subject text))
(cl-fond:compute-extent (resource (font subject))
(text subject)))
(if (resource (font subject))
(cl-fond:compute-extent (resource (font subject))
(text subject))
'(:l 0 :r 0 :t 0 :b 0 :gap 0)))

0 comments on commit c379527

Please sign in to comment.