[XeTeX] png output?

Jonathan Kew jonathan_kew at sil.org
Tue Feb 19 10:46:20 CET 2008


On 19 Feb 2008, at 7:35 am, Moritz Angermann wrote:

> Hi Jonathan,
>
> The idea to enhence dvipng came to my mind too, though I have no idea
> where to start and what size that project would take. I'd be glad for
> any hints.

The first step would be to try contacting the author, I think.

The xetex extensions to DVI format are largely documented in the  
xetex source code; then you can also look at the source of xdv2pdf  
and/or xdvipdfmx to see how the added opcodes are handled there.  
There are only a few of them: an extended font definition code for  
platform-native fonts; an operation to set an array of glyphs with  
positioning information; and the opcode to include a graphic.

Does dvipng use Freetype2 to render PostScript and TrueType fonts? If  
that functionality is already in place, adding xetex support  
shouldn't be very hard, I think. If it's not using FT2, then it'll be  
a bigger extension.

JK

>
> kindest regards,
>  Moritz
>
> On 2/18/08, Jonathan Kew <jonathan_kew at sil.org> wrote:
>>
>> On 18 Feb 2008, at 8:11 pm, Moritz Angermann wrote:
>>
>>> Dear ML,
>>>
>>> what is the prefered way to produce PNGs from XeTeX? For LaTeX  
>>> there's
>>> the dvipng tool but that one deals only with dvi's up to format 2  
>>> not
>>> 5, wich is what xdv is.
>>
>> I don't know of any tool to do this directly (though enhancing dvipng
>> to support xetex's output would be a possible project if anyone cares
>> to work on it).
>>
>> However, you should be able to generate PNG from PDF with
>> ImageMagick's "convert" tool or another graphics utility.
>>
>> JK
>>
>>
>> _______________________________________________
>> XeTeX mailing list
>> postmaster at tug.org
>> http://tug.org/mailman/listinfo/xetex
>>
>
>
> -- 
> --------------- One Fish, Two Fish, Blowfish, Blue Fish  
> ----------------
> Moritz Angermann \ moritz.angermann\gmail.com
> Barerstraße 35 \ M:+49 (0) 176 24 81 59 42 / H:+49 (0) 89 12 13 83 56
> 80799 Munich \  http://www.lunatic-bumblebee.com
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list