- int error_code = FT_New_Face (freetype2_library, str.c_str (), 0, &face);
+ int error_code = FT_New_Face (freetype2_library, str.c_str (), idx, &face);
if (error_code == FT_Err_Unknown_File_Format)
error (_f ("unsupported font format: %s", str.c_str ()));
else if (error_code)
error (_f ("error reading font file %s: %s",
str.c_str (),
if (error_code == FT_Err_Unknown_File_Format)
error (_f ("unsupported font format: %s", str.c_str ()));
else if (error_code)
error (_f ("error reading font file %s: %s",
str.c_str (),
char name[len];
size_t code = FT_Get_Glyph_Name (face_, signed_idx, name, len);
if (code)
char name[len];
size_t code = FT_Get_Glyph_Name (face_, signed_idx, name, len);
if (code)
char name[len];
size_t code = FT_Get_Glyph_Name (face_, i, name, len);
if (code)
char name[len];
size_t code = FT_Get_Glyph_Name (face_, i, name, len);
if (code)
freetype_error_string (code).c_str ()));
*tail = scm_cons (scm_from_locale_string (name), SCM_EOL);
freetype_error_string (code).c_str ()));
*tail = scm_cons (scm_from_locale_string (name), SCM_EOL);