[gs-devel] Font attributes

mikefilonov at sibmail.com mikefilonov at sibmail.com
Wed Aug 22 21:38:02 PDT 2007


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




More information about the gs-devel mailing list