[root@rocky9 ~]# dnf search mkfontscale
Last metadata expiration check: 2:21:48 ago on Sat 03 Sep 2022 03:07:39 PM CEST.
====================== Name Exactly Matched: mkfontscale =======================
mkfontscale.x86_64 : Tool to generate legacy X11 font system index files
In Rocky8 the xorg-x11-font-utils exists, so since you didn’t mention which version of Rocky, assumed you mean Rocky9 as it doesn’t have that package.
I just tested trying to build the rpm (on an AlmaLinux VM) and using the fc34 srpm which I got from https://rpmfind.net it built without any problems. Actually, if you can find the specific font you want in an rpm, you probably don’t have to go to that trouble, I would bet that downloading the rpm and doing sudo rpm -ivh <fontname.rpm> would work.