Attract-Mode Support > Scripting

Thin border around white text on a surface...

(1/1)

zpaolo11x:
Scenario: I have a theme with a light background and some white text over it.

If the text is a text object on the front end then no problem, but if I put the text inside a surface, a thin border appears around the text.

Is this a known issue, and is there a way to avoid it?


--- Code: ---local flw = 1280
local flh = 800

fe.layout.width = flw
fe.layout.height = flh
fe.layout.preserve_aspect_ratio = true

local whitebg = fe.add_text("",0,0,flw,flh)
whitebg.set_bg_rgb (255,255,255)
whitebg.bg_alpha = 255


local textsurf = fe.add_surface (flw,200)
local text1 = textsurf.add_text ("TEST 1",0,0,flw,200)

local text2 = fe.add_text ("TEST 2",0,200,flw,200)
--- End code ---

Navigation

[0] Message Index

Go to full version