mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	common/font: Add scale argument
This commit is contained in:
		
							parent
							
								
									2aaf26e87b
								
							
						
					
					
						commit
						f3a685155d
					
				
					 4 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,7 @@ int font_height(struct font *font);
 | 
			
		|||
 * @color: foreground color in rgba format
 | 
			
		||||
 */
 | 
			
		||||
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color);
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * font_buffer_update - Wrapper around font_buffer_create
 | 
			
		||||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
 | 
			
		|||
 * wlr_buffer_drop() will be called on the buffer.
 | 
			
		||||
 */
 | 
			
		||||
void font_buffer_update(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color);
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * font_finish - free some font related resources
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue