GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2013-Nov-19

Title: Font transparency?
Post by: MrPlow on 2013-Nov-19
Whats the best method when using the font creator?
And when the font is used in ddgui with scaling screen?

I tried the default 255,0,128 color setting and that failed to work.
Title: Re: Font transparency?
Post by: MrTAToad on 2013-Nov-19
I would use ALPHAMODE -1.0 before DDgui_show()

Title: Re: Font transparency?
Post by: MrPlow on 2013-Nov-19
Okay, i will try that...thanks!
Title: Re: Font transparency?
Post by: MrPlow on 2013-Nov-19
Didnt seem to do anything different...

Do I need to do something else...also the background my font I am using is a kind of blue ... does that matter?
I had it black before but changed to closer to menu colour
Title: Re: Font transparency?
Post by: erico on 2013-Nov-19
Are you using BMP or PNG for the output?

BMP you will need to work with a color key (the usual pink) but you can use anyother and set transparency inside your code.
PNG should give you an alpha channel, but I don´t quite see it on the likes of photoshop.

My guess is that you will have to experiment, I did it a long time ago and I had problems with png by having a key color on my outlines, so it went off and I had to slightly change the outline a bit.

I´m not sure if the font loading system is apart from set transparency, but fonts are like a sprite sheet, ultimately you can edit them on a paint package.
One other thing, I believe, iirc, the background color is where you set the key color?

Sorry I can´t help much, it has been a while I haven´t digged fonts.
You might want to look at the other extended font creator available on the forums here:
http://www.glbasic.com/forum/index.php?topic=6421.0
Title: Re: Font transparency?
Post by: SnooPI on 2013-Nov-19
try ALPHATESTING 0.0 before DDgui_show()
Title: Re: Font transparency?
Post by: MrPlow on 2013-Nov-19
Quote from: Snoopy on 2013-Nov-19
try ALPHATESTING 0.0 before DDgui_show()

Tried that too...still looks like this,,,

Title: Re: Font transparency?
Post by: kanonet on 2013-Nov-19
I use PNG with transparent background. And this font creator is better and more powerful: www.glbasic.com/forum/index.php?topic=6421.0
Title: Re: Font transparency?
Post by: MrPlow on 2013-Nov-19
Quote from: kanonet on 2013-Nov-19
I use PNG with transparent background. And this font creator is better and more powerful: www.glbasic.com/forum/index.php?topic=6421.0


Thanks!!! Now things are looking up.
Title: Re: Font transparency?
Post by: SnooPI on 2013-Nov-19
MrPlow after ALPHATESTING use always ALPHAMODE 0.99 (or 0.9, 0.8, ... for more transparency)  the result is better than ALPHAMODE 0.0

Of course, you can use also ALPHAMODE -0.99 (-0.8, -0.7, ...) for special effects.