From 84e984ac48024ebc21289dbc2d0e5c7558ee56b6 Mon Sep 17 00:00:00 2001 From: Thomas Dy Date: Wed, 26 Mar 2025 18:50:13 +0900 Subject: [PATCH] Pass correct glyph mapping when encoding maxp --- lib/ttfunk/ttf_encoder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ttfunk/ttf_encoder.rb b/lib/ttfunk/ttf_encoder.rb index 6203a15..158a072 100644 --- a/lib/ttfunk/ttf_encoder.rb +++ b/lib/ttfunk/ttf_encoder.rb @@ -107,7 +107,7 @@ def hhea_table end def maxp_table - @maxp_table ||= TTFunk::Table::Maxp.encode(original.maximum_profile, old_to_new_glyph) + @maxp_table ||= TTFunk::Table::Maxp.encode(original.maximum_profile, new_to_old_glyph) end def post_table