int poor_stretched_font_rep::index_glyph (string s, font_metric& fnm, font_glyphs& fng) { int c= base->index_glyph (s, fnm, fng); if (c < 0) return c; fnm= stretched (fnm, 1.0, factor); fng= stretched (fng, 1.0, factor); return c; }
int poor_bbb_font_rep::index_glyph (string s, font_metric& fnm, font_glyphs& fng) { int c= base->index_glyph (s, fnm, fng); if (c < 0) return c; fnm= bolden (fnm, fat, 0); fng= make_bbb (fng, wpen, hpen, fat); return c; }
int poor_distorted_font_rep::index_glyph (string s, font_metric& fnm, font_glyphs& fng) { int c= base->index_glyph (s, fnm, fng); if (c < 0) return c; //fnm= distorted (fnm, kind); fng= distorted (fng, kind, wfn); return c; }
glyph poor_bbb_font_rep::get_glyph (string s) { glyph gl= base->get_glyph (s); if (is_nil (gl)) return gl; font_metric fnm; font_glyphs fng; int c= base->index_glyph (s, fnm, fng); if (c < 0) return glyph (); return make_bbb (gl, c, wpen, hpen, fat); }