]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pango-font.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / pango-font.cc
index b805f34a8541eeb594f51f1aced0633f4c3dcf0e..9fe6b78cb00a54a78273b5820c5bfe672ea10136 100644 (file)
 #if HAVE_PANGO_FT2
 #include "stencil.hh"
 
+Preinit_Pango_font::Preinit_Pango_font ()
+{
+  physical_font_tab_ = SCM_EOL;
+}
+
 Pango_font::Pango_font (PangoFT2FontMap *fontmap,
                         PangoFontDescription const *description,
                         Real output_scale)
 {
-  // This line looks stupid, but if we don't initialize physical_font_tab_ before
-  // we allocate memory in scm_c_make_hash_table, then that could trigger a garbage
-  // collection.
-  physical_font_tab_ = SCM_EOL;
   physical_font_tab_ = scm_c_make_hash_table (11);
   PangoDirection pango_dir = PANGO_DIRECTION_LTR;
   context_ = pango_context_new ();