An explicit pixel or tick value would be fine. It would also be fine to know how to convert inches to either pixels or ticks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Font size question
Collapse
X
-
Font size question
A font's Size property is in points (reasonably enough). A point is 1/72 inch. How can I find the size of a font in either pixels or ticks?
An explicit pixel or tick value would be fine. It would also be fine to know how to convert inches to either pixels or ticks.Tags: None
-
Hello ETFVoyageur,
I am unaware of any property for that for fonts, you can find out how many pixels are between two prices by using OnRender and the conversion methods for prices to Y values. https://ninjatrader.com/support/help...etybyvalue.htm
If you are custom rendering text you can also use the sharpdx textlayout to get a max height or width however that won't be the height for the font in general, that would be for the specific string that was passed into the textlayout. https://ninjatrader.com/support/help...textlayout.htm
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment