OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
GdkFont

GdkFont

Structure holding font information.

Object Hierarchy

Direct subclasses

None.

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.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting


Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS Free Templates

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005