Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

cr-fonts.c File Reference

#include "cr-fonts.h"
#include <string.h>

Go to the source code of this file.

Functions

CRFontFamilycr_font_family_new (enum CRFontFamilyType a_type, guchar *a_name)
guchar * cr_font_family_to_string (CRFontFamily *a_this, gboolean a_walk_font_family_list)
enum CRStatus cr_font_family_set_name (CRFontFamily *a_this, guchar *a_name)
CRFontFamilycr_font_family_append (CRFontFamily *a_this, CRFontFamily *a_family_to_append)
CRFontFamilycr_font_family_prepend (CRFontFamily *a_this, CRFontFamily *a_family_to_prepend)
enum CRStatus cr_font_family_destroy (CRFontFamily *a_this)
CRFontSizecr_font_size_new (void)
enum CRStatus cr_font_size_clear (CRFontSize *a_this)
enum CRStatus cr_font_size_copy (CRFontSize *a_dst, CRFontSize *a_src)
gchar * cr_font_size_to_string (CRFontSize *a_this)
gchar * cr_font_size_adjust_to_string (CRFontSizeAdjust *a_this)
const gchar * cr_font_style_to_string (enum CRFontStyle a_code)
const gchar * cr_font_variant_to_string (enum CRFontVariant a_code)
const gchar * cr_font_weight_to_string (enum CRFontWeight a_code)
const gchar * cr_font_stretch_to_string (enum CRFontStretch a_code)
void cr_font_size_destroy (CRFontSize *a_font_size)
CRFontSizeAdjustcr_font_size_adjust_new (void)
void cr_font_size_adjust_destroy (CRFontSizeAdjust *a_this)


Function Documentation

CRFontFamily* cr_font_family_append CRFontFamily a_this,
CRFontFamily a_family_to_append
 

Definition at line 218 of file cr-fonts.c.

References CRFontFamily, _CRFontFamily::next, and _CRFontFamily::prev.

enum CRStatus cr_font_family_destroy CRFontFamily a_this  ) 
 

Definition at line 253 of file cr-fonts.c.

References CR_BAD_PARAM_ERROR, CR_OK, CRFontFamily, _CRFontFamily::next, and _CRFontFamily::prev.

CRFontFamily* cr_font_family_new enum CRFontFamilyType  a_type,
guchar *  a_name
 

Definition at line 145 of file cr-fonts.c.

References cr_font_family_set_name(), cr_utils_trace_info, CRFontFamily, and _CRFontFamily::type.

CRFontFamily* cr_font_family_prepend CRFontFamily a_this,
CRFontFamily a_family_to_prepend
 

Definition at line 238 of file cr-fonts.c.

References CR_OK, CRFontFamily, and _CRFontFamily::prev.

enum CRStatus cr_font_family_set_name CRFontFamily a_this,
guchar *  a_name
 

Definition at line 196 of file cr-fonts.c.

References CR_BAD_PARAM_ERROR, CR_OK, CRFontFamily, FONT_FAMILY_NON_GENERIC, _CRFontFamily::name, and _CRFontFamily::type.

Referenced by cr_font_family_new().

guchar* cr_font_family_to_string CRFontFamily a_this,
gboolean  a_walk_font_family_list
 

Definition at line 165 of file cr-fonts.c.

References CR_OK, CRFontFamily, and CRStatus.

Referenced by cr_style_to_string().

void cr_font_size_adjust_destroy CRFontSizeAdjust a_this  ) 
 

Definition at line 591 of file cr-fonts.c.

References cr_num_destroy(), CRFontSizeAdjust, FONT_SIZE_ADJUST_NUMBER, _CRFontSizeAdjust::num, and _CRFontSizeAdjust::type.

CRFontSizeAdjust* cr_font_size_adjust_new void   ) 
 

Definition at line 576 of file cr-fonts.c.

References cr_utils_trace_info, and CRFontSizeAdjust.

gchar* cr_font_size_adjust_to_string CRFontSizeAdjust a_this  ) 
 

Definition at line 388 of file cr-fonts.c.

References cr_num_to_string(), CRFontSizeAdjust, FONT_SIZE_ADJUST_INHERIT, FONT_SIZE_ADJUST_NONE, FONT_SIZE_ADJUST_NUMBER, _CRFontSizeAdjust::num, and _CRFontSizeAdjust::type.

