return index_to_ascii (i);
}
-Stencil
-Font_metric::get_indexed_char_stencil (size_t code) const
-{
- size_t idx = index_to_ascii (code);
- SCM at = scm_list_3 (ly_symbol2scm ("char"), self_scm (),
- scm_from_unsigned (idx));
- Box b = get_indexed_char_dimensions (code);
- return Stencil (b, at);
-}
-
Offset
Font_metric::attachment_point (string) 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_indexed_char_dimensions (size_t index) const;
/*
WTF are these vsize ?
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 SCM sub_fonts () const;
virtual SCM font_file_name () const;
DECLARE_SMOBS (Font_metric);
string font_name () const;
Real design_size () const;
void derived_mark () const;
- Box get_indexed_char (size_t) const;
+ Box get_indexed_char_dimensions (size_t) const;
size_t index_to_ascii (size_t) const;
};