Font Class Reference

List of all members.

Detailed Description

Font manipulation.

Todo:
check if we need to free the PangoFontDescription on the dtor


Public Member Functions

PangoFontDescription * gdkP ()
 get the Pango font structure
 this (PangoFontDescription *pangoFontDescription)
 creates a new font from a PangoFontDescription
GType getType ()
 gets this class type
 this ()
 creates a new Font
 this (String str)
 Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]".
PangoFontDescription * pango_font_description_copy (const PangoFontDescription *desc)
PangoFontDescription * pango_font_description_copy_static (const PangoFontDescription *desc)
guint pango_font_description_hash (const PangoFontDescription *desc)
gboolean pango_font_description_equal (const PangoFontDescription *desc1, const PangoFontDescription *desc2)
void free ()
 frees this description
void pango_font_descriptions_free (PangoFontDescription **descs, int n_descs)
void pango_font_description_set_family (PangoFontDescription *desc, const char *family)
void pango_font_description_set_family_static (PangoFontDescription *desc, const char *family)
G_CONST_RETURN char * pango_font_description_get_family (const PangoFontDescription *desc)
void pango_font_description_set_style (PangoFontDescription *desc, PangoStyle style)
PangoStyle pango_font_description_get_style (const PangoFontDescription *desc)
void pango_font_description_set_variant (PangoFontDescription *desc, PangoVariant variant)
PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc)
void pango_font_description_set_weight (PangoFontDescription *desc, PangoWeight weight)
PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc)
void pango_font_description_set_stretch (PangoFontDescription *desc, PangoStretch stretch)
PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc)
void pango_font_description_set_size (PangoFontDescription *desc, gint size)
gint pango_font_description_get_size (const PangoFontDescription *desc)
PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc)
void pango_font_description_unset_fields (PangoFontDescription *desc, PangoFontMask to_unset)
void pango_font_description_merge (PangoFontDescription *desc, const PangoFontDescription *desc_to_merge, gboolean replace_existing)
void pango_font_description_merge_static (PangoFontDescription *desc, const PangoFontDescription *desc_to_merge, gboolean replace_existing)
gboolean pango_font_description_better_match (const PangoFontDescription *desc, const PangoFontDescription *old_match, const PangoFontDescription *new_match)
char * pango_font_description_to_string (const PangoFontDescription *desc)
char * pango_font_description_to_filename (const PangoFontDescription *desc)


Member Function Documentation

void Font.free  ) 
 

frees this description

PangoFontDescription* Font.gdkP  ) 
 

get the Pango font structure

Returns:
a pointer to PangoFontDescription

GType Font.getType  ) 
 

gets this class type

Returns:
this class type

gboolean Font.pango_font_description_better_match const PangoFontDescription *  desc,
const PangoFontDescription *  old_match,
const PangoFontDescription *  new_match
 

Todo:

PangoFontDescription* Font.pango_font_description_copy const PangoFontDescription *  desc  ) 
 

Todo:

PangoFontDescription* Font.pango_font_description_copy_static const PangoFontDescription *  desc  ) 
 

Todo:

gboolean Font.pango_font_description_equal const PangoFontDescription *  desc1,
const PangoFontDescription *  desc2
 

Todo:

G_CONST_RETURN char* Font.pango_font_description_get_family const PangoFontDescription *  desc  ) 
 

Todo:

PangoFontMask Font.pango_font_description_get_set_fields const PangoFontDescription *  desc  ) 
 

Todo:

gint Font.pango_font_description_get_size const PangoFontDescription *  desc  ) 
 

Todo:

PangoStretch Font.pango_font_description_get_stretch const PangoFontDescription *  desc  ) 
 

Todo:

PangoStyle Font.pango_font_description_get_style const PangoFontDescription *  desc  ) 
 

Todo:

PangoVariant Font.pango_font_description_get_variant const PangoFontDescription *  desc  ) 
 

Todo:

PangoWeight Font.pango_font_description_get_weight const PangoFontDescription *  desc  ) 
 

Todo:

guint Font.pango_font_description_hash const PangoFontDescription *  desc  ) 
 

Todo:

void Font.pango_font_description_merge PangoFontDescription *  desc,
const PangoFontDescription *  desc_to_merge,
gboolean  replace_existing
 

Todo:

void Font.pango_font_description_merge_static PangoFontDescription *  desc,
const PangoFontDescription *  desc_to_merge,
gboolean  replace_existing
 

Todo:

void Font.pango_font_description_set_family PangoFontDescription *  desc,
const char *  family
 

Todo:

void Font.pango_font_description_set_family_static PangoFontDescription *  desc,
const char *  family
 

Todo:

void Font.pango_font_description_set_size PangoFontDescription *  desc,
gint  size
 

Todo:

void Font.pango_font_description_set_stretch PangoFontDescription *  desc,
PangoStretch  stretch
 

Todo:

void Font.pango_font_description_set_style PangoFontDescription *  desc,
PangoStyle  style
 

Todo:

void Font.pango_font_description_set_variant PangoFontDescription *  desc,
PangoVariant  variant
 

Todo:

void Font.pango_font_description_set_weight PangoFontDescription *  desc,
PangoWeight  weight
 

Todo:

char* Font.pango_font_description_to_filename const PangoFontDescription *  desc  ) 
 

Todo:

char* Font.pango_font_description_to_string const PangoFontDescription *  desc  ) 
 

Todo:

void Font.pango_font_description_unset_fields PangoFontDescription *  desc,
PangoFontMask  to_unset
 

Todo:

void Font.pango_font_descriptions_free PangoFontDescription **  descs,
int  n_descs
 

Todo:

Font.this String  str  ) 
 

Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]".

FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is an decimal number (size in points). Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to NULL. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.

Parameters:
str the string description
Bug:
this segfaults

Font.this  ) 
 

creates a new Font

Font.this PangoFontDescription *  pangoFontDescription  ) 
 

creates a new font from a PangoFontDescription


SourceForge.net Logo DSource.org Logo digitalmars.com Logo