diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2005-07-15 14:39:31 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2005-07-15 14:39:31 +0000 |
| commit | 8f9aae0cc29d91dd9b4e3d3639ed3d58a7aa923b (patch) | |
| tree | 6a76bb9539289f4c7ad27ee3fb54d4f16fdb794b /render/render.c | |
| parent | 69a4abe1d035cf3c9b98775e40e6445e51319b9d (diff) | |
fix the dpi stuff with pango by reading the right ascent and descent stuff
Diffstat (limited to 'render/render.c')
| -rw-r--r-- | render/render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/render.c b/render/render.c index cb29165e..a4161405 100644 --- a/render/render.c +++ b/render/render.c @@ -311,7 +311,7 @@ void RrMargins (RrAppearance *a, gint *l, gint *t, gint *r, gint *b) void RrMinsize(RrAppearance *a, gint *w, gint *h) { gint i; - gint m; + RrSize *m; gint l, t, r, b; *w = *h = 0; @@ -326,9 +326,9 @@ void RrMinsize(RrAppearance *a, gint *w, gint *h) case RR_TEXTURE_TEXT: m = RrFontMeasureString(a->texture[i].data.text.font, a->texture[i].data.text.string); - *w = MAX(*w, m); - m = RrFontHeight(a->texture[i].data.text.font); - *h += MAX(*h, m); + *w = MAX(*w, m->width + 4); + m->height = RrFontHeight(a->texture[i].data.text.font); + *h += MAX(*h, m->height); break; case RR_TEXTURE_RGBA: *w += MAX(*w, a->texture[i].data.rgba.width); |
