Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Font size question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X