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

How can I determine is given font a True Type one or not???
_art_Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
WaldekConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.