Project

General

Profile

font rendering problem

Added by Ernest Calveras almost 11 years ago

Hi there,

The auto-scrolling text showing the song name is shown cropped at the top. Reducing the font size doesn't help. Is anyone else experiencing the same problem? I use Audacious 3.4.1.


Replies (9)

RE: font rendering problem - Added by Thomas Lange almost 11 years ago

You are probably not using bitmap fonts.
Enable them in the Interface Preferences dialog.

RE: font rendering problem - Added by Ernest Calveras almost 11 years ago

Yes, bitmap fonts are rendered correctly. The problem with bitmap fonts is that they don't support non-ascii characters.

RE: font rendering problem - Added by John Lindgren almost 11 years ago

Try a different font. This will happen to fonts that have unusual metrics.

RE: font rendering problem - Added by Ernest Calveras almost 11 years ago

I tried several fonts and this is the result:

Century Schoolbook -> OK
Dejavu Sans -> cropped
Dejavu Serif -> cropped
Droid Sans -> cropped
Free Sans -> cropped
Liberation Sans -> OK
URW Bookman -> OK

All of them are rendered correctly in the play-list window and in other programs. Also the problem is not skin-specific, because it happens with every skin I tried.

RE: font rendering problem - Added by John Lindgren almost 11 years ago

The problem is that there isn't room in the skin for the whole height requested by the font, and the estimate for how much to cut off is a bit crude. There's probably a better way to do it.

RE: font rendering problem - Added by Ernest Calveras almost 11 years ago

It's possible, but don't you think it's strange that even at tiny point sizes the text is still cut off? For instance Droid Sans at 2pt is only 3 pixels tall in my screen yet the text is rendered at the very top of the text area leaving lots of empty space at the bottom. Compare with Liberation Sans at 10pt. I think it's some kind of bug.

droid-2.png (10.1 KB) droid-2.png Droid Sans 2 points
liberation-10.png (12 KB) liberation-10.png Liberation Sans 10 points

RE: font rendering problem - Added by John Lindgren almost 11 years ago

Ernest Calveras wrote:

I think it's some kind of bug.

Thank you for that insight. I have been aware of the behavior you describe since I wrote the code some time back, and I already agreed that there is likely a better way to do the calculations in question. But now that I know it's a BUG, everything is so much clearer. </sarcasm>

    (1-9/9)