[2/3] wineps.drv: Allow text copy paste from print to pdf

Huw Davies huw at codeweavers.com
Tue Sep 9 04:52:40 CDT 2014


On Mon, Sep 08, 2014 at 09:19:54PM -0700, Daniel Horn wrote:
> -void get_glyph_name(HDC hdc, WORD index, char *name)
> +void get_glyph_name(HDC hdc, BOOL unicode, WORD index, char *name)
>  {
> -  /* FIXME */
> -    sprintf(name, "g%04x", index);
> +    if(unicode)
> +        sprintf(name, "uni%04X", index);
> +    else
> +        sprintf(name, "g%04x", index);
>      return;
>  }

The right way to do this is to look up the glyph's name in the font's
'post' table.

Huw.



More information about the wine-devel mailing list