mirror of
https://codeberg.org/adnano/wmenu.git
synced 2026-02-20 01:40:16 -05:00
Move menu and rendering logic into separate files
This commit is contained in:
parent
1104e8e51b
commit
e8782db9c8
10 changed files with 1024 additions and 963 deletions
4
pango.c
4
pango.c
|
|
@ -5,7 +5,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int get_font_height(char *fontstr) {
|
||||
#include "pango.h"
|
||||
|
||||
int get_font_height(const char *fontstr) {
|
||||
PangoFontMap *fontmap = pango_cairo_font_map_get_default();
|
||||
PangoContext *context = pango_font_map_create_context(fontmap);
|
||||
PangoFontDescription *desc = pango_font_description_from_string(fontstr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue