Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
In gdiplus, When I use "DrawString", everything is all right, but when I use "DrawDriverString" to draw a string with underline style, I got nothing, noting is desplayed.
By the way, how to use "DrawDriverString" to draw a multiLine text.
My English is very poor, hope you can understand.
Posted

Just a guess, the DrawDriverString documentation[^] states:

The method assumes that the client has already set up the format and layout to be applied.


Did you satisfy the above requirement?


You should post the (relevant) code to get better help.
 
Share this answer
 
thanks, I find some documentations about the method.

[^]
(GDI+ DrawDriverString doesn't handle underlined or stroken out fonts as expected): we had to implement this by hand

If anyone wants to draw text using Gdiplus(GDI+) with font styles (including
strikeout and underline), please use DrawString() instead of
DrawDriverString() because the latter does'nt seems to support underlining &
striking of font characters though the font is properly loaded(displays empty
spaces in place of underlined and striked out chars), but the former supports
all FontStyles.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900