*/
-#include "warn.hh"
#include "virtual-font-metric.hh"
+
#include "all-font-metrics.hh"
#include "stencil.hh"
#include "output-def.hh"
-
+#include "warn.hh"
/*
- passing DEF is ughish. Should move into paperdef?
+ passing DEF is ughish. Should move into layoutdef?
*/
Virtual_font_metric::Virtual_font_metric (SCM font_list)
{
{
Stencil m;
for (SCM s = font_list_; m.is_empty () && scm_is_pair (s); s = scm_cdr (s))
- {
- m = unsmob_metrics (scm_car (s))->find_by_name (glyph);
- }
+ m = unsmob_metrics (scm_car (s))->find_by_name (glyph);
return m;
}
int total = 0;
for (SCM s = font_list_; m.is_empty () && scm_is_pair (s); s = scm_cdr (s))
{
- Font_metric *m =unsmob_metrics (scm_car (s));
+ Font_metric *m = unsmob_metrics (scm_car (s));
int k = m->name_to_index (glyph);
if (k >= 0)
return total + k;