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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
27 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment