I'm using LaTeX to render a set of custom glyphs. Each glyph is perfectly rectangular, at a 3.5 x 5 aspect ratio, and they're defined something like this (the following example just lines the borders of the glyph):
\newcommand\glyph[1][1]{%
\begin{tikzpicture}[scale=0.1]
\draw[lightgray] (0,0) to (0,4);
\draw[lightgray] (0,0) to (3,0);
\draw[lightgray] (3,0) to (3,4);
\draw[lightgray] (0,4) to (3,4);
\end{tikzpicture}%
}
Each glyph is rendering correctly. When I invoke them in text:
\begin{document}
\glyph\glyph\glyph\glyph
\end{document}
I get some decently-kerned glyphs:
However, this isn't enough. I'd like to get the gap between characters down to a couple of pixels, if possible. How would I go about this?

%syndrome" :) Add a%here:\newcommand\glyph[1][1]{% <--and here:\end{tikzpicture}% <--. – Phelype Oleinik May 25 '19 at 03:08\draw[lightgray] (0,0) rectangle (3,4);instead of your\draws. – CarLaTeX May 25 '19 at 04:46