]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
Issue 4876/2: Enable fontname replacing in Open_type_font class
[lilypond.git] / lily / open-type-font.cc
index e4fb5d5d988a585266884076bc40c727dc943ef3..39e7b524ff91dcda8b48d6d50053f96bf2af0c90 100644 (file)
@@ -220,6 +220,8 @@ Open_type_font::Open_type_font (FT_Face face)
   index_to_charcode_map_ = make_index_to_charcode_map (face_);
 
   lily_index_to_bbox_table_ = scm_c_make_hash_table (257);
+
+  postscript_name_ = get_postscript_name (face_);
 }
 
 void
@@ -399,7 +401,7 @@ Open_type_font::get_global_table () const
 string
 Open_type_font::font_name () const
 {
-  return FT_Get_Postscript_Name (face_);
+  return postscript_name_;
 }
 
 SCM