[haiku-appserver] Re: Regression: font drawing

  • From: "Stephan Assmus" <superstippi@xxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Tue, 24 May 2005 14:23:31 +0200 (MEST)

Hi gang,

> the MiniTerminal doesn't draw anymore correctly; I don't see any text 
> in it, until I cover it with something else and let it redraw, but even 
> then, some letters are missing.
> Tested on Haiku directly.

I'm terribly sorry about that. It is my mistake. I think I've hit a bug in
the AGG glyph cache. In
src/servers/app/drawing/Painter/font_support/AGGTextRenderer.cpp, please add
the following lines in the beginning of the function RenderString() (from
memory):

float size = fFontEngine.height();
fFontEngine.height(size);
fFontEngine.width(size);
fFontEngine.hinting(fHinted);

This will bring the signature for the font cache in a correct state and
retrieving the glyphs should work again. I have no idea why these lines are
necessary, if you look at the rest of the file, how the setup is done, one
would think that it should work without them. I'm still looking into the
real cause of the problem, but I cannot commit anything at the moment.

Best regards and sorry for the inconvenience,
-Stephan

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

Other related posts: