mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Base rc.title_height on font vertical extents
This commit is contained in:
parent
4d1363dcae
commit
2297e43cc0
11 changed files with 123 additions and 26 deletions
13
tools/pango/font-height.c
Normal file
13
tools/pango/font-height.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "common/font.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2) {
|
||||
printf("Usage: %s <font-description> (e.g. 'sans 10')\n", argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
printf("height=%d\n", font_height(argv[1]));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue