From: fred Date: Tue, 26 Mar 2002 23:25:01 +0000 (+0000) Subject: lilypond-1.3.74 X-Git-Tag: release/1.5.59~1466 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cef46c0f8c9f329a3c540fac7f65b559f276efb3;p=lilypond.git lilypond-1.3.74 --- diff --git a/lily/include/afm.hh b/lily/include/afm.hh index a0dfa15f42..d761dc093c 100644 --- a/lily/include/afm.hh +++ b/lily/include/afm.hh @@ -18,22 +18,27 @@ #include "font-metric.hh" #include "parse-afm.hh" -struct Adobe_font_metric : Font_metric { +struct Adobe_font_metric : Font_metric +{ AFM_Font_info * font_inf_; - Array ascii_to_metric_idx_; - Dictionary name_to_metric_dict_; - Box get_char (int, bool) const; AFM_CharMetricInfo const *find_char_metric (String name, bool warn=true) const; AFM_CharMetricInfo const *find_ascii_metric (int, bool warn=true) const; String str () const; - Adobe_font_metric (AFM_Font_info*); ~Adobe_font_metric (); + static SCM make_afm (AFM_Font_info*); + +protected: + Array ascii_to_metric_idx_; + Dictionary name_to_metric_dict_; + + Adobe_font_metric (AFM_Font_info*); + }; -Adobe_font_metric * read_afm_file (String fn); +SCM read_afm_file (String fn); Box afm_bbox_to_box (AFM_BBox bb); diff --git a/lily/include/tfm.hh b/lily/include/tfm.hh index 0481ad1b7e..098fbe3e91 100644 --- a/lily/include/tfm.hh +++ b/lily/include/tfm.hh @@ -148,14 +148,16 @@ struct Tex_font_char_metric class Tex_font_metric : public Font_metric { public: - Tex_font_metric (); + static SCM make_tfm (String filename); - void clear (int n); Box get_char (int, bool) const; Tex_font_char_metric const *find_ascii (int ascii, bool warn=true) const; String str () const; +private: + Tex_font_metric (); + Tfm_info info_; Tfm_header header_; Array char_metrics_;