/*
- all-font-metrics.cc -- implement All_font_metrics
+ This file is part of LilyPond, the GNU music typesetter.
- source file of the GNU LilyPond music typesetter
+ Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
- (c) 1999--2009 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LilyPond is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
*/
#include "all-font-metrics.hh"
#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_dpi_ = 1200;
+ 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_);