- constants. Most of them are related to the point-size of the fonts,
- so therefore, the lookup table for symbols is also in here.
-
- see TODO
- */
-struct Paper_def {
- Lookup *lookup_p_;
- String outfile;
-
- Real linewidth;
-
- /// how much space does a whole note take (ideally?)
- Real whole_width;
-
- /// ideal = geometric_ ^ log2(duration)
- Real geometric_;
-
- /* *************** */
- void reinit();
- Paper_def(Lookup*);
- void set(Lookup*);
- ~Paper_def();
- Paper_def(Paper_def const&);
- Real interline()const;
- Real internote()const;
- Real rule_thickness()const;
- Real standard_height()const;
- Real note_width() const;
- void print() const;
- Real duration_to_dist(Moment);
+ constants. Most of them are related to the point-size of the fonts,
+ so therefore, the lookup table for symbols is also in here.
+
+ TODO:
+
+ add support for multiple fontsizes
+
+ remove all utility funcs
+
+
+ add support for other len->wid conversions.
+
+
+ Interesting variables:
+
+ /// The distance between lines
+ interline
+
+*/
+class Paper_def : public Music_output_def
+{
+protected:
+ VIRTUAL_COPY_CONS(Music_output_def);
+
+
+public:
+ SCM font_descriptions ()const;
+ virtual ~Paper_def ();
+ static int default_count_i_;
+
+ /*
+ JUNKME
+ */
+ Real get_realvar (SCM symbol) const;
+ Real get_var (String id) const;
+ SCM get_scmvar (String id)const;
+ void reinit ();
+ Paper_def ();
+ Paper_def (Paper_def const&);
+
+ Interval line_dimensions_int (int) const;
+
+ virtual int get_next_default_count () const;
+ static void reset_default_count();
+ void output_settings (Paper_outputter*) const;
+ Paper_outputter* paper_outputter_p () ;
+
+ Font_metric * find_font (SCM name, Real mag);
+
+ // urg
+ friend int yyparse (void*);