LineWrap::Mode wrapMode,
bool ellipsisEnabled,
DevelText::EllipsisPosition::Type ellipsisPosition,
- float lineSpacing)
+ float lineSpacing,
+ float characterSpacing)
{
textModel = Model::New(); ///< Pointer to the text's model.
LogicalModelPtr logicalModel = textModel->mLogicalModel;
logicalModel->mAnchors,
logicalModel->mUnderlinedCharacterRuns,
logicalModel->mBackgroundColorRuns,
- logicalModel->mStrikethroughCharacterRuns);
+ logicalModel->mStrikethroughCharacterRuns,
+ logicalModel->mBoundedParagraphRuns,
+ logicalModel->mCharacterSpacingCharacterRuns);
Length textSize = 0u;
const uint8_t* utf8 = NULL;
visualModel->CreateGlyphsPerCharacterTable(0u, 0u, characterCount);
visualModel->CreateCharacterToGlyphTable(0u, 0u, characterCount);
+ visualModel->SetCharacterSpacing(characterSpacing);
+
const Length numberOfGlyphs = glyphs.Count();
// 8) Get the glyph metrics
layoutParameters.startLineIndex = 0u;
layoutParameters.estimatedNumberOfLines = logicalModel->mParagraphInfo.Count();
- bool isAutoScroll = false;
+ bool isAutoScroll = false;
+ bool isAutoScrollMaxTextureExceeded = false;
layoutEngine.LayoutText(layoutParameters,
layoutSize,
false,
isAutoScroll,
+ isAutoScrollMaxTextureExceeded,
ellipsisPosition);
if(options.align)