I was looking for a lightning symbol and came across this post:
The lightning symbol in an equation environment
I liked the lightning symbol from the ulsy package (from the second answer) and tried to use it. The first problem was that texlive does not come with this package. So I downloaded it from CTAN and followed the instructions to create the Uulsy.fd and ulsy.sty files. (I am using the files locally only because I intend to integrate in my overleaf project, which as far as I know does not support installing custom fonts.)
My actual problem is, when I use it in my document I only get a low resolution of the lightning bolt, especially when I am increasing the size (e.g. with scalebox or resizebox).
\documentclass{article}
\usepackage{graphicx}
\usepackage{ulsy}
\let\ulsyLightning\blitza
\begin{document}
\resizebox{0.5\textheight}{!}{\ulsyLightning}
\end{document}
A few things I noticed: I tried different latex engines and get the same results with pdflatex and lualatex. However, by using just latex and then converting the .dvi file to .pdf with dvipdf, I get a lightning bolt with a much higher resolution. I noticed that pdflatex, as well as lualatex creating a file named ulsy10.600pk and latex ulsy10.8000pk. Since during the pdf-/lualatex I can see the message
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ulsy10
my assumption is that the 600pk/8000pk is related to the resolution of the created image which is used for the font.
So my question is, is it somehow possible to control the resolution and still using pdf-/lualatex?


