summaryrefslogtreecommitdiff
path: root/lily/afm.cc
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2004-11-21 14:57:05 +0000
committerJan Nieuwenhuizen <janneke@gnu.org>2004-11-21 14:57:05 +0000
commita96c695dca9d5aeb37192685383e8a06ab87ac6b (patch)
treeb16c56e8e12c61bfc8a51648e5b606938b55d7a7 /lily/afm.cc
parent029137c21a30934db946d7ac4d3d5e187484e269 (diff)
*** empty log message ***
Diffstat (limited to 'lily/afm.cc')
-rw-r--r--lily/afm.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/lily/afm.cc b/lily/afm.cc
index 155bfa96f6..456f4893c2 100644
--- a/lily/afm.cc
+++ b/lily/afm.cc
@@ -152,15 +152,24 @@ read_afm_file (String nm)
Box
afm_bbox_to_box (AFM_BBox bb)
{
+#if 1 /* Fine for feta; ec-fonts-mftraced do not have AFM :-( */
return Box (Interval (bb.llx, bb.urx) * 0.001 PT,
Interval (bb.lly, bb.ury) * 0.001 PT);
+#else /* FIXME: about right for lmodern. */
+ return Box (Interval (bb.llx, bb.urx) * 1.14 * 0.001 PT,
+ Interval (bb.lly, bb.ury) * 1.14 * 0.001 PT);
+#endif
}
Offset
Adobe_font_metric::get_indexed_wxwy (int k) const
{
AFM_CharMetricInfo const *mi = font_info_->cmi + k;
+#if 1 /* Fine for feta; ec-fonts-mftraced do not have AFM :-(
return Offset (mi->wx, mi->wy) * 0.001 PT;
+#else /* FIXME: about right for lmodern. */
+ return Offset (mi->wx, mi->wy) * 1.14 * 0.001 PT;
+#endif
}
Real