Main Page | Alphabetical List | Data Structures | Directories | 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)
enum CRStatus cr_font_size_set_predefined_absolute_font_size (CRFontSize *a_this, enum CRPredefinedAbsoluteFontSize a_predefined)
enum CRStatus cr_font_size_set_relative_font_size (CRFontSize *a_this, enum CRRelativeFontSize a_relative)
enum CRStatus cr_font_size_set_absolute_font_size (CRFontSize *a_this, enum CRNumType a_num_type, gdouble a_value)
enum CRStatus cr_font_size_set_to_inherit (CRFontSize *a_this)
gboolean cr_font_size_is_set_to_inherit (CRFontSize *a_this)
gchar * cr_font_size_to_string (CRFontSize *a_this)
void cr_font_size_get_smaller_predefined_font_size (enum CRPredefinedAbsoluteFontSize a_font_size, enum CRPredefinedAbsoluteFontSize *a_smaller_size)
void cr_font_size_get_larger_predefined_font_size (enum CRPredefinedAbsoluteFontSize a_font_size, enum CRPredefinedAbsoluteFontSize *a_larger_size)
gboolean cr_font_size_is_predefined_absolute_font_size (enum CRPredefinedAbsoluteFontSize a_font_size)
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)
enum CRFontWeight cr_font_weight_get_bolder (enum CRFontWeight a_weight)
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, CRFontFamily, _CRFontFamily::name, _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, and CRFontFamily.

CRFontFamily* cr_font_family_prepend CRFontFamily a_this,
CRFontFamily a_family_to_prepend
 

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

References CRFontFamily, _CRFontFamily::next, 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, CRFontFamily, and _CRFontFamily::name.

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 759 of file cr-fonts.c.

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

CRFontSizeAdjust* cr_font_size_adjust_new void   ) 
 

Definition at line 744 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 544 of file cr-fonts.c.

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

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, CRFontSize, INHERITED_FONT_SIZE, PREDEFINED_ABSOLUTE_FONT_SIZE, and RELATIVE_FONT_SIZE.

Referenced by cr_font_size_copy(), cr_font_size_set_to_inherit(), and cr_style_set_props_to_default_values().

enum CRStatus cr_font_size_copy CRFontSize a_dst,
CRFontSize a_src
 

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

References _CRFontSize::absolute, ABSOLUTE_FONT_SIZE, CR_BAD_PARAM_ERROR, cr_font_size_clear(), cr_num_copy(), CRFontSize, INHERITED_FONT_SIZE, PREDEFINED_ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, and _CRFontSize::value.

Referenced by cr_style_resolve_inherited_properties().

void cr_font_size_destroy CRFontSize a_font_size  ) 
 

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

References CRFontSize.

void cr_font_size_get_larger_predefined_font_size enum CRPredefinedAbsoluteFontSize  a_font_size,
enum CRPredefinedAbsoluteFontSize a_larger_size
 

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

References cr_utils_trace_info, CRPredefinedAbsoluteFontSize, FONT_SIZE_INHERIT, FONT_SIZE_LARGE, FONT_SIZE_MEDIUM, FONT_SIZE_SMALL, FONT_SIZE_X_LARGE, FONT_SIZE_X_SMALL, FONT_SIZE_XX_LARGE, FONT_SIZE_XX_SMALL, and NB_PREDEFINED_ABSOLUTE_FONT_SIZES.

void cr_font_size_get_smaller_predefined_font_size enum CRPredefinedAbsoluteFontSize  a_font_size,
enum CRPredefinedAbsoluteFontSize a_smaller_size
 

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

References cr_utils_trace_info, CRPredefinedAbsoluteFontSize, FONT_SIZE_INHERIT, FONT_SIZE_LARGE, FONT_SIZE_MEDIUM, FONT_SIZE_SMALL, FONT_SIZE_X_LARGE, FONT_SIZE_X_SMALL, FONT_SIZE_XX_LARGE, FONT_SIZE_XX_SMALL, and NB_PREDEFINED_ABSOLUTE_FONT_SIZES.

gboolean cr_font_size_is_predefined_absolute_font_size enum CRPredefinedAbsoluteFontSize  a_font_size  ) 
 

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

References FONT_SIZE_XX_SMALL.

gboolean cr_font_size_is_set_to_inherit CRFontSize a_this  ) 
 

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

References CRFontSize.

CRFontSize* cr_font_size_new void   ) 
 

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

References cr_utils_trace_info, and CRFontSize.

enum CRStatus cr_font_size_set_absolute_font_size CRFontSize a_this,
enum CRNumType  a_num_type,
gdouble  a_value
 

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

References _CRFontSize::absolute, CR_BAD_PARAM_ERROR, cr_num_set(), CRFontSize, NB_NUM_TYPE, NUM_AUTO, and _CRFontSize::value.

enum CRStatus cr_font_size_set_predefined_absolute_font_size CRFontSize a_this,
enum CRPredefinedAbsoluteFontSize  a_predefined
 

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

References CR_BAD_PARAM_ERROR, CRFontSize, NB_FONT_SIZE_TYPE, PREDEFINED_ABSOLUTE_FONT_SIZE, and _CRFontSize::value.

Referenced by cr_style_set_props_to_initial_values().

enum CRStatus cr_font_size_set_relative_font_size CRFontSize a_this,
enum CRRelativeFontSize  a_relative
 

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

References CR_BAD_PARAM_ERROR, CRFontSize, FONT_SIZE_LARGER, NB_RELATIVE_FONT_SIZE, and _CRFontSize::value.

enum CRStatus cr_font_size_set_to_inherit CRFontSize a_this  ) 
 

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

References CR_BAD_PARAM_ERROR, cr_font_size_clear(), and CRFontSize.

Referenced by cr_style_set_props_to_default_values().

gchar* cr_font_size_to_string CRFontSize a_this  ) 
 

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

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

Referenced by cr_style_to_string().

const gchar* cr_font_stretch_to_string enum CRFontStretch  a_code  ) 
 

Definition at line 686 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 571 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 596 of file cr-fonts.c.

References FONT_VARIANT_INHERIT, FONT_VARIANT_NORMAL, and FONT_VARIANT_SMALL_CAPS.

Referenced by cr_style_to_string().

enum CRFontWeight cr_font_weight_get_bolder enum CRFontWeight  a_weight  ) 
 

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

References cr_utils_trace_info, and FONT_WEIGHT_BOLDER.

const gchar* cr_font_weight_to_string enum CRFontWeight  a_code  ) 
 

Definition at line 631 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 Fri Oct 29 08:29:13 2004 for Libcroco by  doxygen 1.3.9.1