FreeType FTC in RenderFreetype

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
theDolphin
Posts: 1
Joined: 2015-09-11T00:26:49-07:00
Authentication code: 1151

FreeType FTC in RenderFreetype

Post by theDolphin »

Hello!

We use ImageMagick Wand API heavily in our project, and one of the purposes is to render huge amount of text on a canvas.
We stuck in perfomance limitations of RenderFreetype(), which initializes FT2 library every time it's called.
So on every string we have to render a font is loaded (FT_Open_Face()) from file and interpreted. This leads to huge CPU overhead.

Is there any plans to integrate the use of FT Cache Subsystem into RenderFreetype() ?
Last topic I found dated 2007...

Furthermore, is there any caveats to pay attention to if I decide to implement caching by myself?

Thanks in advance!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: FreeType FTC in RenderFreetype

Post by dlemstra »

Cache of fonts have been on our todo list for a while. You are more then welcome to submit a pull request for that.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply