Xojo2024R3.1. Accessing XHeight, Descent, CapHeight, Leading, LineHeight

Hi all,

I am having some trouble implementing these font properties: XHeight, Descent, CapHeight, Leading, LineHeight.

The documentation (Font β€” Xojo documentation) is silent.

Thank you in advance for your help.

DB

It would help if you defined what you mean by β€œtrouble”.

1 Like

You can access the properties FontAscent or TextHeight by writing this:

Var myDouble as Double
Var myGraphics as Graphics

myDouble = myGraphics.FontAscent
myDouble = myGraphics.TextHeight

But what do you have to write to access these properties : XHeight, Descent, CapHeight, Leading, LineHeight ?

DB