- SCM name_;
- virtual SCM description () const;
- virtual Box get_char (int ascii, Real mag) const;
- virtual Box text_dimension (String, Real mag = 1.0) const;
- virtual Molecule find_by_name (String, Real mag = 1.0) const;
+ SCM description_;
+ string file_name_;
+
+ virtual Stencil text_stencil (string) const;
+ virtual Stencil word_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 Offset get_indexed_wxwy (size_t) const;
+ virtual Box get_indexed_char (size_t index) const;
+ virtual Box get_ascii_char (size_t ascii) const;
+
+ /*
+ WTF are these vsize ?
+
+ Font_metric is not related to vector<>
+ */
+ virtual size_t name_to_index (string) const;
+ virtual size_t index_to_charcode (size_t) const;
+ virtual size_t index_to_ascii (size_t) const;
+ virtual Real design_size () const;
+ virtual Stencil find_by_name (string) const;
+ virtual Stencil get_indexed_char_stencil (size_t k) 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);