- frontend::FontMetrics const & fm = theFontMetrics(pi.base.font);
-
- // get the length of the parameters in pixels
- Length offset = Length(to_ascii(getParam("offset")));
- int o = offset.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));
- Length width = Length(to_ascii(getParam("width")));
- int w = width.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));
- Length height = Length(to_ascii(getParam("height")));
- int h = height.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));