diff options
author | Jan Nieuwenhuizen <janneke@gnu.org> | 2004-11-21 14:57:05 +0000 |
---|---|---|
committer | Jan Nieuwenhuizen <janneke@gnu.org> | 2004-11-21 14:57:05 +0000 |
commit | a96c695dca9d5aeb37192685383e8a06ab87ac6b (patch) | |
tree | b16c56e8e12c61bfc8a51648e5b606938b55d7a7 /lily/afm.cc | |
parent | 029137c21a30934db946d7ac4d3d5e187484e269 (diff) |
*** empty log message ***
Diffstat (limited to 'lily/afm.cc')
-rw-r--r-- | lily/afm.cc | 9 |
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 |