]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/modified-font-metric.hh
Issue 4997/6: Use Preinit for font metrics
[lilypond.git] / lily / include / modified-font-metric.hh
index c63c532fbde743a0d1e208e4b0702e0f67030520..66996eaf06c226ded5522198767987813055efe0 100644 (file)
@@ -23,7 +23,8 @@
 #include "font-metric.hh"
 
 /* Perhaps junk this, and move this to layout_def as interface? */
-struct Modified_font_metric : public Font_metric
+struct Modified_font_metric : public Preinit<Modified_font_metric>,
+                              public Font_metric
 {
 public:
   Stencil text_stencil (Output_def *output_state, const string&, bool) const;
@@ -36,6 +37,7 @@ public:
   size_t name_to_index (string) const;
   size_t index_to_charcode (size_t) const;
   Font_metric *original_font () const;
+  void pre_init ();
 
 protected:
   Font_metric *orig_;