From: Han-Wen Nienhuys Date: Sat, 11 Dec 2004 16:35:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: release/2.5.14~451 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6d7cb5da867db7a077f02fb10f969394b11e7390;p=lilypond.git *** empty log message *** --- diff --git a/lily/include/open-type-font.hh b/lily/include/open-type-font.hh new file mode 100644 index 0000000000..7fab468a1f --- /dev/null +++ b/lily/include/open-type-font.hh @@ -0,0 +1,35 @@ +/* + open-type-font.hh -- declare Open_type_font + + source file of the GNU LilyPond music typesetter + + (c) 2004 Han-Wen Nienhuys + +*/ + +#ifndef OPEN_TYPE_FONT_HH +#define OPEN_TYPE_FONT_HH + +#include "freetype.hh" +#include "font-metric.hh" + +class Open_type_font : public Font_metric +{ + FT_Face face_; /* handle to face object */ +public: + static SCM make_otf (String); + virtual ~Open_type_font(); + virtual Box get_indexed_char (int) const; + virtual int name_to_index (String) const; +#if 0 + virtual int count () const; + virtual int index_to_ascii (int) const; + virtual Box get_ascii_char (int) const; + virtual Offset get_indexed_wxwy (int) const; + virtual Real design_size () const; +#endif +}; + + +#endif /* OPEN_TYPE_FONT_HH */ + diff --git a/lily/open-type-font.cc b/lily/open-type-font.cc index ac30e89b70..b33031e04b 100644 --- a/lily/open-type-font.cc +++ b/lily/open-type-font.cc @@ -7,7 +7,6 @@ */ -#if 0 #include "warn.hh" #include "open-type-font.hh" @@ -58,7 +57,7 @@ Open_type_font::get_indexed_char (int signed_idx) int Open_type_font::name_to_index (String nm) { - + return 0; } @@ -67,4 +66,3 @@ Open_type_font::get_design_size () const { return 20.0; } -#endif