AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Eine allgemeine Frage zum Verständnis, warum negative Font.Height ?
Thema durchsuchen
Ansicht
Themen-Optionen

Eine allgemeine Frage zum Verständnis, warum negative Font.Height ?

Ein Thema von Jörgi · begonnen am 7. Jun 2016 · letzter Beitrag vom 7. Jun 2016
 
bra

Registriert seit: 20. Jan 2015
711 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#2

AW: Eine allgemeine Frage zum Verständnis, warum negative Font.Height ?

  Alt 7. Jun 2016, 08:57
Die Fonts sind auch in der IDE als negative Werte angegeben. Wieso, weiß ich auch nicht, fand ich auch immer merkwürdig.
Google hilft:

http://www.delphipages.com/forum/sho...d.php?t=120942
Zitat:
You must work with TFont.Size but not with TFont.Height

Height property calculated automatically:
Font.Height = -Font.Size*Font.PixelsPerInch/72

So the Size is a size of the font in points, the Height is in pixels.

From help-file:
*********************************
If the value is negative, the internal leading that appears at the top of each line of text is not measured. If the value is positive, Height represents the height of the characters plus the internal leading.
*********************************
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:10 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz