[dvipdfmx] xdvipdfmx VORG issue

Shunsaku Hirata shunsaku.hirata74 at gmail.com
Mon Jan 18 10:12:28 CET 2021


Thank you for the report. Will check this later.

Shunsaku Hirata

2021年1月18日(月) 0:02 Masamichi Hosoda <trueroad at trueroad.jp>:
>
> Hi all,
>
> Devs from Japan found that xdvipdfmx could not find the VORG parameter.
> Here's a patch to fix it.
>
> ```
> --- a/source/texk/dvipdfm-x/cidtype0.c
> +++ b/source/texk/dvipdfm-x/cidtype0.c
> @@ -205,7 +205,7 @@ add_CIDVMetrics (sfnt *sfont, pdf_obj *fontdict,
>      vertOriginX   = PDFUNIT(hmtx[gid].advance*0.5);
>      vertOriginY   = defaultVertOriginY;
>      for (i = 0;
> -         i < vorg->numVertOriginYMetrics && gid > vorg->vertOriginYMetrics[i].glyphIndex;
> +         i < vorg->numVertOriginYMetrics && gid >= vorg->vertOriginYMetrics[i].glyphIndex;
>           i++) {
>        if (gid == vorg->vertOriginYMetrics[i].glyphIndex)
>          vertOriginY = PDFUNIT(vorg->vertOriginYMetrics[i].vertOriginY);
> ```
>
> I used the following source to verify that it works.
>
> ```
> % plain XeTeX
> \nopagenumbers
> \font\f="[HaranoAjiMincho-Regular.otf]:vertical" \f%
> □y□y□y□
> \bye
> ```
>
> The results with and without the patch are attached.
>
> Thanks.
>
> ---
> Masamichi Hosoda <trueroad at trueroad.jp>



More information about the dvipdfmx mailing list.