mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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 );
|
tbfc->metrics = pango_context_get_metrics ( p_context, tbfc->pfd, NULL );
|
||||||
|
|
||||||
PangoLayout *layout = pango_layout_new ( p_context );
|
PangoLayout *layout = pango_layout_new ( p_context );
|
||||||
|
pango_layout_set_font_description ( layout, tbfc->pfd );
|
||||||
pango_layout_set_text ( layout, "aAjb", -1 );
|
pango_layout_set_text ( layout, "aAjb", -1 );
|
||||||
PangoRectangle rect;
|
PangoRectangle rect;
|
||||||
pango_layout_get_pixel_extents ( layout, NULL, &rect );
|
pango_layout_get_pixel_extents ( layout, NULL, &rect );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue