2 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-toolkit/internal/text/rendering/view-model.h>
22 #include <dali/devel-api/text-abstraction/font-client.h>
26 #include <dali-toolkit/internal/text/glyph-metrics-helper.h>
27 #include <dali-toolkit/internal/text/line-run.h>
35 ViewModel::ViewModel(const ModelInterface* const model)
40 mStartIndexOfElidedGlyphs(0u),
41 mEndIndexOfElidedGlyphs(0u),
42 mFirstMiddleIndexOfElidedGlyphs(0u),
43 mSecondMiddleIndexOfElidedGlyphs(0u)
47 ViewModel::~ViewModel()
51 const Size& ViewModel::GetControlSize() const
53 return mModel->GetControlSize();
56 const Size& ViewModel::GetLayoutSize() const
58 return mModel->GetLayoutSize();
61 const Vector2& ViewModel::GetScrollPosition() const
63 return mModel->GetScrollPosition();
66 HorizontalAlignment::Type ViewModel::GetHorizontalAlignment() const
68 return mModel->GetHorizontalAlignment();
71 VerticalAlignment::Type ViewModel::GetVerticalAlignment() const
73 return mModel->GetVerticalAlignment();
76 DevelText::VerticalLineAlignment::Type ViewModel::GetVerticalLineAlignment() const
78 return mModel->GetVerticalLineAlignment();
81 DevelText::EllipsisPosition::Type ViewModel::GetEllipsisPosition() const
83 return mModel->GetEllipsisPosition();
86 bool ViewModel::IsTextElideEnabled() const
88 return mModel->IsTextElideEnabled();
91 Length ViewModel::GetNumberOfLines() const
93 return mModel->GetNumberOfLines();
96 const LineRun* const ViewModel::GetLines() const
98 return mModel->GetLines();
101 Length ViewModel::GetNumberOfScripts() const
103 return mModel->GetNumberOfScripts();
106 const ScriptRun* const ViewModel::GetScriptRuns() const
108 return mModel->GetScriptRuns();
111 Length ViewModel::GetNumberOfGlyphs() const
113 if(mIsTextElided && mModel->IsTextElideEnabled())
115 return mElidedGlyphs.Count();
119 return mModel->GetNumberOfGlyphs();
125 GlyphIndex ViewModel::GetStartIndexOfElidedGlyphs() const
127 if(mIsTextElided && mModel->IsTextElideEnabled())
129 return mStartIndexOfElidedGlyphs;
132 return mModel->GetStartIndexOfElidedGlyphs();
135 GlyphIndex ViewModel::GetEndIndexOfElidedGlyphs() const
137 if(mIsTextElided && mModel->IsTextElideEnabled())
139 return mEndIndexOfElidedGlyphs;
142 return mModel->GetEndIndexOfElidedGlyphs();
145 GlyphIndex ViewModel::GetFirstMiddleIndexOfElidedGlyphs() const
147 if(mIsTextElided && mModel->IsTextElideEnabled())
149 return mFirstMiddleIndexOfElidedGlyphs;
152 return mModel->GetFirstMiddleIndexOfElidedGlyphs();
155 GlyphIndex ViewModel::GetSecondMiddleIndexOfElidedGlyphs() const
157 if(mIsTextElided && mModel->IsTextElideEnabled())
159 return mSecondMiddleIndexOfElidedGlyphs;
162 return mModel->GetSecondMiddleIndexOfElidedGlyphs();
165 const GlyphInfo* const ViewModel::GetGlyphs() const
167 if(mIsTextElided && mModel->IsTextElideEnabled())
169 return mElidedGlyphs.Begin();
173 return mModel->GetGlyphs();
179 const Vector2* const ViewModel::GetLayout() const
181 if(mIsTextElided && mModel->IsTextElideEnabled())
183 return mElidedLayout.Begin();
187 return mModel->GetLayout();
193 const Vector4* const ViewModel::GetColors() const
195 return mModel->GetColors();
198 const ColorIndex* const ViewModel::GetColorIndices() const
200 return mModel->GetColorIndices();
203 const Vector4* const ViewModel::GetBackgroundColors() const
205 return mModel->GetBackgroundColors();
208 const ColorIndex* const ViewModel::GetBackgroundColorIndices() const
210 return mModel->GetBackgroundColorIndices();
213 bool const ViewModel::IsMarkupBackgroundColorSet() const
215 return mModel->IsMarkupBackgroundColorSet();
218 const Vector4& ViewModel::GetDefaultColor() const
220 return mModel->GetDefaultColor();
223 const Vector2& ViewModel::GetShadowOffset() const
225 return mModel->GetShadowOffset();
228 const Vector4& ViewModel::GetShadowColor() const
230 return mModel->GetShadowColor();
233 const float& ViewModel::GetShadowBlurRadius() const
235 return mModel->GetShadowBlurRadius();
238 const Vector4& ViewModel::GetUnderlineColor() const
240 return mModel->GetUnderlineColor();
243 bool ViewModel::IsUnderlineEnabled() const
245 return mModel->IsUnderlineEnabled();
248 bool const ViewModel::IsMarkupUnderlineSet() const
250 return mModel->IsMarkupUnderlineSet();
253 float ViewModel::GetUnderlineHeight() const
255 return mModel->GetUnderlineHeight();
258 Text::Underline::Type ViewModel::GetUnderlineType() const
260 return mModel->GetUnderlineType();
263 float ViewModel::GetDashedUnderlineWidth() const
265 return mModel->GetDashedUnderlineWidth();
268 float ViewModel::GetDashedUnderlineGap() const
270 return mModel->GetDashedUnderlineGap();
273 Length ViewModel::GetNumberOfUnderlineRuns() const
275 return mModel->GetNumberOfUnderlineRuns();
278 void ViewModel::GetUnderlineRuns(UnderlinedGlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns) const
280 mModel->GetUnderlineRuns(underlineRuns, index, numberOfRuns);
283 const Vector4& ViewModel::GetOutlineColor() const
285 return mModel->GetOutlineColor();
288 uint16_t ViewModel::GetOutlineWidth() const
290 return mModel->GetOutlineWidth();
293 const Vector4& ViewModel::GetBackgroundColor() const
295 return mModel->GetBackgroundColor();
298 bool ViewModel::IsBackgroundEnabled() const
300 return mModel->IsBackgroundEnabled();
303 bool ViewModel::IsMarkupProcessorEnabled() const
305 return mModel->IsMarkupProcessorEnabled();
308 const GlyphInfo* ViewModel::GetHyphens() const
310 return mModel->GetHyphens();
313 const Length* ViewModel::GetHyphenIndices() const
315 return mModel->GetHyphenIndices();
318 Length ViewModel::GetHyphensCount() const
320 return mModel->GetHyphensCount();
323 const float ViewModel::GetCharacterSpacing() const
325 return mModel->GetCharacterSpacing();
328 const Character* ViewModel::GetTextBuffer() const
330 return mModel->GetTextBuffer();
333 const Vector<CharacterIndex>& ViewModel::GetGlyphsToCharacters() const
335 return mModel->GetGlyphsToCharacters();
338 void ViewModel::ElideGlyphs()
340 mIsTextElided = false;
341 mStartIndexOfElidedGlyphs = mFirstMiddleIndexOfElidedGlyphs = mSecondMiddleIndexOfElidedGlyphs = 0;
342 mEndIndexOfElidedGlyphs = mModel->GetNumberOfGlyphs() - 1u;
344 auto ellipsisPosition = GetEllipsisPosition();
345 auto characterSpacing = GetCharacterSpacing();
346 const Character* textBuffer = GetTextBuffer();
347 const Vector<CharacterIndex>& glyphToCharacterMap = GetGlyphsToCharacters();
348 const CharacterIndex* glyphToCharacterMapBuffer = glyphToCharacterMap.Begin();
349 float calculatedAdvance = 0.f;
351 if(IsTextElideEnabled())
353 const Length numberOfLines = mModel->GetNumberOfLines();
354 if(0u != numberOfLines)
356 const LineRun* const lines = mModel->GetLines();
358 //Get line of ellipsis
359 const LineRun* ellipsisLine = nullptr;
360 const LineRun* ellipsisNextLine = nullptr;
362 for(Length lineIndex = 0; lineIndex < numberOfLines; lineIndex++)
364 const LineRun* line = (lines + lineIndex);
368 if(lineIndex < numberOfLines - 1u)
370 ellipsisNextLine = (lines + lineIndex + 1u);
376 // Check if there is a line contains Ellipsis.
377 // Then find total number of glyphs and total number of laid out glyphs.
378 // Check where to set Ellipsis glyph in line.
379 // Determine index of Ellipsis glyph and how many glyphs should be replaced by Ellipsis glyph, according to width of Ellipsis glyph.
380 if(ellipsisLine != nullptr)
382 // Total number of glyphs.
383 const Length numberOfGlyphs = mModel->GetNumberOfGlyphs();
384 // Total number of laid out glyphs.
385 Length numberOfActualLaidOutGlyphs = 0u;
387 // Accumulate laid out glyphs for each line to find total number of laid out glyphs.
388 for(Length lineIndex = 0u; lineIndex < numberOfLines; lineIndex++)
390 numberOfActualLaidOutGlyphs += lines[lineIndex].glyphRun.numberOfGlyphs + lines[lineIndex].glyphRunSecondHalf.numberOfGlyphs;
393 // Make sure there are laid out glyphs.
394 if(0u != numberOfActualLaidOutGlyphs)
396 // There are elided glyphs.
397 mIsTextElided = true;
398 TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get();
400 // Retrieve the whole glyphs and their positions.
401 const GlyphInfo* const glyphs = mModel->GetGlyphs();
402 const Vector2* const positions = mModel->GetLayout();
404 // Copy the glyphs to be elided.
405 mElidedGlyphs.Resize(numberOfGlyphs);
406 mElidedLayout.Resize(numberOfGlyphs);
407 GlyphInfo* elidedGlyphsBuffer = mElidedGlyphs.Begin();
408 Vector2* elidedPositionsBuffer = mElidedLayout.Begin();
410 memcpy(elidedGlyphsBuffer, glyphs, numberOfGlyphs * sizeof(GlyphInfo));
411 memcpy(elidedPositionsBuffer, positions, numberOfGlyphs * sizeof(Vector2));
413 const Size& controlSize = mModel->GetControlSize();
415 // Set index where to set Ellipsis according to the selected position of Ellipsis.
416 // Start with this index to replace its glyph by Ellipsis, if the width is not enough, then remove more glyphs.
417 GlyphIndex startIndexOfEllipsis = 0u;
418 if(ellipsisPosition == DevelText::EllipsisPosition::START)
420 // It's the fisrt glyph in line.
421 startIndexOfEllipsis = ellipsisLine->glyphRun.glyphIndex;
423 else if(ellipsisPosition == DevelText::EllipsisPosition::MIDDLE)
425 // It's the second middle of the line in case the line split to two halves.
426 // Otherwise it's It's the last glyph in line (line before all removed lines).
427 startIndexOfEllipsis = ellipsisLine->isSplitToTwoHalves ? (ellipsisLine->glyphRunSecondHalf.glyphIndex) : (ellipsisLine->glyphRun.glyphIndex + ellipsisLine->glyphRun.numberOfGlyphs - 1u);
429 else // DevelText::EllipsisPosition::END
431 // It's the last glyph in line.
432 startIndexOfEllipsis = ellipsisLine->glyphRun.glyphIndex + ellipsisLine->glyphRun.numberOfGlyphs - 1u;
435 // When the hight is not enough then show one glyph and that should be the first laid out glyph.
436 if((1u == numberOfLines) &&
437 (ellipsisLine->ascender - ellipsisLine->descender > controlSize.height))
439 // Replace the first glyph with ellipsis glyph
440 auto indexOfFirstGlyph = (ellipsisPosition == DevelText::EllipsisPosition::START) ? startIndexOfEllipsis : 0u;
442 // Regardless where the location of ellipsis,in-case the hight of line is greater than control's height
443 // then replace the first glyph with ellipsis glyph.
445 // Get the first glyph which is going to be replaced and the ellipsis glyph.
446 GlyphInfo& glyphToRemove = *(elidedGlyphsBuffer + indexOfFirstGlyph);
447 const GlyphInfo& ellipsisGlyph = fontClient.GetEllipsisGlyph(fontClient.GetPointSize(glyphToRemove.fontId));
449 // Change the 'x' and 'y' position of the ellipsis glyph.
450 Vector2& position = *(elidedPositionsBuffer + indexOfFirstGlyph);
452 position.x = ellipsisGlyph.xBearing;
453 position.y = -ellipsisLine->ascender + controlSize.height - ellipsisGlyph.yBearing;
455 // Replace the glyph by the ellipsis glyph and resize the buffers.
456 glyphToRemove = ellipsisGlyph;
458 mElidedGlyphs.Resize(1u);
459 mElidedLayout.Resize(1u);
461 mEndIndexOfElidedGlyphs = mStartIndexOfElidedGlyphs = mFirstMiddleIndexOfElidedGlyphs = mSecondMiddleIndexOfElidedGlyphs = indexOfFirstGlyph;
466 // firstPenX, penY and firstPenSet are used to position the ellipsis glyph if needed.
467 float firstPenX = 0.f; // Used if rtl text is elided.
469 bool firstPenSet = false;
471 // Add the ellipsis glyph.
472 bool inserted = false;
473 float removedGlypsWidth = 0.f;
474 Length numberOfRemovedGlyphs = 0u;
475 GlyphIndex indexOfEllipsis = startIndexOfEllipsis;
477 // Tail Mode: start by the end of line.
478 bool isTailMode = (ellipsisPosition == DevelText::EllipsisPosition::END) ||
479 (ellipsisPosition == DevelText::EllipsisPosition::MIDDLE && numberOfLines != 1u);
481 // The ellipsis glyph has to fit in the place where the last glyph(s) is(are) removed.
484 const GlyphInfo& glyphToRemove = *(elidedGlyphsBuffer + indexOfEllipsis);
486 if(0u != glyphToRemove.fontId)
488 // i.e. The font id of the glyph shaped from the '\n' character is zero.
490 // Need to reshape the glyph as the font may be different in size.
491 const GlyphInfo& ellipsisGlyph = fontClient.GetEllipsisGlyph(fontClient.GetPointSize(glyphToRemove.fontId));
493 if(!firstPenSet || EqualsZero(glyphToRemove.advance))
495 const Vector2& position = *(elidedPositionsBuffer + indexOfEllipsis);
497 // Calculates the penY of the current line. It will be used to position the ellipsis glyph.
498 penY = position.y + glyphToRemove.yBearing;
500 // Calculates the first penX which will be used if rtl text is elided.
501 firstPenX = position.x - glyphToRemove.xBearing;
502 if(firstPenX < -ellipsisGlyph.xBearing)
504 // Avoids to exceed the bounding box when rtl text is elided.
505 firstPenX = -ellipsisGlyph.xBearing;
508 removedGlypsWidth = -ellipsisGlyph.xBearing;
513 calculatedAdvance = GetCalculatedAdvance(*(textBuffer + (*(glyphToCharacterMapBuffer + indexOfEllipsis))), characterSpacing, glyphToRemove.advance);
514 removedGlypsWidth += std::min(calculatedAdvance, (glyphToRemove.xBearing + glyphToRemove.width));
516 // Calculate the width of the ellipsis glyph and check if it fits.
517 const float ellipsisGlyphWidth = ellipsisGlyph.width + ellipsisGlyph.xBearing;
519 // If it is the last glyph to remove, add the ellipsis glyph without checking its width.
520 if((ellipsisGlyphWidth < removedGlypsWidth) || (isTailMode ? (indexOfEllipsis == 0u) : (indexOfEllipsis == numberOfGlyphs - 1u)))
522 GlyphInfo& glyphInfo = *(elidedGlyphsBuffer + indexOfEllipsis);
523 Vector2& position = *(elidedPositionsBuffer + indexOfEllipsis);
524 position.x -= (0.f > glyphInfo.xBearing) ? glyphInfo.xBearing : 0.f;
526 // Replace the glyph by the ellipsis glyph.
527 glyphInfo = ellipsisGlyph;
529 // Change the 'x' and 'y' position of the ellipsis glyph.
530 if(position.x > firstPenX)
534 // To handle case of the mixed languages (LTR then RTL) with
535 // EllipsisPosition::END and the LayoutDirection::RIGHT_TO_LEFT
536 float nextXPositions = ellipsisLine->width;
537 if(indexOfEllipsis + 1u < numberOfGlyphs)
539 Vector2& positionOfNextGlyph = *(elidedPositionsBuffer + indexOfEllipsis + 1u);
540 nextXPositions = positionOfNextGlyph.x;
543 if(position.x > nextXPositions) // RTL language
545 if((indexOfEllipsis > 0u) && ((position.x - nextXPositions) > removedGlypsWidth))
547 // To handle mixed directions
548 // Re-calculates the first penX which will be used if rtl text is elided.
549 firstPenX = position.x - glyphToRemove.xBearing;
550 if(firstPenX < -ellipsisGlyph.xBearing)
552 // Avoids to exceed the bounding box when rtl text is elided.
553 firstPenX = -ellipsisGlyph.xBearing;
555 //Reset the width of removed glyphs
556 removedGlypsWidth = std::min(calculatedAdvance, (glyphToRemove.xBearing + glyphToRemove.width)) - ellipsisGlyph.xBearing;
563 // To handle the case of RTL language with EllipsisPosition::END
564 position.x = firstPenX + removedGlypsWidth - ellipsisGlyphWidth;
570 // To handle the case of LTR language with EllipsisPosition::START
571 position.x = firstPenX + removedGlypsWidth - ellipsisGlyphWidth;
578 // To handle case of the mixed languages (RTL then LTR) with
579 // EllipsisPosition::START and the LayoutDirection::RIGHT_TO_LEFT
580 float nextXPositions = ellipsisLine->width;
581 if(indexOfEllipsis + 1u < numberOfGlyphs)
583 Vector2& positionOfNextGlyph = *(elidedPositionsBuffer + indexOfEllipsis + 1u);
584 nextXPositions = positionOfNextGlyph.x;
587 if(position.x < nextXPositions) // LTR language
589 position.x = firstPenX + removedGlypsWidth - ellipsisGlyphWidth;
591 if((position.x + ellipsisGlyphWidth + ellipsisGlyph.xBearing) > nextXPositions)
593 position.x -= (position.x + ellipsisGlyphWidth + ellipsisGlyph.xBearing) - nextXPositions;
599 position.x += ellipsisGlyph.xBearing;
600 position.y = penY - ellipsisGlyph.yBearing;
608 if(!isTailMode && indexOfEllipsis < numberOfGlyphs - 1u)
610 // Tail Mode: remove glyphs from startIndexOfEllipsis then decrement indexOfEllipsis, until arrive to index zero.
613 else if(isTailMode && indexOfEllipsis > 0u)
615 // Not Tail Mode: remove glyphs from startIndexOfEllipsis then increase indexOfEllipsis, until arrive to last index (numberOfGlyphs - 1u).
620 // No space for the ellipsis.
623 ++numberOfRemovedGlyphs;
625 } // while( !inserted )
627 //Reduce size, shift glyphs and start from ellipsis glyph
628 Length numberOfElidedGlyphs = numberOfActualLaidOutGlyphs - numberOfRemovedGlyphs;
629 mElidedGlyphs.Resize(numberOfElidedGlyphs);
630 mElidedLayout.Resize(numberOfElidedGlyphs);
632 if(ellipsisPosition == DevelText::EllipsisPosition::START)
634 // 'Shifts' glyphs after ellipsis glyph and 'Removes' before ellipsis glyph
635 memcpy(elidedGlyphsBuffer, elidedGlyphsBuffer + indexOfEllipsis, numberOfElidedGlyphs * sizeof(GlyphInfo));
636 memcpy(elidedPositionsBuffer, elidedPositionsBuffer + indexOfEllipsis, numberOfElidedGlyphs * sizeof(Vector2));
638 mStartIndexOfElidedGlyphs = mFirstMiddleIndexOfElidedGlyphs = mSecondMiddleIndexOfElidedGlyphs = indexOfEllipsis;
640 else if(ellipsisPosition == DevelText::EllipsisPosition::MIDDLE)
642 // 'Shifts and connects' glyphs before and after ellipsis glyph and 'Removes' in-between.
643 bool isOnlySecondHalf = false;
647 mFirstMiddleIndexOfElidedGlyphs = indexOfEllipsis;
648 if(ellipsisNextLine != nullptr)
650 mSecondMiddleIndexOfElidedGlyphs = ellipsisNextLine->glyphRun.glyphIndex;
654 mEndIndexOfElidedGlyphs = mSecondMiddleIndexOfElidedGlyphs = mFirstMiddleIndexOfElidedGlyphs;
659 mFirstMiddleIndexOfElidedGlyphs = (ellipsisLine->glyphRun.numberOfGlyphs > 0u) ? (ellipsisLine->glyphRun.glyphIndex + ellipsisLine->glyphRun.numberOfGlyphs - 1u) : (ellipsisLine->glyphRun.glyphIndex);
660 mSecondMiddleIndexOfElidedGlyphs = indexOfEllipsis;
661 isOnlySecondHalf = ellipsisLine->glyphRun.numberOfGlyphs == 0u && ellipsisLine->glyphRunSecondHalf.numberOfGlyphs > 0u;
666 Length numberOfSecondHalfGlyphs = numberOfElidedGlyphs - mFirstMiddleIndexOfElidedGlyphs;
668 //Copy elided glyphs after the ellipsis glyph.
669 memcpy(elidedGlyphsBuffer + mFirstMiddleIndexOfElidedGlyphs, elidedGlyphsBuffer + mSecondMiddleIndexOfElidedGlyphs, numberOfSecondHalfGlyphs * sizeof(GlyphInfo));
670 memcpy(elidedPositionsBuffer + mFirstMiddleIndexOfElidedGlyphs, elidedPositionsBuffer + mSecondMiddleIndexOfElidedGlyphs, numberOfSecondHalfGlyphs * sizeof(Vector2));
674 Length numberOfSecondHalfGlyphs = numberOfElidedGlyphs - mFirstMiddleIndexOfElidedGlyphs + 1u;
676 //Copy elided glyphs after the ellipsis glyph.
677 memcpy(elidedGlyphsBuffer + mFirstMiddleIndexOfElidedGlyphs + 1u, elidedGlyphsBuffer + mSecondMiddleIndexOfElidedGlyphs, numberOfSecondHalfGlyphs * sizeof(GlyphInfo));
678 memcpy(elidedPositionsBuffer + mFirstMiddleIndexOfElidedGlyphs + 1u, elidedPositionsBuffer + mSecondMiddleIndexOfElidedGlyphs, numberOfSecondHalfGlyphs * sizeof(Vector2));
681 else // DevelText::EllipsisPosition::END
683 // 'Removes' all the glyphs after the ellipsis glyph.
684 mEndIndexOfElidedGlyphs = indexOfEllipsis;
692 float ViewModel::GetStrikethroughHeight() const
694 return mModel->GetStrikethroughHeight();
697 const Vector4& ViewModel::GetStrikethroughColor() const
699 return mModel->GetStrikethroughColor();
702 bool ViewModel::IsStrikethroughEnabled() const
704 return mModel->IsStrikethroughEnabled();
707 bool const ViewModel::IsMarkupStrikethroughSet() const
709 return mModel->IsMarkupStrikethroughSet();
712 Length ViewModel::GetNumberOfStrikethroughRuns() const
714 return mModel->GetNumberOfStrikethroughRuns();
717 void ViewModel::GetStrikethroughRuns(StrikethroughGlyphRun* strikethroughRuns, StrikethroughRunIndex index, Length numberOfRuns) const
719 mModel->GetStrikethroughRuns(strikethroughRuns, index, numberOfRuns);
722 Length ViewModel::GetNumberOfBoundedParagraphRuns() const
724 return mModel->GetNumberOfBoundedParagraphRuns();
727 const Vector<BoundedParagraphRun>& ViewModel::GetBoundedParagraphRuns() const
729 return mModel->GetBoundedParagraphRuns();
732 Length ViewModel::GetNumberOfCharacterSpacingGlyphRuns() const
734 return mModel->GetNumberOfCharacterSpacingGlyphRuns();
737 const Vector<CharacterSpacingGlyphRun>& ViewModel::GetCharacterSpacingGlyphRuns() const
739 return mModel->GetCharacterSpacingGlyphRuns();
744 } // namespace Toolkit