by Michael S. Kaplan, published on 2006/03/11 18:14 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2006/03/11/549657.aspx
It was not all that long ago that I talked about The Lack of Uniscribe samples.
In the meantime, James Brown hass put together some very interesting docs with samples -- definitely worth a look!
Excerpted from his announcement in the microsoft.public.win32.programmer.international newsgroup:
The thrust behind the tutorials is to document the development of "UspLib", a Win32/Uniscribe text-rendering-engine which is similar in many ways to the ScriptString API, but with the additional capability of being able to draw fully styled+coloured text using user-supplied style-runs. It is still very much work-in-progress but is fully functional and should be suitable for any win32 application which requires basic styled-text support (such as syntax-colouring text-editors)..
Part 11 - Introduction to Uniscribe
www.catch22.net/tuts/editor11.asp
Part 12 - Uniscribe Mysteries (ScriptItemize/Layout)
www.catch22.net/tuts/editor12.asp
www.catch22.net/tuts/editor13.asp
Part 14 - Drawing styled text with Uniscribe (ScriptTextOut)
www.catch22.net/tuts/editor14.asp
Part 15 - Integrating UspLib (documents UspLib)
www.catch22.net/tuts/editor15.asp
You can see Neatpad in action (and download the source) here:
www.catch22.net/tuts/zips/editor15.zip
Any feedback would be appreciated, especially if you notice any glaring errors/omissions.
Enjoy, and be sure to get James any feedback you have about these chapters or the samples.
Thanks, James!
# Ian Treleaven on 16 Mar 2006 12:43 PM:
# Michael S. Kaplan on 16 Mar 2006 1:25 PM:
Heikki on 31 Mar 2010 4:03 PM:
The linked article is an amazingly well written tutorial. There is still a lack of examples for a more specific scenario, and that is the following:
- Writing a text editor control in .NET
- Needs to have complex script support
- Needs to have more control than TextRenderer allows
I've been searching for a long time and no dice.
referenced by