mirror of
https://github.com/labwc/labwc.git
synced 2026-02-28 01:40:29 -05:00
font: font_texture_create() support font size argument
This commit is contained in:
parent
16620698fb
commit
a668f6f73d
6 changed files with 58 additions and 35 deletions
|
|
@ -125,7 +125,11 @@ osd_update(struct server *server)
|
|||
y = OSD_BORDER_WIDTH;
|
||||
|
||||
/* vertically center align */
|
||||
y += (OSD_ITEM_HEIGHT - font_height("sans 10")) / 2;
|
||||
struct font font = {
|
||||
.name = "sans",
|
||||
.size = 10,
|
||||
};
|
||||
y += (OSD_ITEM_HEIGHT - font_height(&font)) / 2;
|
||||
|
||||
wl_list_for_each(view, &server->views, link) {
|
||||
if (!isfocusable(view)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue