Font: 'exist?' allows any object (returns false if not string)
This commit is contained in:
		
							parent
							
								
									6c9fbc1465
								
							
						
					
					
						commit
						cc0ab35f10
					
				
					 3 changed files with 17 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -247,6 +247,9 @@ Color FontPrivate::defaultColorTmp(255, 255, 255, 255);
 | 
			
		|||
 | 
			
		||||
bool Font::doesExist(const char *name)
 | 
			
		||||
{
 | 
			
		||||
	if (!name)
 | 
			
		||||
		return false;
 | 
			
		||||
 | 
			
		||||
	return shState->fontState().fontPresent(name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue