mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Add support for pango markup
This commit is contained in:
		
							parent
							
								
									09efe0ce75
								
							
						
					
					
						commit
						2a0836e3bd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
 | 
			
		||||
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text) {
 | 
			
		||||
	PangoLayout *layout = pango_cairo_create_layout(cairo);
 | 
			
		||||
	pango_layout_set_text(layout, text, -1);
 | 
			
		||||
	pango_layout_set_markup(layout, text, -1);
 | 
			
		||||
	PangoFontDescription *desc = pango_font_description_from_string(font);
 | 
			
		||||
	pango_layout_set_font_description(layout, desc);
 | 
			
		||||
	pango_layout_set_single_paragraph_mode(layout, 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue