Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextShapeLayoutFunc.h File Reference
#include "KoSvgTextShape_p.h"

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.
 
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)
 
QVector< LineBoxKoSvgTextShapeLayoutFunc::flowTextInShapes (const KoSvgTextProperties &properties, const QMap< int, int > &logicalToVisual, QVector< CharacterResult > &result, QList< QPainterPath > shapes, QPointF &startPos, const KoSvgText::ResolutionHandler &resHandler)
 
QList< QPainterPath > KoSvgTextShapeLayoutFunc::getShapes (QList< KoShape * > shapesInside, QList< KoShape * > shapesSubtract, const KoSvgTextProperties &properties)