Closed drmacro closed 8 years ago
We have an oXygen client requesting this feature. He needs to embed some fonts in order to render special characters. Probably having the fonts directory in the same directory with the CSS file would be fine.
Would SyncroSoft be in a position to provide an implementation for this? With my current workload I wouldn't be able to look at this until later this week at the earliest.
Fortunately there is no hurry from the client perspective (he expects to see it in a couple of months). But of course I will take a look at the plugin implementation.
It shouldn't be that hard to implement but it will requiring thinking through the requirements a bit to make sure the mechanism is sufficiently flexible and extensible.
Initial approach is to create a "font manifest" file that lists the fonts to be included. This makes it easy for the XSLT process to generate entries for the fonts in the graphic map.
Another approach would be to use a specialized topic ref to point to font files but that requires each document to know what fonts it wants to use, which is probably not appropriate most of the time.
Have defined a "font-manifest" doctype in the doctypes plugin.
Also adding common font extensions to the list of built-in files copied by the zip process.
Closing as implemented in 1.0.0RC17
Need a way to specify and include embedded fonts in the generated EPUB file. Probably need a runtime parameter and maybe a conventional place to put fonts to be embedded. Since fonts need to be coordinated with the CSS it might make sense to just expect fonts to be in the same directory as the CSS file.