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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
217 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
132 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
147 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
231 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
192 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment