diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2005-04-04 07:02:22 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2005-04-04 07:02:22 +0000 |
| commit | 3b5162400570635b70ff55f25a83b5528cad51b5 (patch) | |
| tree | 94294853bbfc278db9cd8b719473338d0ac10093 /render | |
| parent | 465dd3fb53144663d93343bb1c6ac4ae1fb827b0 (diff) | |
well, i pinpointed the problem code that causes the fonts to be cut off, but this workaround is extremely temporary and possibly only works for me by accident?
Diffstat (limited to 'render')
| -rw-r--r-- | render/font.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/render/font.c b/render/font.c index 8b0d5dbc..98d7c0bc 100644 --- a/render/font.c +++ b/render/font.c @@ -234,8 +234,17 @@ gint RrFontHeight(const RrFont *f) g_object_unref(context); return result; */ - return f->xftfont->ascent + f->xftfont->descent + - (f->shadow ? f->offset : 0); +#ifndef ANNOYING_QUESTION +// Obviously you either remove this or pass -DANNOYING_QUESTION to actually +// compile the code. +#error XXX Does anyone have any idea how the above is supposed to work? +#else +#warning XXX Using very ugly workaround in the meantime. +#endif + + gint x, y; + font_measure_full(f, " ", &x, &y); + return y; #endif /* USE_PANGO */ } |
