Bitmap: Add FIXME
This commit is contained in:
		
							parent
							
								
									aa786e268d
								
							
						
					
					
						commit
						d63c8cdc19
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -949,6 +949,7 @@ IntRect Bitmap::textSize(const char *str)
 | 
				
			||||||
	int w, h;
 | 
						int w, h;
 | 
				
			||||||
	TTF_SizeUTF8(font, str, &w, &h);
 | 
						TTF_SizeUTF8(font, str, &w, &h);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// FIXME: This doesn't detect multibyte glyphs correctly
 | 
				
			||||||
	if (p->font->getItalic() && strlen(str) == 1)
 | 
						if (p->font->getItalic() && strlen(str) == 1)
 | 
				
			||||||
		TTF_GlyphMetrics(font, *str, 0, 0, 0, 0, &w);
 | 
							TTF_GlyphMetrics(font, *str, 0, 0, 0, 0, &w);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue