+
+Real
+Tex_font_metric::design_size () const
+{
+ return info_.design_size;
+}
+
+String
+Tex_font_metric::coding_scheme () const
+{
+ String scm = info_.coding_scheme;
+
+ for(int i = 0; i < scm.length (); i++)
+ if (scm[i] == ' ')
+ scm[i] = '-';
+
+ return scm;
+}
+
+int
+Tex_font_metric::name_to_index (String s) const
+{
+ SCM sym = ly_symbol2scm (s.to_str0 ());
+
+ SCM idx = scm_hash_ref (encoding_table_, sym, SCM_BOOL_F);
+ if (ly_c_char_p (idx))
+ {
+ return (unsigned char) ly_scm2char (idx);
+ }
+ else
+ return -1;
+}