-int ParagraphMetrics::singleWidth(pos_type pos, Font const & font) const
-{
- // The most special cases are handled first.
- if (Inset const * inset = par_->getInset(pos))
- return insetDimension(inset).wid;
-
- char_type const c = par_->getChar(pos);
-
- if (c == '\t')
- return 4 * theFontMetrics(font).width(' ');
-
- // Note that this function is only called in
- // RowPainter::paintText, and only used for characters that do
- // not require handling of compose chars or ligatures. It can
- // therefore be kept simple.
- return theFontMetrics(font).width(c);
-}
-
-