mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

vis/text/

mg_grstrwrap.pro

includes main-level program

Routines

top mg_grstrwrap

result = mg_grstrwrap(text, width [, charsize=float] [, charthick=float] [, font=integer])

Wrap a string to a given width.

Return value

string array

Parameters

text in required type=string

scalar string to wrap

width in required type=long

width in pixels of the text area

Keywords

charsize in optional type=float

CHARSIZE keyword to XYOUTS

charthick in optional type=float

CHARTHICK keyword to XYOUTS

font in optional type=integer

FONT keyword to XYOUTS

Examples

To run a simple example:

IDL> .run mg_grstrwrap

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 56
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.