/samples/font-and-text/plain-and-bounded-text

D.01Plain and Bounded (Multiline) Text

Draws text strings and text areas on an image. Includes: horizontal and vertical single line text (with optional effects), multiline text bounded with a specified rectangle.

drawing+15font+8text+8

/samples/font-and-text/font-loading-and-text-measuring

D.02Font Loading and Text Measuring

Calculates width and height of a rectangle occupied by a text string with specified font settings as well as other font metrics. Includes: receiving text size and string ascender/descender, calculating “black box” of a regular string and artistic text (written on a circle), loads a font dynamically.

art text+4drawing+15font+8text+8

/samples/font-and-text/art-text

D.03Art Text

Draws a text line with various artistic effects and distortions. Includes: various artistic text types (text on circle, bended text, etc) with variable bend level, text effects (glow, shadow).

art text+4drawing+15font+8text+8

/samples/font-and-text/double-path-text

D.04Double Path Text

Distorts a text string using two custom Bezier curves (on the top and bottom of the string). Includes: drawing curved text based on two Beziers with variable font size.

art text+4drawing+15font+8text+8

/samples/font-and-text/watermark

D.05Watermark

Fills a JPEG image with a text watermark. Includes: two types of watermark (simple diagonal watermark and two-string watermark with a grid).

drawing+15font+8text+8watermark

/samples/font-and-text/pdf-and-eps-output

D.06PDF and EPS Output

Generates two vector images and saves them as a PDF or EPS. Includes: drawing an image, vector and text data on a PDF/EPS, multipage PDF file support.

art text+4drawing+15eps+2font+8pdf+3text+8

/samples/font-and-text/formatted-text

D.07Formatted Text

Demonstrates how to draw a formatted text. It is possible to change font settings for each character.

drawing+15font+8formatted text+2text+8

D.08Paragraphs and Lists

Renders formatted text with paragraphs and lists (both ordered and unordered).

drawing+15font+8formatted text+2listparagraphtext+8

D.09Text Flow Control

Demonstrates how to have text to flow between several blocks, as well as wrap text blocks around some objects.

drawing+15font+8formatted text+2layouttext+8