Font Bug

Archives Forums/Blitz3D Bug Reports/Font Bug

EPS(Posted 2007) [#1]
Testet on:

B2D => IDE v1.80 - Linker v1.24 - Runtime v1.80
B+ => IDE v1.40 - Linker v1.10 - Runtime v1.40
B3D => all v1.98

Bug in B2D and B3D !!!,

in B+ it works fine. Now the Problem:

I write a piece of text into a image. The text is longer as the width of the image. The x-position of the text is negative but the end of the text should be in the image.

The conclusion in B2D and B3D looks like this:

As you can see the last 1 letter and the dot are not shown in the image and i cannot find any reason for this.

And here the sample code:

Graphics 640,480,0,2

bild = CreateImage(200,50)
font = LoadFont("Tahoma.ttf",13)

SetBuffer ImageBuffer(bild)

SetFont font

Color 0,0,$FFFFFF
Rect 0,0,200,50,1

Color 0,0,0
Text -588,25,"Supergeiler Testtext der ausgesprochen lang sein muß um das testen zu können. Supergeiler Testtext der ausgesprochen lang sein muß um das testen zu können.",0,1

SetBuffer BackBuffer()
DrawImage bild,200,240


....and sorry for my bad english ;)

markcw(Posted 2007) [#2]
maybe it doesn't render that text because blitz think it is offscreen?

EPS(Posted 2007) [#3]
Yes, maybe. But biltz+ can do it, B2D and B3d don't ... a little bit strange.

jfk EO-11110(Posted 2007) [#4]
Did you test the min length of the supergeiler testtext until this happens? Not sure, but maybe D2D has an internal limit for TEXT? Because, what happens here is the same as if you forgot the 2nd " in a string declaration, eg:

a$="hello world
print a$


hello worl

EPS(Posted 2007) [#5]
Try it self, the text is not to long - its a BB problem, think about that: it works well in B+ but not in B2D and/or B3D.