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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    62 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X