Bug 154287: [Freetype] Spaces not displayed between glyphs missing from the selected font. r=bstell@ix.netcom.com, sr=dveditz.

This commit is contained in:
smontagu%netscape.com 2002-07-03 00:37:43 +00:00
parent 5a0969e2e5
commit 0f709c1c77
2 changed files with 4 additions and 2 deletions

View File

@ -1025,7 +1025,8 @@ nsFreeTypeXImage::DrawString(nsRenderingContextGTK* aContext,
if ((image_width<=0) || (image_height<=0)) {
// if we do not have any pixels then no point in trying to draw
// eg: the space char has 0 height
return 0;
NS_ASSERTION(width>=0, "Negative width");
return width;
}
Display *dpy = GDK_DISPLAY();
Drawable win = GDK_WINDOW_XWINDOW(aSurface->GetDrawable());

View File

@ -1025,7 +1025,8 @@ nsFreeTypeXImage::DrawString(nsRenderingContextGTK* aContext,
if ((image_width<=0) || (image_height<=0)) {
// if we do not have any pixels then no point in trying to draw
// eg: the space char has 0 height
return 0;
NS_ASSERTION(width>=0, "Negative width");
return width;
}
Display *dpy = GDK_DISPLAY();
Drawable win = GDK_WINDOW_XWINDOW(aSurface->GetDrawable());