summaryrefslogtreecommitdiff
path: root/lily/afm.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>2004-04-03 11:43:06 +0000
committerHan-Wen Nienhuys <hanwen@xs4all.nl>2004-04-03 11:43:06 +0000
commit5547ff00446ba0ac2bdbd1fe3205c2fb8411bb2f (patch)
treecf9e8cad21bd1fe2e2ccbf58d9c4cb1a9e496ad6 /lily/afm.cc
parent066b7776b37ef648faff2b04e03c4b8b59236731 (diff)
* scm/output-tex.scm (font-command): use ly: functions to
construct name. (define-fonts): don't use alist, just dump \font definitions. (font-load-command): calculate proper scaling by taking outputscale from paper argument. * lily/stencil-scheme.cc (fontify_atom): insert Font_metric into expression. * lily/paper-outputter.cc (output_header): pass paper arg to define-fonts * lily/paper-def.cc (font_descriptions): dump list of Scaled_font_metrics (find_scaled_font): take Font_metric argument, store Scaled_font_metrics in hash-table containing (size -> Scaled_font_metrics) alist. (get_dimension): rename from get_realvar * lily/font-metric.cc (LY_DEFINE): ly:font-design-size, ly:font-magnification, ly:font-name: new functions
Diffstat (limited to 'lily/afm.cc')
-rw-r--r--lily/afm.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/lily/afm.cc b/lily/afm.cc
index b0787ac362..f24c80f7a8 100644
--- a/lily/afm.cc
+++ b/lily/afm.cc
@@ -206,11 +206,17 @@ Adobe_font_metric::find_by_name (String s) const
}
SCM at = (scm_list_n (ly_symbol2scm ("char"),
- scm_int2num (cm->code),
- SCM_UNDEFINED));
+ scm_int2num (cm->code),
+ SCM_UNDEFINED));
// at= fontify_atom ((Font_metric*)this, at);
Box b = afm_bbox_to_box (cm->charBBox);
return Stencil (b, at);
}
+
+Real
+Adobe_font_metric::design_size () const
+{
+ return design_size_;
+}