What's a TTextMetric?

Posted on 2006-05-11
Last Modified: 2007-12-19

can someone give me a SIMPLE explenation about TTExtMetric?

I know I you can find the explenation also in Delphi Help.
But I don't understand any of it. What do I have to Imagine!

Question by:peterkiers
    LVL 26

    Accepted Solution


    In simple terms, its the record structure used to hold the metrics (information such as char height, pitch / family, max width, average width, first / last char, etc) for a specified font, and is normally seen/used with the GetTextMetrics API. The most common usage of GetTextMetrics in the Delphi VCL is for obtaining the char height to use when drawing.

    Hope this helps,
    LVL 1

    Author Comment

    OK, now I understand.

    Peter Kiers

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    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…
    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…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 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

    9 Experts available now in Live!

    Get 1:1 Help Now