]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/open-type-font.hh
Issue 4997/6: Use Preinit for font metrics
[lilypond.git] / lily / include / open-type-font.hh
index b86a560a73272bc4dc6b963c850a7fcc05f15924..bf66d669813c7917baf23c204034b6c0014bd8f1 100644 (file)
@@ -26,7 +26,7 @@ Index_to_charcode_map make_index_to_charcode_map (FT_Face face);
 void get_unicode_name (char *s, FT_ULong code);
 void get_glyph_index_name (char *s, FT_ULong code);
 
-class Open_type_font : public Font_metric
+class Open_type_font : public Preinit<Open_type_font>, public Font_metric
 {
   /* handle to face object */
   FT_Face face_;
@@ -42,6 +42,7 @@ class Open_type_font : public Font_metric
 
   DECLARE_CLASSNAME (Open_type_font);
 public:
+  void pre_init ();
   Real get_units_per_EM () const;
   SCM get_subfonts () const;
   SCM get_global_table () const;