Browse Source

Rename test glyph

master
Macoy Madson 10 months ago
parent
commit
803cc645bc
  1. 6
      src/FreeType.cake

6
src/FreeType.cake

@ -40,12 +40,12 @@
(freetype-check-result-or-return result "setting character size")
(var glyph-index-y int (FT_Get_Char_Index typeface 'g'))
(unless glyph-index-y
(var test-glyph-index int (FT_Get_Char_Index typeface 'g'))
(unless test-glyph-index
(fprintf stderr "error: could not find glyph 'g' in font\n")
(return 1))
(set result (FT_Load_Glyph typeface glyph-index-y FT_LOAD_DEFAULT))
(set result (FT_Load_Glyph typeface test-glyph-index FT_LOAD_DEFAULT))
(freetype-check-result-or-return result "loading glyph")
;; One slot for the whole face

Loading…
Cancel
Save