source file of the GNU LilyPond music typesetter
- (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1999--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#ifndef FONT_METRIC_HH
#include "lily-proto.hh"
#include "smobs.hh"
#include "virtual-methods.hh"
+#include "freetype.hh"
+
+#include <map>
+using namespace std;
+
+typedef map<FT_UInt, FT_ULong> Index_to_charcode_map;
class Font_metric
{
SCM description_;
string file_name_;
+ virtual Stencil text_stencil (string, bool) const;
+ virtual Stencil word_stencil (string, bool) const;
- virtual Stencil text_stencil (string) const;
+ // ugh.
virtual Box text_dimension (string) const;
+
virtual string font_name () const;
virtual size_t count () const;
virtual Offset attachment_point (string) const;
virtual Stencil get_ascii_char_stencil (size_t k) const;
virtual SCM sub_fonts () const;
virtual SCM font_file_name () const;
- DECLARE_SMOBS (Font_metric,);
+ DECLARE_SMOBS (Font_metric);
private:
/* No copying, no implicit copy constructor. */
DECLARE_UNSMOB (Font_metric, metrics);
-Box lookup_tex_text_dimension (Font_metric *font, SCM text);
+char *pfb2pfa (Byte const *pfb, int length);
#endif /* FONT_METRIC_HH */