Add FiguredBass to ChoirStaff's accepts list.
[lilypond/mpolesky.git] / lily / include / open-type-font.hh
blob99f467290347db3aa6b59068077ed482f4e752fb
1 /*
2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2004--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef OPEN_TYPE_FONT_HH
21 #define OPEN_TYPE_FONT_HH
24 #include "font-metric.hh"
26 Index_to_charcode_map make_index_to_charcode_map (FT_Face face);
27 void get_unicode_name (char*s, FT_ULong code);
28 void get_glyph_index_name (char*s, FT_ULong code);
30 class Open_type_font : public Font_metric
32 /* handle to face object */
33 FT_Face face_;
35 SCM lily_subfonts_;
36 SCM lily_character_table_;
37 SCM lily_global_table_;
38 SCM lily_index_to_bbox_table_;
40 Index_to_charcode_map index_to_charcode_map_;
41 Open_type_font (FT_Face);
43 DECLARE_CLASSNAME(Open_type_font);
44 public:
45 SCM get_subfonts () const;
46 SCM get_global_table () const;
47 SCM get_char_table () const;
48 SCM glyph_list () const;
50 string get_otf_table (string tag) const;
51 static SCM make_otf (string);
52 string font_name () const;
53 ~Open_type_font ();
54 Offset attachment_point (string) const;
55 size_t count () const;
56 Box get_indexed_char (size_t) const;
57 size_t name_to_index (string) const;
58 //size_t glyph_name_to_charcode (string) const;
59 size_t index_to_charcode (size_t) const;
60 void derived_mark () const;
61 SCM sub_fonts () const;
62 Real design_size () const;
65 string get_otf_table (FT_Face face, string tag);
66 FT_Face open_ft_face (string str, FT_Long idx);
69 #endif /* OPEN_TYPE_FONT_HH */