design-size and units_per_EM.
2004-12-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/open-type-font.cc (get_indexed_char): scale metrics by
+ design-size and units_per_EM.
+
* mf/bigcheese.pe.in: set PUA codepoints before loading din & nummer.
2004-12-12 Jan Nieuwenhuizen <janneke@gnu.org>
*/
+#include <stdio.h>
+
#include "warn.hh"
#include "open-type-font.hh"
-
-#include <stdio.h>
+#include "dimensions.hh"
SCM
Open_type_font::make_otf (String str)
{
FT_UInt idx = signed_idx;
FT_Load_Glyph (face_,
- idx,
- FT_LOAD_NO_SCALE);
+ idx,
+ FT_LOAD_NO_SCALE);
FT_Glyph_Metrics m = face_->glyph->metrics;
int hb = m.horiBearingX;
int vb = m.horiBearingY;
Box b (Interval (-hb, m.width - hb),
Interval (-vb, m.height - vb));
+
+ Real point_constant = 1 PT;
+
+ b.scale (design_size() * Real (point_constant) / face_->units_per_EM);
return b;
}
encoding_table_ = SCM_EOL;
}
-
-
void
Tex_font_metric::derived_mark () const
{