~ubuntu-branches/ubuntu/precise/lilypond/precise

« back to all changes in this revision

Viewing changes to lily/include/modified-font-metric.hh

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2006-12-19 10:18:12 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061219101812-7awtjkp0i393wxty
Tags: 2.8.7-3
scripts/midi2ly.py: When setting DATADIR, find Lilypond python files
in the @TOPLEVEL_VERSION@ directory, not 'current'.  Patch thanks to
Chris Lamb (chris@chris-lamb.co.uk).  (Closes: #400550)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  modified-font-metric.hh -- declare Font_metric
 
3
 
 
4
  source file of the GNU LilyPond music typesetter
 
5
 
 
6
  (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
7
*/
 
8
 
 
9
#ifndef MODIFIED_FONT_METRIC_HH
 
10
#define MODIFIED_FONT_METRIC_HH
 
11
 
 
12
#include "font-metric.hh"
 
13
 
 
14
/* Perhaps junk this, and move this to layout_def as interface? */
 
15
struct Modified_font_metric : public Font_metric
 
16
{
 
17
public:
 
18
  Box text_dimension (string) const;
 
19
  Stencil text_stencil (string) const;
 
20
 
 
21
  static SCM make_scaled_font_metric (Font_metric *fm, Real magnification);
 
22
  size_t count () const;
 
23
  Offset get_indexed_wxwy (size_t) const;
 
24
  Offset attachment_point (string) const;
 
25
  size_t name_to_index (string) const;
 
26
  size_t index_to_charcode (size_t) const;
 
27
  Font_metric *original_font () const;
 
28
 
 
29
protected:
 
30
  Font_metric *orig_;
 
31
  Real magnification_;
 
32
 
 
33
  Modified_font_metric (Font_metric *fm, Real magnification);
 
34
  SCM sub_fonts () const;
 
35
  string font_name () const;
 
36
  Real design_size () const;
 
37
  void derived_mark () const;
 
38
  Box get_indexed_char (size_t) const;
 
39
  size_t index_to_ascii (size_t) const;
 
40
  Box get_ascii_char (size_t) const;
 
41
  Box tex_kludge (string) const;
 
42
};
 
43
 
 
44
#endif /* MODIFIED_FONT_METRIC_HH */