Solved

How can I determine is given font a True Type one or not???

Posted on 1998-01-14
1
184 Views
Last Modified: 2013-12-02
How can I determine is given font a True Type one or not???
0
Comment
Question by:_art_
1 Comment
 
LVL 2

Accepted Solution

by:
Waldek earned 50 total points
Comment Utility
You must do it like this:
GetTextMetrics(Canvas.Handle,Metrics);
where Metrics is structure of type TTextMetrics
then You check :
Result:=(Metrics.tmPitchandFamily and TMPF_TRUETYPE)<>0;
if result=true then font=truetype;
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now