Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextShapeLayoutFunc_lines.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  KoSvgTextShapeLayoutFunc
 

Functions

void KoSvgTextShapeLayoutFunc::addWordToLine (QVector< CharacterResult > &result, QPointF &currentPos, QVector< int > &wordIndices, LineBox &currentLine, bool ltr, bool isHorizontal)
 addWordToLine Small function used in break lines to quickly add a 'word' to the current line. Returns the last added index.
 
static void KoSvgTextShapeLayoutFunc::applyInlineSizeAnchoring (QVector< CharacterResult > &result, LineChunk &chunk, const KoSvgText::TextAnchor anchor, const QPointF anchorPoint, const bool ltr, const bool isHorizontal, const QPointF textIndent, const KoSvgText::ResolutionHandler &resHandler)
 
QVector< LineBoxKoSvgTextShapeLayoutFunc::breakLines (const KoSvgTextProperties &properties, const QMap< int, int > &logicalToVisual, QVector< CharacterResult > &result, QPointF startPos, const KoSvgText::ResolutionHandler &resHandler)
 
void KoSvgTextShapeLayoutFunc::calculateLineHeight (CharacterResult cr, double &ascent, double &descent, bool isHorizontal, bool compare)
 calculateLineHeight calculate the total ascent and descent (including baseline-offset) of a charResult and optionally only return it if it is larger than the provided ascent and descent variable. This is necessary for proper line-height calculation.
 
void KoSvgTextShapeLayoutFunc::finalizeLine (QVector< CharacterResult > &result, QPointF &currentPos, LineBox &currentLine, QPointF &lineOffset, const KoSvgText::TextAnchor anchor, const KoSvgText::WritingMode writingMode, const bool ltr, const bool inlineSize, const bool textInShape, const KoSvgText::ResolutionHandler &resHandler)
 
static void KoSvgTextShapeLayoutFunc::handleCollapseAndHang (QVector< CharacterResult > &result, LineChunk &chunk, bool ltr, bool isHorizontal)
 
static QPointF KoSvgTextShapeLayoutFunc::lineHeightOffset (KoSvgText::WritingMode writingMode, QVector< CharacterResult > &result, LineBox &currentLine, const bool firstLine, const KoSvgText::ResolutionHandler resHandler)