Vote UpVote

Drawing fully justified text to a canvas

Parnassus – At some point we’ve probably all written code to draw text to screen manually, using TextOut, ExtTextOut, DrawText or DrawTextEx depending on how complex the required result was.But have you ever tried to draw fully-justified text, that is, text that adheres to both the left and right boundaries of the destination rectangle? There’s no support in Delphi, and very little support in the Windows GDI. Here’s how to do it.The demo application for this article – type in the memo on the left, and see the justified version on the rightIn this articleGDI’s support for ...
Favorite? Off-Topic? David @ 2014-07-18 14:03


Visits: 17
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)