freetype: don't require buffer in getGlyphName

This commit is contained in:
alichraghi 2022-07-05 21:09:09 +04:30 committed by Stephen Gutekanst
parent dd0a6064fb
commit d5e4c41266
2 changed files with 5 additions and 5 deletions

View file

@ -79,6 +79,5 @@ test "get name index" {
test "get index name" {
const lib = try freetype.Library.init();
const face = try lib.newFace(firasans_font_path, 0);
var name_buf: [30]u8 = undefined;
try testing.expectEqualStrings("summation", try face.getGlyphName(1120, &name_buf));
try testing.expectEqualStrings(try face.getGlyphName(1120), "summation");
}