Einzelnen Beitrag anzeigen

Gruber_Hans_12345

Registriert seit: 14. Aug 2004
1.426 Beiträge
 
Delphi 2007 Professional
 
#1

Andorra 2D - FontHeight

  Alt 29. Nov 2010, 15:45
Gibt es bei Andorra eine Möglichkeit die Höhe eines Textes genau zu bestimmen?


Ich versuche es folgend zu machen, damit der Text eine Höhe von 45 Pixeln hat.

Delphi-Quellcode:
        tempMat := AdMatrix_Identity;
        tempMat[1][1] := 45.0 / Font.TextHeight(Caption);

        Font.Color := Color;
        Font.TransformationMatrix := tempMat;
        Font.TextOut(ClientWidth-40-Font.TextWidth(Caption)-20, 0, Caption);
Gruss Hans

2B or not 2B, that is FF
  Mit Zitat antworten Zitat