Font_metric::get_indexed_char_dimensions().
expr = scm_list_3 (ly_symbol2scm ("named-glyph"),
self_scm (),
ly_string2scm (s));
- b = get_indexed_char (idx);
+ b = get_indexed_char_dimensions (idx);
}
Stencil q (b, expr);
}
Box
-Font_metric::get_indexed_char (size_t k) const
+Font_metric::get_indexed_char_dimensions (size_t k) const
{
return Box (Interval (0, 0), Interval (0, 0));
}
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 (code);
+ Box b = get_indexed_char_dimensions (code);
return Stencil (b, at);
}
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 ?
~Open_type_font ();
Offset attachment_point (string) const;
size_t count () const;
- Box get_indexed_char (size_t) const;
+ Box get_indexed_char_dimensions (size_t) const;
size_t name_to_index (string) const;
//size_t glyph_name_to_charcode (string) const;
size_t index_to_charcode (size_t) const;
}
Box
-Modified_font_metric::get_indexed_char (vsize i) const
+Modified_font_metric::get_indexed_char_dimensions (vsize i) const
{
- Box b = orig_->get_indexed_char (i);
+ Box b = orig_->get_indexed_char_dimensions (i);
b.scale (magnification_);
return b;
}
int k = fm->name_to_index (key);
if (k >= 0)
{
- Box b = fm->get_indexed_char (k);
+ Box b = fm->get_indexed_char_dimensions (k);
Offset wxwy = fm->attachment_point (key);
for (int i = X_AXIS ; i < NO_AXES; i++)
{
}
Box
-Open_type_font::get_indexed_char (size_t signed_idx) const
+Open_type_font::get_indexed_char_dimensions (size_t signed_idx) const
{
if (SCM_HASHTABLE_P (lily_index_to_bbox_table_))
{
do
{
int cmp = (lo + hi) / 2;
- b = fm->get_indexed_char (cmp);
+ b = fm->get_indexed_char_dimensions (cmp);
if (b[Y_AXIS].is_empty () || b[Y_AXIS].length () > y)
hi = cmp;
else