]> git.donarmstrong.com Git - lilypond.git/commitdiff
Pango: avoid using hardwired constants.
authorPatrick McCarty <pnorcks@gmail.com>
Wed, 24 Feb 2010 03:06:54 +0000 (19:06 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Wed, 24 Feb 2010 03:20:14 +0000 (19:20 -0800)
In this case, 1200 is synonymous with PANGO_RESOLUTION, so use it
instead.

lily/all-font-metrics.cc

index 75935efc5d5197db8df5bb481ad8c62edac8f4fe..8dded740af427b4467d64afb482348ee5aba4216 100644 (file)
@@ -53,7 +53,7 @@ All_font_metrics::All_font_metrics (string path)
     = G_TYPE_CHECK_INSTANCE_CAST (pfm,
                                  PANGO_TYPE_FT2_FONT_MAP,
                                  PangoFT2FontMap);
-  pango_dpi_ = 1200;
+  pango_dpi_ = PANGO_RESOLUTION;
   pango_ft2_font_map_set_resolution (pango_ft2_fontmap_,
                                     pango_dpi_, pango_dpi_);