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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    163 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    82 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X