Gimp-Forum.net
Anti-Aliasing on white text causes green outline - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Anti-Aliasing on white text causes green outline (/Thread-Anti-Aliasing-on-white-text-causes-green-outline)



Anti-Aliasing on white text causes green outline - ComicSads - 08-21-2018

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.)


RE: Anti-Aliasing on white text causes green outline - Ofnuts - 08-21-2018

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))