locked
does anyone know how to break a string into character rectangles using DirectWrite? RRS feed

  • Question

  • each string needs to be provided with a rectangle coordinates so it can be drawn inside a rectangle

    but I'm looking for a way to easily breaking such a string rectangle into smaller character rectangles it contains since the string rectangle itself is too big and general for my purposes

    of course I could've made a bunch of string rectangles for each of them to contain a single character but it's inefficient to say the least

    I've just started with DirectWrite

    does any of you know whether it provides this functionality or ways that help to implement it?

    if so, please help

    also, if you know how to achieve this with GDI, that'll do it

    thanks in advance

    • Moved by Helen Zhao Monday, June 4, 2012 5:20 AM DirectX issue (From:Visual C++ General)
    Thursday, May 31, 2012 9:24 PM

Answers

  • Hi ColdBackup,

    According to your description, I am afraid we are not able to do it with GDI. I suggest you go to DirectX forum for better support and more efficient responses. And here is that forum's link: http://forums.create.msdn.com/forums/?GroupID=7. And this thread will be moved to Off-Topic Posts.

    Thanks for your understanding.
    Best regards,


    Helen Zhao [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by Mr. Wharty Monday, June 4, 2012 7:57 AM
    • Marked as answer by Mr. Wharty Tuesday, June 12, 2012 1:36 AM
    Monday, June 4, 2012 5:17 AM

All replies

  • Hi ColdBackup,

    According to your description, I am afraid we are not able to do it with GDI. I suggest you go to DirectX forum for better support and more efficient responses. And here is that forum's link: http://forums.create.msdn.com/forums/?GroupID=7. And this thread will be moved to Off-Topic Posts.

    Thanks for your understanding.
    Best regards,


    Helen Zhao [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by Mr. Wharty Monday, June 4, 2012 7:57 AM
    • Marked as answer by Mr. Wharty Tuesday, June 12, 2012 1:36 AM
    Monday, June 4, 2012 5:17 AM
  • what's with address and phone number fields during registration on that forum? since when posting on a forum requires such personal details? amazing...

    EDIT:

    and what is "payment" registration step for?



    • Edited by ColdBackup Monday, June 4, 2012 5:31 AM
    Monday, June 4, 2012 5:28 AM