1 #include "dl-vffont.hh"
2 #include "dl-dvi-parser.hh"
4 using namespace DviLib;
7 VfFont::fixup_fontmap (DviFontMap *fontmap)
9 typedef std::map<int, DviFontdefinition *>::iterator It;
10 for (It i = fontmap->fontmap.begin(); i != fontmap->fontmap.end(); ++i)
12 (*i).second->at_size = ((*i).second->at_size / 1048576.0) * preamble->design_size;
14 (*i).second->design_size = 1048576;
19 VfFont::VfFont (AbstractLoader &l,
22 at_size = at_size_arg;
24 preamble = parser.parse_vf_font_preamble();
27 while ((ch = parser.parse_vf_char()) != NULL)
29 chars[ch->character_code] = ch;
30 ch->fontmap = preamble->fontmap;
35 * FIXME: I don't think this is correct, but vftovp.web isn't
36 * totally clear on the issue
39 fixup_fontmap (preamble->fontmap);