mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
parent
2e18133667
commit
af6752c35d
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ static void textbox_initialize_font ( textbox *tb )
|
|||
tbfc->metrics = pango_context_get_metrics ( p_context, tbfc->pfd, NULL );
|
||||
|
||||
PangoLayout *layout = pango_layout_new ( p_context );
|
||||
pango_layout_set_font_description ( layout, tbfc->pfd );
|
||||
pango_layout_set_text ( layout, "aAjb", -1 );
|
||||
PangoRectangle rect;
|
||||
pango_layout_get_pixel_extents ( layout, NULL, &rect );
|
||||
|
|
Loading…
Reference in a new issue