Generic HTTP Module
About Todd Matson Client Resources Consulting Services Areas of Expertise Course Materials Portfolio Contact Information
Text Renderer

Text Renderer is a NET class which renders text graphically on web pages. It is used extensively on the Matson Consulting website.

Text Renderer

Features
  • Text Renderer can render any font installed on the server, and can apply the styles bold, italic, underline, and strikethrough.
  • Text Renderer can generate PNG, JPEG, and GIF images.
  • Text Renderer supports alpha-channel transparency for PNG images.
  • Text Renderer generates transparent PNG images in a format compatible with IE6 and AlphaImageLoader.
  • Text Renderer supports an image quality setting for JPEG images.
  • Text Renderer resists abuse by ignoring requests from other websites.

Demo

To see the Text Renderer in action, change the options below and click Update.

Text
Font Name
Font Size
Font Color
This world of ours,
To what shall I compare it?
To the white wake of a boat
That rows away in the early dawn.

-Shami Mansei

Technical Notes
  • Text Renderer was written in C#.NET.
  • The TextRenderer class extends System.Web.UI.WebControls.WebControl.
  • Text Renderer requires the implementation of the Generic HTTP Module.
  • Text Renderer uses the GDI+ graphics library.

Availability

I wrote the Text Renderer for my own use, but I'd be glad to share it with other web developers. If you want a copy, send me a note at tmatson@MatsonConsulting.com.