For future reference

Blitz3D Forums/Blitz3D Programming/For future reference

Picklesworth(Posted 2005) [#1]
I'm going to eventually be doing a thing with B3d for which it would be nice to be able to change the font that I am writing to a block of text in, without skipping lines. (IE: Beginning to use italics, or bold text). Is this possible?


Ice9(Posted 2005) [#2]
Yes you can load a truetype font


n8r2k(Posted 2005) [#3]
you mean like this?
Graphics 800,600,32,2
font = LoadFont("Comic Sans Ms",20,1,0,0)
font2 = LoadFont("Comic Sans Ms",20,0,0,0)

SetFont font2:Text 5,0,"This is "
SetFont font:Text 53,1,"bold. "
SetFont font2: Text 91,0,"This is not."


i am not sure exactly what you mean so i hope it helps.


Picklesworth(Posted 2005) [#4]
Okay, so no easier method than that.
I guess that will do, in combination with StringWidth :)


Erroneouss(Posted 2005) [#5]
Like an HTML system for the text command to replace stuff in different colors ect? Or like just microsoft word with changing font in a textbox? Or like what nater says?


0.o


WHEN'S APOE COMING!?!?!?!? I NEEEEEEEEEEEEEEEEEED IT!!!!!! :0


Baystep Productions(Posted 2005) [#6]
Maybe you could just create a simple function, put all the changing crap in there. To make it easier hopefully.


Damien Sturdy(Posted 2005) [#7]
And then release it :D


Picklesworth(Posted 2005) [#8]
That's what I plan :D
But first I will answer TheDuck's question by releasing what my sig has said I'm doing for a while.


Damien Sturdy(Posted 2005) [#9]

APOE v 0.1; Alpha release in 1 day



Its been a very long 1 day, where the sun kept going down and back up..... *poke prod*


Picklesworth(Posted 2005) [#10]
Ah, but I can't tell when night is because of a bunch of greenhouses where I live that have these unbelievably bright lights on all night. There is seriously 10 times more light pollution in this small town where I live than in the big city next to it.

Anyway, today should be the finishing date for the coding of 0.1

Besides, it said 2 days a while ago :)