Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TextLayout and DrawTextLayout Issue

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

    TextLayout and DrawTextLayout Issue

    Hi,

    I'm using SharpDX.DirectWrite.TextLayout and RenderTarget.DrawTextLayout.

    The issue I have is that when the text to be drawn contains no white spaces, everything works perfectly. However, when the text to be drawn contains white spaces, only the portion of the text before the first white space is drawn. I have checked the code and nothing seems out of place. In fact, Textlayout seems to contain the full string including all the white spaces.

    Any suggestions regarding how I can get the full text (including all white spaces) drawn would be greatly appreciated. Thank you.

    #2
    Hello Zeos6,

    Thanks for your post.

    I have not encountered such an issue with DrawTextLayout. I've attached an example implementing DrawTextLayout that places 2 strings on a chart, both at the same point. I don't see any issue with white spaces.

    If this example does not help resolve your inquiry, could you let me know if you are using a different character for white spaces than a normal space ' ' and any way I could witness the same issue with the code attached?

    I look forward to being of any further assistance.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X