Results 1 to 2 of 2

Thread: [RESOLVED] DrawTextW & TextWidth problem with UniCode text

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Resolved [RESOLVED] DrawTextW & TextWidth problem with UniCode text

    Hello,

    I just spotted a problem with DrawTextW & TextWidth. I have my Custom uniLabel control.

    It all works fine, until I tested a few greek & bulgarian alphabets.

    Basically the text gets CUT OFF. It seems usercontrol.textWidth() isn't returning the correct width of the string!

    This mainly happens if say the text/string contains both Latin & Cyrillic characters!!

    textWidth isn't calculating the width of the characters correctly... any ideas?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: DrawTextW & TextWidth problem with UniCode text

    *RESOLVED*

    Should've used GetTextExtentPoint32 API to get TextWidth
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width