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
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SteveReiza, Today, 09:41 PM
    0 responses
    5 views
    0 likes
    Last Post SteveReiza  
    Started by astor, Today, 09:20 PM
    1 response
    11 views
    0 likes
    Last Post astor
    by astor
     
    Started by astor, Today, 09:19 PM
    0 responses
    5 views
    0 likes
    Last Post astor
    by astor
     
    Started by WaleeTheRobot, 01-07-2024, 10:07 AM
    17 responses
    509 views
    2 likes
    Last Post kashter
    by kashter
     
    Started by Kraken29, 02-26-2024, 10:40 AM
    2 responses
    19 views
    0 likes
    Last Post Kraken29  
    Working...
    X