[gs-devel] Font attributes xefitra

Leonardo leonardo at artifex.com
Mon Aug 27 00:36:49 PDT 2007


Some info may be found in src/gdevpdtd.c.

----- Original Message ----- 
From: <mikefilonov at sibmail.com>
To: <gs-devel at ghostscript.com>
Sent: Thursday, August 23, 2007 8:38 AM
Subject: [gs-devel] Font attributes


> Hi,
>
> I'm writing high-level ghostscript device. As input i need to use
> postscipt generated by printer driver.
>
> I need to extract attributes of font such as "bold", "italic", "underline"
> and so on.
>
> In other devices this is done by comparing font name and string (for
> example “bold”). But when i print out font->font_name it is always just
> the name: "Times" but not "Times-Bold". So this method is unsuitable.
>
> If i use font->procs.font_info() to get italic angle it always returns
> zero. So i can't indicate font attributes in this way.
>
> What could i try to extract attributes?
>
>
> Thanks,
> Mike Filonov
>
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel 




More information about the gs-devel mailing list