From 5705570e1fc314874c5f5de037963504cba0d0fe Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sat, 29 Dec 2018 07:28:31 -0800 Subject: [PATCH] nit --- fontland/fontland/font.rkt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fontland/fontland/font.rkt b/fontland/fontland/font.rkt index d67d8505..541398f1 100644 --- a/fontland/fontland/font.rkt +++ b/fontland/fontland/font.rkt @@ -80,11 +80,10 @@ https://github.com/mbutterick/fontkit/blob/master/src/TTFFont.js (hb_buffer_reset buf) (define codepoints (for/list ([c (in-string str)]) (char->integer c))) (hb_buffer_add_codepoints buf codepoints) - (define chars (map hb_glyph_info_t-codepoint (hb_buffer_get_glyph_infos buf))) (hb_shape (hb-font font) buf (map tag->hb-feature (or features null))) (define gis (hb_buffer_get_glyph_infos buf)) (define hb-gids (map hb_glyph_info_t-codepoint gis)) - (define hb-clusters (break-at chars (map hb_glyph_info_t-cluster gis))) + (define hb-clusters (break-at codepoints (map hb_glyph_info_t-cluster gis))) (define hb-positions (map hb_glyph_position_t->list (hb_buffer_get_glyph_positions buf))) (define glyphs (for/vector ([gidx (in-list hb-gids)] [cluster (in-list hb-clusters)])