I am trying to use simple contour for a text. Unfortunately, as the text is inside an element and multiline, I was forced to use alternatives (see here or here). Using pdfrender package almost works, but the "boundaries" of the text invade inside (unlike contour). Like this:
\documentclass[a5paper]{article}
\usepackage[outline]{contour}
\usepackage{pdfrender}
\contourlength{1pt}
\begin{document}
\color{green}\sffamily\bfseries\Huge
\contour{black}{ABP}
\textpdfrender{TextRenderingMode=FillStroke, FillColor=green, StrokeColor=black, LineWidth=1pt}{ABP}
\end{document}
Tring to use different Linewidth was not solving the problem. I wonder is there any way that pdfrender would elicit the same output as the contour?

:-)Afaik there are no way to make an outer contour instead of a inner contour with pdfrender, but a dirty solution could be to use a bolder font. In fact, it could be even better, as this will maintain the right space between characters. – Fran Jan 11 '22 at 18:44