Generate TTF via image(s) using PHP?

后端 未结 1 1767
情深已故
情深已故 2021-01-25 00:56

Are there existing libraries for generating .ttf via image(s) using PHP (say, a series of images)? There are several references about creating gdf from images, but I\'ve not yet

相关标签:
1条回答
  • 2021-01-25 01:23

    To my knowledge, there is no such tool.

    Creating a TrueType font is a hugely difficult enterprise. A font consists of a lot of very complex information (see the "technical notes" in the Wikipedia article to get a tiny impression). It won't do to just paste a series of images together.

    Depending on what you want to do, I suppose you could work around this by building a faux "bitmap font", one image file containing one character, and glue the correct images together to form a sentence. The results will probably be less than perfect, though, because there will be no Kerning.

    0 讨论(0)
提交回复
热议问题