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

« back to all changes in this revision

Viewing changes to lily/include/tfm-reader.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
 
/*   
 
1
/*
2
2
  tfm-reader.hh -- declare Tex_font_metric_reader
3
 
  
 
3
 
4
4
  source file of the GNU LilyPond music typesetter
5
 
  
6
 
  (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 
5
 
 
6
  (c) 1999--2006 Jan Nieuwenhuizen <janneke@gnu.org>
7
7
 
8
8
 
9
9
  revamped code from GNU Fontutils-0.6
10
 
 
11
 
 */
 
10
*/
12
11
 
13
12
#ifndef TFM_READER_HH
14
13
#define TFM_READER_HH
21
20
private:
22
21
  Real get_U32_fix ();
23
22
  Real get_U32_fix_scaled ();
24
 
  String get_bcpl_string ();
 
23
  string get_bcpl_string ();
25
24
  void read_header ();
26
25
  void read_params ();
27
26
  void read_char_metrics ();
28
27
  Tex_font_char_metric read_char_metric (Char_code code);
29
28
  Tex_font_char_metric read_char ();
30
 
  void read_lig_kern_program (Array<Tfm_ligature>* ligatures, Array <Tfm_kern>* kerns);
31
 
 
 
29
  void read_lig_kern_program (vector<Tfm_ligature> *ligatures,
 
30
                              vector<Tfm_kern> *kerns);
32
31
 
33
32
  Binary_source_file input_;
34
33
 
35
34
public:
36
 
  Tex_font_metric_reader ( String name);
 
35
  Tex_font_metric_reader (string name);
37
36
 
38
 
  
39
37
  Tfm_info info_;
40
38
  Tfm_header header_;
41
 
  Array<Tex_font_char_metric> char_metrics_;
42
 
  Array<int> ascii_to_metric_idx_;
 
39
  vector<Tex_font_char_metric> char_metrics_;
 
40
  vector<vsize> ascii_to_metric_idx_;
43
41
};
44
42
 
45
 
 
46
43
#endif /* TFM_READER_HH */
47
44