Max Did It
Post the First Comment

Polygon Outlines With Uniform Inset

I want users of my hardware text rendering library firetype to be able to render characters with outlines.

Sounds simple enough, right? Adding an outline to text is a matter of setting a simple value in all major graphic softwares. Since firetype is able to retrieve the shapes of characters from font files, it should not be a problem to add an offset to these and render the result.

Turns out that adding an outline to a simple polygon is not as straightforward as you might think. In fact, to have a robust method of creating polygon outlines means to implement a relatively complex algorithm that encompasses several steps.

Even seemingly minor details like how far each vertex has to be moved to create the outline can create problems. The solution, however, is pleasently elegant, as you will see below. I will cover the other aspects of the outline algorithm in the next posts.


Post the First Comment
Tagged , , ,

Rendering Text In Flash Via The GPU

In this article, I want to look at what options you have for rendering characters and texts in Actionscript projects using Stage3D.

I also want to introduce my latest project, the firetype library, which lets you render hardware accelerated texts in Flash in a similar way to Scaleform.

Steps In Using firetype

Rendering Text In Stage3D Projects with On-Board Features

I'm trying to use the current Flash Player's 3D abilities as much as possible to implement higher quality and more fluent graphics in my games.

However, there are certain cases where Stage3D is not on par yet with the classic software rendering features of Flash.

One thing that bothered me while developing both Satellite and Rubberband Racing was the unwieldy way of displaying texts in a project relying on Stage3D to render its content.