I have solved the problem and published it as a new package called hamreen_printing. For more details, you can watch the following video, which explains how to print Kurdish letters correctly using this new package:
👉 https://youtu.be/hMOIpvJgKiQ