X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ffont-metric.hh;h=e385a1e7af7ad603a9bb043b0c7fa4dcb6b9a995;hb=67cd07e55d5ec908c246ae543e480d367b61d6b3;hp=71ba92175385924685ab99e6f3b19ac172e48bc4;hpb=0b544cfb7332615ef809b71b57ab656741311ae1;p=lilypond.git diff --git a/lily/include/font-metric.hh b/lily/include/font-metric.hh index 71ba921753..e385a1e7af 100644 --- a/lily/include/font-metric.hh +++ b/lily/include/font-metric.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1999--2014 Han-Wen Nienhuys + Copyright (C) 1999--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,8 +30,14 @@ typedef std::map Index_to_charcode_map; -class Font_metric +class Font_metric : public Smob { +public: + int print_smob (SCM, scm_print_state *) const; + SCM mark_smob () const; + static const char * const type_p_name_; + virtual ~Font_metric (); +private: DECLARE_CLASSNAME (Font_metric); public: @@ -54,7 +60,6 @@ public: virtual Stencil find_by_name (string) const; virtual SCM sub_fonts () const; virtual SCM font_file_name () const; - DECLARE_SMOBS (Font_metric); private: /* No copying, no implicit copy constructor. */ @@ -66,7 +71,6 @@ protected: Font_metric (); }; -DECLARE_UNSMOB (Font_metric, metrics); char *pfb2pfa (Byte const *pfb, int length);