setFontStyle
- Ariadne >
- Library >
- Ariadne 2.2 >
- Manuals >
- Programmers Reference >
- Classes >
- Photo >
- PINP Methods >
(void) setFontStyle($name, $font, $pointsize, $color, $gravity="northwest", $rotate=0)
Assigns a font configuration to $name.
| Argument | Description |
|---|---|
| $name | The name to assign to this font configuration. |
| $font | The path to font file in Ariadne. |
| $pointsize | The point size of the font. |
| $color | The draw color of the font. |
| $gravity | To which edge the text will 'fall'. |
| $rotate | Rotation of the text in degrees, clockwise. |
setFontstyle() assigns a font configuration
to $name. This font
configuration can later be used by annotate().
Fonts must be Truetype fonts, and must be stored (and readable) in Ariadne somewhere.

