Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anti-Aliasing on white text causes green outline
#1
I want to have some white text on a transparent background so I can composite it into a different program with poor text support.
Whenever I try to do this with anti-aliasing on the text enabled, I get a green outline around the text for no apparent reason.
Please help and thanks in advance!

Information:
Using gimp 2.8.22
Font used in image is FreeSans, but the bug occurs with any font I use
Does not appear to happen if I use the brush tool
(It's difficult to see in the attached photo, but the area surrounding the text is transparent.)


Attached Files Image(s)
   
Reply
#2
Known problem... This is due to the library Gimp uses (libcairo) using sub-pixel rendering when it shouldn't do so. Two workarounds:

  1. disable sub-pixel rendering at the system level (this is some option in your desktop settings, for KDE it is a sub-option of "Fonts>Font>Use Antialiasing". Whether you can live without it is up to you Smile
  2. fix the problem when it appears (it is visible mostly for white text over a dark background), replace the text layer with:
    •  Layer>Text to path
    • Select>From path
    •  bucket fill the selection.
Now, Gimp was never meant to be a text processor. If you need goo text support, see Scribus... (or even some LibreOffice component (Impress/Draw))
Reply


Forum Jump: