Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

NR::Point Inkscape::Text::Layout::characterAnchorPoint ( iterator const &  it  )  const

For latin text, the left side of the character, on the baseline

Definition at line 210 of file Layout-TNG-OutIter.cpp.

References Inkscape::Text::Layout::iterator::_char_index.

{
    if (_characters.empty())
        return _empty_cursor_shape.position;
    if (it._char_index == _characters.size()) {
        return NR::Point(_chunks.back().left_x + _spans.back().x_end, _lines.back().baseline_y + _spans.back().baseline_shift);
    } else {
        return NR::Point(_characters[it._char_index].chunk(this).left_x
                             + _spans[_characters[it._char_index].in_span].x_start
                             + _characters[it._char_index].x,
                         _characters[it._char_index].line(this).baseline_y
                             + _characters[it._char_index].span(this).baseline_shift);
    }
}


Generated by  Doxygen 1.6.0   Back to index