]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/modified-font-metric.cc
Issue 1388: Initial work to support opentype font features.
[lilypond.git] / lily / modified-font-metric.cc
index d68db92c4b897b6728ee0d37fec25410360a2f6e..a3beb4daefa0665be7fd0bacef73fe19571e49ef 100644 (file)
@@ -113,12 +113,14 @@ Modified_font_metric::derived_mark () const
 
 Stencil
 Modified_font_metric::text_stencil (Output_def *state,
-                                    const string &text, bool feta) const
+                                    const string &text,
+                                    bool feta,
+                                    const string &features_str) const
 {
   Box b;
   if (Pango_font *pf = dynamic_cast<Pango_font *> (orig_))
     {
-      Stencil stc = pf->text_stencil (state, text, feta);
+      Stencil stc = pf->text_stencil (state, text, feta, features_str);
 
       Box b = stc.extent_box ();
 
@@ -127,7 +129,7 @@ Modified_font_metric::text_stencil (Output_def *state,
       return scaled;
     }
 
-  return Font_metric::text_stencil (state, text, feta);
+  return Font_metric::text_stencil (state, text, feta, features_str);
 }
 
 Font_metric *