| 
									
										
										
										
											2024-02-27 11:23:12 -05:00
										 |  |  | #ifndef WMENU_PANGO_H
 | 
					
						
							|  |  |  | #define WMENU_PANGO_H
 | 
					
						
							| 
									
										
										
										
											2022-01-16 08:32:58 -05:00
										 |  |  | #include <stdbool.h>
 | 
					
						
							|  |  |  | #include <cairo/cairo.h>
 | 
					
						
							|  |  |  | #include <pango/pangocairo.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int get_font_height(const char *font); | 
					
						
							|  |  |  | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, | 
					
						
							|  |  |  | 		const char *text, double scale); | 
					
						
							|  |  |  | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, | 
					
						
							| 
									
										
										
										
											2023-07-15 18:51:45 -04:00
										 |  |  | 		int *baseline, double scale, const char *text); | 
					
						
							| 
									
										
										
										
											2022-01-16 08:32:58 -05:00
										 |  |  | int text_width(cairo_t *cairo, const char *font, const char *text); | 
					
						
							|  |  |  | void pango_printf(cairo_t *cairo, const char *font, double scale, | 
					
						
							| 
									
										
										
										
											2023-07-15 18:51:45 -04:00
										 |  |  | 		const char *text); | 
					
						
							| 
									
										
										
										
											2022-01-16 08:32:58 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |