X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmodified-font-metric.cc;h=47b19618bda1126e14cc429bfb528c68f8530b62;hb=628ff1f709a0a06d3a544b1feaa544fe16134911;hp=ac2c88c68cd3f3151635b1e50a8bb6827a02edbf;hpb=a6a4b3fc2009f17a1a48cca0c11bfd3f38645937;p=lilypond.git diff --git a/lily/modified-font-metric.cc b/lily/modified-font-metric.cc index ac2c88c68c..47b19618bd 100644 --- a/lily/modified-font-metric.cc +++ b/lily/modified-font-metric.cc @@ -1,9 +1,20 @@ /* - modified-font-metric.cc -- declare Modified_font_metric + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1999--2010 Han-Wen Nienhuys - (c) 1999--2008 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 + 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 . */ #include using namespace std; @@ -102,12 +113,12 @@ Modified_font_metric::derived_mark () const } Stencil -Modified_font_metric::text_stencil (string text) const +Modified_font_metric::text_stencil (string text, bool feta) const { Box b; if (Pango_font *pf = dynamic_cast (orig_)) { - Stencil stc = pf->text_stencil (text); + Stencil stc = pf->text_stencil (text, feta); Box b = stc.extent_box (); @@ -116,7 +127,7 @@ Modified_font_metric::text_stencil (string text) const return scaled; } - return Font_metric::text_stencil (text); + return Font_metric::text_stencil (text, feta); } Box