]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/all-font-metrics.cc
Midi: add staff-mapping test.
[lilypond.git] / lily / all-font-metrics.cc
index 8dded740af427b4467d64afb482348ee5aba4216..23119125aa593db391b513ea0bb0cc827e7532d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1999--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -49,10 +49,8 @@ All_font_metrics::All_font_metrics (string path)
 #if HAVE_PANGO_FT2
   PangoFontMap *pfm = pango_ft2_font_map_new ();
 
-  pango_ft2_fontmap_
-    = G_TYPE_CHECK_INSTANCE_CAST (pfm,
-                                 PANGO_TYPE_FT2_FONT_MAP,
-                                 PangoFT2FontMap);
+  pango_ft2_fontmap_ = PANGO_FT2_FONT_MAP (pfm);
+
   pango_dpi_ = PANGO_RESOLUTION;
   pango_ft2_font_map_set_resolution (pango_ft2_fontmap_,
                                     pango_dpi_, pango_dpi_);