• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

Problem with Truetype and Vector fonts

I try to find out if a font is vector and use API function gettextmetrics with condition tmpf_vector, but the result is true even with truetype fonts. What is the problem?
1 Solution
Russell LibbySoftware Engineer, Advisory Commented:
Yes, this flag will be set on with true-type fonts.

<api help>
    ...besides having their own bits set, TrueType and PostScript fonts set the TMPF_VECTOR bit.
<end help>

What you will need to do is check to ensure the TMPF_TRUETYPE (and possiblye TMPF_DEVICE) flags are clear (off).


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now