2 paper-outputter.cc -- implement Paper_outputter
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "paper-outputter.hh"
11 #include "paper-stream.hh"
12 #include "molecule.hh"
15 #include "string-convert.hh"
20 Paper_outputter::Paper_outputter (Paper_stream *s)
25 Paper_outputter::~Paper_outputter ()
30 Paper_outputter::output_molecule (Molecule const*m, Offset o, char const *nm, String s)
33 *outstream_l_ << String ("\n%start: ") << nm << "\n";
35 for (PCursor <Atom*> i (m->atoms_); i.ok (); i++)
37 Offset a_off = i->offset ();
40 switch_to_font (i->font_);
45 a.push (global_lookup_l->print_dimen (a_off.y()));
46 a.push (global_lookup_l->print_dimen (a_off.x()));
48 r += global_lookup_l->substitute_args (s, a);