mirror of
				https://github.com/RetroDECK/ES-DE.git
				synced 2025-04-10 19:15:13 +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}; | ||||
|                 if (needGlyphsPos && segmentIndex > 0) { | ||||
|                     unsigned int spaceChar {0}; | ||||
| #if (DISABLE_SHAPING) | ||||
|                     if (true) | ||||
| #else | ||||
|                     if (!mShapeText) | ||||
| #endif | ||||
|                         spaceChar = 32; | ||||
|                     else if (segmentsHB[segmentIndex - 1].fontHB == mFontHB) | ||||
|                         spaceChar = mSpaceGlyph; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Leon Styhre
						Leon Styhre