diff options
-rw-r--r-- | chickadee/render/font.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chickadee/render/font.scm b/chickadee/render/font.scm index caa43ca..1a01ad4 100644 --- a/chickadee/render/font.scm +++ b/chickadee/render/font.scm @@ -302,7 +302,8 @@ extension must be either .xml or .fnt." (lambda* (font text matrix #:key (blend-mode 'alpha)) ;; TODO: Respect kerning. (define (render-char c) - (let* ((char (font-ref font c)) + ;; TODO: What if "?" isn't in the font? + (let* ((char (or (font-ref font c) (font-ref font #\?))) (texture (font-char-texture-region char)) (dimensions (font-char-dimensions char)) (offset (font-char-offset char))) |