Strange font issues
Posted: Thu Sep 27, 2007 6:14 pm
This is just an observation of something really weird I ran across.
It began when I used a custom font for the menu. I noticed that the capital 'S' glyph was misaligned, even though it looked fine when I used the font in other programs.

That was weird enough, but not a big problem. I thought it might just be a bug in the font itself. I considered switching to imagebuttons, but left it alone for the time being.
As if that weren't weird enough, I later added an overlay function, and - voila! - capital 'S' was fixed, completely by accident.

Then, after I fixed a bug in the overlay function (it was showing up during the splash screen - tsk, tsk)... capital 'S' was doing its thing again. Some more experimentation showed that the problem must have something to do with whether the overlay actually adds anything to the screen.
So, pardon my longwindedness, but: what the heck is going on?
It began when I used a custom font for the menu. I noticed that the capital 'S' glyph was misaligned, even though it looked fine when I used the font in other programs.

That was weird enough, but not a big problem. I thought it might just be a bug in the font itself. I considered switching to imagebuttons, but left it alone for the time being.
As if that weren't weird enough, I later added an overlay function, and - voila! - capital 'S' was fixed, completely by accident.

Then, after I fixed a bug in the overlay function (it was showing up during the splash screen - tsk, tsk)... capital 'S' was doing its thing again. Some more experimentation showed that the problem must have something to do with whether the overlay actually adds anything to the screen.
So, pardon my longwindedness, but: what the heck is going on?