Author Topic: Thin border around white text on a surface...  (Read 368 times)


  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
    • My deviantart page
Thin border around white text on a surface...
« on: February 16, 2018, 06:59:12 AM »
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: [Select]
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)