Solved

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

Posted on 1998-01-14
1
193 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
ID: 1356481
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 49
Delphi...Split view - idea? 1 68
How to build JSON File in Delphi 6 3 34
firemonkey Android Listview Sort items 7 15
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

810 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