mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed another failure mode for the wrapText shaped text hack
This commit is contained in:
parent
4931ea9749
commit
75b93794b0
|
@ -385,7 +385,7 @@ std::string Font::wrapText(const std::string& text,
|
||||||
lastSpacePos = lineWidth;
|
lastSpacePos = lineWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lineWidth + charWidth <= maxLength) {
|
if (lineWidth + charWidth <= maxLength || skipAbbreviation) {
|
||||||
if (lineWidth + charWidth + dotsWidth > maxLength)
|
if (lineWidth + charWidth + dotsWidth > maxLength)
|
||||||
dotsSection.emplace_back(std::make_pair(byteCount, charWidth));
|
dotsSection.emplace_back(std::make_pair(byteCount, charWidth));
|
||||||
lineWidth += charWidth;
|
lineWidth += charWidth;
|
||||||
|
|
Loading…
Reference in a new issue