• 0

ExtTextOut and text drawing optimization


Question

This is C++ and Win32API.

I have written a text view control which is currently pretty much done, aside from a few minor things that I will little problems doing. It is quite fast in comparison to similar controls when I do what tests I can.

However, I know it could be optimized. One of these optimizations would be using a faster Text Drawing method, such as ExtTextOut over TextOut. However, I've never used ExtTextOut, and thus don't know the most efficient parameters to give it.

The view control already handles word-breaking, text-formatting and other such things. All I want the text draw function to be concerned with is printing the characters I tell it to where I specify, and nothing more. No trying to clip, no word-wrapping, no unicode even (Yes yes i know).

So does anyone have any experience with this function and can offer advice?

Here's what I currently do.

TextOut(pView->hdcBackBuffer, lCurrentLeftPos, lCurrentTopPos, pszBufferStart, lBufferLength);

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.