Text layout algorithm refactoring - use spatial index

This commit is contained in:
Jakub Melka
2020-01-17 19:29:21 +01:00
parent b346085009
commit f86a9d1c67
2 changed files with 238 additions and 5 deletions

View File

@ -97,6 +97,8 @@ struct TextCharacter
PDFReal advance = 0.0;
QPainterPath boundingBox;
size_t index = 0; // Just temporary index, it is not serialized, just for text layout algorithm
void applyTransform(const QMatrix& matrix);
friend QDataStream& operator<<(QDataStream& stream, const TextCharacter& character);