]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
Merge branch 'master' into lilypond/translation
[lilypond.git] / lily / open-type-font.cc
index 97c49feca2880936f5c173c1b685f3ad3491db2f..3bd52480a1e684f52215f337a9e3e04e3af4d50d 100644 (file)
@@ -91,18 +91,17 @@ get_otf_table (FT_Face face, string tag)
 }
 
 FT_Face
-open_ft_face (string str)
+open_ft_face (string str, FT_Long idx)
 {
   FT_Face face;
-  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 (),
-              freetype_error_string (error_code).c_str ()
-              ));
+              freetype_error_string (error_code).c_str ()));
   return face;
 }