Web page hosting and cheap domains registration services
  

 Home

GDK Classes
Prev GdkFont Next

GdkFont

Structure holding font information.

Object Hierarchy

Description

A GdkFont is a data structure containing basic information about a font, in terms of its type, ascent and descent. There is no constructor, as the fonts available are provided by the system. The GdkFont structure simply allows a new font to be loaded and queried.

To load a font, use gdk::font_load() . To load a fontset - a range of different fonts - use gdk::fontset_load() . Either function will return a single GdkFont.

Under win32 currently, all fonts are of the type GDK_FONT_FONTSET, regardless of the loading method.

Methods

extents()
  Returns an array of sizing information.
measure()
  The drawn width of a text-string, measured in pixels.
height()
  Returns the line height, measured in pixels.
width()
  The logical width of a text string, measured in pixels.

Properties

type:
  Font or fontset type.
ascent:
  Baseline to top of logical area.
descent:
  Baseline to bottom of logical area.


Prev Home Next
GdkEventVisibility::state Up GdkFont::extents

 

  

Network sites:

$8.95 domain registration : cheap domains from US$5.95

Active-Domain.com: domain register and domain registration services 

 
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php