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, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment