Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWFont and size in pixels
#2
When you set the size of the font in points (property Size) IntraWeb automatically calculates and updates the property PxSize which contains the font size in pixels.

You can also use

class function TIWFont.PtToPx(AFontSize: Integer): Integer;

Just use it like:

PxSize := TIWFont.PtToPx(12);
Reply


Messages In This Thread
TIWFont and size in pixels - by Lenfors - 06-14-2023, 11:49 AM
RE: TIWFont and size in pixels - by Alexandre Machado - 06-15-2023, 05:03 AM
RE: TIWFont and size in pixels - by Lenfors - 06-20-2023, 05:53 AM
RE: TIWFont and size in pixels - by Lenfors - 06-20-2023, 09:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)