mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fixed a potential issue where globally disabling text shaping could cause space detection to fail
This commit is contained in:
parent
b0a7e76974
commit
ce3d50d2b3
|
@ -346,7 +346,11 @@ TextCache* Font::buildTextCache(const std::string& text,
|
||||||
bool spaceMatch {false};
|
bool spaceMatch {false};
|
||||||
if (needGlyphsPos && segmentIndex > 0) {
|
if (needGlyphsPos && segmentIndex > 0) {
|
||||||
unsigned int spaceChar {0};
|
unsigned int spaceChar {0};
|
||||||
|
#if (DISABLE_SHAPING)
|
||||||
|
if (true)
|
||||||
|
#else
|
||||||
if (!mShapeText)
|
if (!mShapeText)
|
||||||
|
#endif
|
||||||
spaceChar = 32;
|
spaceChar = 32;
|
||||||
else if (segmentsHB[segmentIndex - 1].fontHB == mFontHB)
|
else if (segmentsHB[segmentIndex - 1].fontHB == mFontHB)
|
||||||
spaceChar = mSpaceGlyph;
|
spaceChar = mSpaceGlyph;
|
||||||
|
|
Loading…
Reference in a new issue