mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
5a0969e2e5
commit
0f709c1c77
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user