If this is for the Web, or any environment where the fonts in question may not be present on a visitor's machine, then it needs to be solved server-side. It requires image generation, for a start.
...