X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fall-font-metrics.cc;h=23119125aa593db391b513ea0bb0cc827e7532d6;hb=da42c5e6e2cfa14136cacc4007d5c1849f80c52a;hp=a6172e1994d79c671ded8be15490a4d91c495177;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/all-font-metrics.cc b/lily/all-font-metrics.cc index a6172e1994..23119125aa 100644 --- a/lily/all-font-metrics.cc +++ b/lily/all-font-metrics.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1999--2009 Han-Wen Nienhuys + Copyright (C) 1999--2011 Han-Wen Nienhuys 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,11 +49,9 @@ 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_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_);