SCM name_list = SCM_EOL;
SCM *name_tail = &name_list;
- for (SCM s = font_list; gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list; ly_pair_p (s); s = ly_cdr (s))
{
- if (Font_metric *fm = unsmob_metrics (gh_car (s)))
+ if (Font_metric *fm = unsmob_metrics (ly_car (s)))
{
- *tail = scm_cons (gh_car (s),SCM_EOL);
+ *tail = scm_cons (ly_car (s),SCM_EOL);
tail = SCM_CDRLOC (*tail);
- if (!gh_number_p (mag))
+ if (!ly_number_p (mag))
/* Ugh. */
- mag = gh_cdr (fm->description_);
+ mag = ly_cdr (fm->description_);
- *name_tail = scm_cons (gh_car (fm->description_), SCM_EOL);
+ *name_tail = scm_cons (ly_car (fm->description_), SCM_EOL);
name_tail = SCM_CDRLOC (*name_tail);
}
}
Real
Virtual_font_metric::design_size () const
{
- return unsmob_metrics (gh_car (font_list_))-> design_size ();
+ return unsmob_metrics (ly_car (font_list_))-> design_size ();
}
void
Virtual_font_metric::count () const
{
int k = 0;
- for (SCM s = font_list_; gh_pair_p (s); s = gh_cdr (s))
- k += unsmob_metrics (gh_car (s))->count ();
+ for (SCM s = font_list_; ly_pair_p (s); s = ly_cdr (s))
+ k += unsmob_metrics (ly_car (s))->count ();
return k;
}
Virtual_font_metric::find_by_name (String glyph) const
{
Stencil m;
- for (SCM s = font_list_; m.is_empty () && gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list_; m.is_empty () && ly_pair_p (s); s = ly_cdr (s))
{
- m = unsmob_metrics (gh_car (s))->find_by_name (glyph);
+ m = unsmob_metrics (ly_car (s))->find_by_name (glyph);
}
return m;
Virtual_font_metric::get_indexed_wxwy (int code) const
{
int total = 0;
- for (SCM s = font_list_; gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list_; ly_pair_p (s); s = ly_cdr (s))
{
- Font_metric *fm = unsmob_metrics (gh_car (s));
+ Font_metric *fm = unsmob_metrics (ly_car (s));
if (code < total + fm->count ())
return fm->get_indexed_wxwy (code - total);
total += fm->count ();
Virtual_font_metric::get_indexed_char (int code) const
{
int total = 0;
- for (SCM s = font_list_; gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list_; ly_pair_p (s); s = ly_cdr (s))
{
- Font_metric *fm = unsmob_metrics (gh_car (s));
+ Font_metric *fm = unsmob_metrics (ly_car (s));
if (code < total + fm->count ())
return fm->get_indexed_char (code - total);
total += fm->count ();
{
Stencil m;
int total = 0;
- for (SCM s = font_list_; m.is_empty () && gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list_; m.is_empty () && ly_pair_p (s); s = ly_cdr (s))
{
- Font_metric *m =unsmob_metrics (gh_car (s));
+ Font_metric *m =unsmob_metrics (ly_car (s));
int k = m->name_to_index (glyph);
if (k >= 0)
return total + k;
Stencil m ;
int total = 0;
- for (SCM s = font_list_; gh_pair_p (s); s = gh_cdr (s))
+ for (SCM s = font_list_; ly_pair_p (s); s = ly_cdr (s))
{
- Font_metric *fm = unsmob_metrics (gh_car (s));
+ Font_metric *fm = unsmob_metrics (ly_car (s));
if (code < total + fm->count ())
{
/* Ugh. */
String
Virtual_font_metric::coding_scheme () const
{
- Font_metric *fm = unsmob_metrics (gh_car (font_list_));
+ Font_metric *fm = unsmob_metrics (ly_car (font_list_));
return fm->coding_scheme ();
}