Login Register Wishes Forum About
Language Reference » Settings functions » setFontProperties
Help topics
Latest updates
4693d  replaceImageMapTitle
4693d  replaceImageMapValues
4693d  createFunctionSerie
4693d  setAbsicssaPosition
4693d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setFontProperties - Set default fonts properties

This function allows you to specify the default settings for all text outputs on yout pictures. As you‘ll notice, some functions can override this default settings but if not explicitely specified, default settings will be used. Parameters are given trough a $Format array. To learn more about this please read the Format array guide.

Calling this function
Where :

Format is an array containing the drawing parameters of the arrow.

Customisation array - Tune up your texts!

It is possible to customize the fonts rendering by playing with this array. Providing a detailled configuration is not mandatory, by default the texts will be written in black with the "GeosansLight.ttf" font file.

The font name can be set with FontName.
The font size can be set with FontSize.
The font color can be set with R, G, B.
The alpha transparency factor can be set with Alpha.

Sample script

 /* Enable shadow support */

 /* Force the font properties and color */
 $myPicture->drawText(340,90,"Some big red text");

 /* Force the font properties and color */
 $myPicture->drawText(340,100,"Some blue text");

This will write some text areas while forcing the font file name & color with the setFontProperties() function.
Last updated on 10/21/2009 
by Jean-Damien 
Linked resources
Community comments
  No comments have been posted yet.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.