Referenced by cr_style_to_string().

enum CRStatus cr_font_size_clear CRFontSize a_this  ) 
 

Definition at line 300 of file cr-fonts.c.

References ABSOLUTE_FONT_SIZE, CR_BAD_PARAM_ERROR, cr_num_destroy(), CR_OK, CR_UNKNOWN_TYPE_ERROR, CRFontSize, INHERITED_FONT_SIZE, PREDEFINED_ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, _CRFontSize::type, and _CRFontSize::value.

Referenced by cr_font_size_copy().

enum CRStatus cr_font_size_copy CRFontSize a_dst,
CRFontSize a_src
 

Definition at line 326 of file cr-fonts.c.

References ABSOLUTE_FONT_SIZE, CR_BAD_PARAM_ERROR, cr_font_size_clear(), cr_num_copy(), cr_num_new(), CR_OK, CR_UNKNOWN_TYPE_ERROR, CRFontSize, INHERITED_FONT_SIZE, PREDEFINED_ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, _CRFontSize::type, and _CRFontSize::value.

void cr_font_size_destroy CRFontSize a_font_size  ) 
 

Definition at line 560 of file cr-fonts.c.

References ABSOLUTE_FONT_SIZE, cr_num_destroy(), CRFontSize, _CRFontSize::type, and _CRFontSize::value.

CRFontSize* cr_font_size_new void   ) 
 

Definition at line 285 of file cr-fonts.c.

References cr_utils_trace_info, and CRFontSize.

gchar* cr_font_size_to_string CRFontSize a_this  ) 
 

Definition at line 357 of file cr-fonts.c.

References ABSOLUTE_FONT_SIZE, cr_num_to_string(), CRFontSize, INHERITED_FONT_SIZE, PREDEFINED_ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, _CRFontSize::type, and _CRFontSize::value.

Referenced by cr_style_to_string().

const gchar* cr_font_stretch_to_string enum CRFontStretch  a_code  ) 
 

Definition at line 514 of file cr-fonts.c.

References FONT_STRETCH_CONDENSED, FONT_STRETCH_EXPANDED, FONT_STRETCH_EXTRA_CONDENSED, FONT_STRETCH_EXTRA_EXPANDED, FONT_STRETCH_INHERIT, FONT_STRETCH_NARROWER, FONT_STRETCH_NORMAL, FONT_STRETCH_SEMI_CONDENSED, FONT_STRETCH_SEMI_EXPANDED, FONT_STRETCH_ULTRA_CONDENSED, FONT_STRETCH_ULTRA_EXPANDED, and FONT_STRETCH_WIDER.

Referenced by cr_style_to_string().

const gchar* cr_font_style_to_string enum CRFontStyle  a_code  ) 
 

Definition at line 415 of file cr-fonts.c.

References FONT_STYLE_INHERIT, FONT_STYLE_ITALIC, FONT_STYLE_NORMAL, and FONT_STYLE_OBLIQUE.

Referenced by cr_style_to_string().

const gchar* cr_font_variant_to_string enum CRFontVariant  a_code  ) 
 

Definition at line 440 of file cr-fonts.c.

References FONT_VARIANT_INHERIT, FONT_VARIANT_NORMAL, and FONT_VARIANT_SMALL_CAPS.

Referenced by cr_style_to_string().

const gchar* cr_font_weight_to_string enum CRFontWeight  a_code  ) 
 

Definition at line 459 of file cr-fonts.c.

References FONT_WEIGHT_100, FONT_WEIGHT_200, FONT_WEIGHT_300, FONT_WEIGHT_400, FONT_WEIGHT_500, FONT_WEIGHT_600, FONT_WEIGHT_700, FONT_WEIGHT_800, FONT_WEIGHT_900, FONT_WEIGHT_BOLD, FONT_WEIGHT_BOLDER, FONT_WEIGHT_INHERIT, FONT_WEIGHT_LIGHTER, and FONT_WEIGHT_NORMAL.

Referenced by cr_style_to_string().


Generated on Sat Mar 20 02:38:46 2004 for Libcroco by doxygen 1.3.5