I'm attempting to render the following text using the ExtTextOut
function with the Courier New
font:
C₁C₂C²C³
The superscript characters show up fine, but the subscript characters show up as blocks. If I use the DrawText
function, then the subscript characters show up fine.
I was under the impression that DrawText
internally calls ExtTextOut
. Am I mistaken or does DrawText
perform some extra processing of the string to allow subscript characters to show up?
Is there anything I can do to get ExtTextOut
to display the subscript characters using the Courier New
font?
My code for using ExtTextOut
looks like this:
ExtTextOutW(hdc,x,y,0,0,szText,wcslen(szText),0);