]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
* scm/define-context-properties.scm:
[lilypond.git] / lily / open-type-font.cc
index 73395fb9cbeacf40addb2d5c31c1444523b0a065..1a61c07884869fbe0ffd98ae1ad786cf1b06ee34 100644 (file)
@@ -30,7 +30,7 @@ load_table (char const *tag_str, FT_Face face, FT_ULong *length)
     {
       FT_Byte *buffer = (FT_Byte *) malloc (*length);
       if (buffer == NULL)
-       error (_f ("can't allocate %d bytes", *length));
+       error (_f ("can't allocate %lu bytes", *length));
 
       error_code = FT_Load_Sfnt_Table (face, tag, 0, buffer, length);
       if (error_code)
@@ -68,18 +68,6 @@ load_scheme_table (char const *tag_str, FT_Face face)
   return tab;
 }
 
-Index_to_charcode_map
-make_index_to_charcode_map (FT_Face face)
-{
-  Index_to_charcode_map m;
-  FT_ULong charcode;
-  FT_UInt gindex;
-
-  for (charcode = FT_Get_First_Char (face, &gindex); gindex != 0;
-       charcode = FT_Get_Next_Char (face, charcode, &gindex))
-    m[gindex] = charcode;
-  return m;
-}
 
 Open_type_font::~Open_type_font ()
 {