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

cr-fonts.h File Reference

Various type declarations about font selection related properties. More...

#include "cr-utils.h"
#include "cr-num.h"

Go to the source code of this file.

Data Structures

struct  _CRFontFamily
struct  _CRFontSize
struct  _CRFontSizeAdjust

Typedefs

typedef _CRFontFamily CRFontFamily
typedef _CRFontSize CRFontSize
typedef _CRFontSizeAdjust CRFontSizeAdjust

Enumerations

enum  CRFontFamilyType {
  FONT_FAMILY_SANS_SERIF, FONT_FAMILY_SERIF, FONT_FAMILY_CURSIVE, FONT_FAMILY_FANTASY,
  FONT_FAMILY_MONOSPACE, FONT_FAMILY_NON_GENERIC, NB_FONT_FAMILIE_TYPES
}
enum  CRPredefinedAbsoluteFontSize {
  FONT_SIZE_XX_SMALL = 0, FONT_SIZE_X_SMALL, FONT_SIZE_SMALL, FONT_SIZE_MEDIUM,
  FONT_SIZE_LARGE, FONT_SIZE_X_LARGE, FONT_SIZE_XX_LARGE, NB_PREDEFINED_ABSOLUTE_FONT_SIZES
}
 The different types of absolute font size. More...

enum  CRRelativeFontSize { FONT_SIZE_LARGER, FONT_SIZE_SMALLER }
 The different types of relative font size. More...

enum  CRFontSizeType { PREDEFINED_ABSOLUTE_FONT_SIZE, ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, INHERITED_FONT_SIZE }
 The type of font-size property. More...

enum  CRFontSizeAdjustType { FONT_SIZE_ADJUST_NONE = 0, FONT_SIZE_ADJUST_NUMBER, FONT_SIZE_ADJUST_INHERIT }
enum  CRFontStyle { FONT_STYLE_NORMAL = 0, FONT_STYLE_ITALIC, FONT_STYLE_OBLIQUE, FONT_STYLE_INHERIT }
enum  CRFontVariant { FONT_VARIANT_NORMAL = 0, FONT_VARIANT_SMALL_CAPS, FONT_VARIANT_INHERIT }
enum  CRFontWeight {
  FONT_WEIGHT_NORMAL = 0, FONT_WEIGHT_BOLD, FONT_WEIGHT_BOLDER, FONT_WEIGHT_LIGHTER,
  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_INHERIT
}
enum  CRFontStretch {
  FONT_STRETCH_NORMAL = 0, FONT_STRETCH_WIDER, FONT_STRETCH_NARROWER, FONT_STRETCH_ULTRA_CONDENSED,
  FONT_STRETCH_EXTRA_CONDENSED, FONT_STRETCH_CONDENSED, FONT_STRETCH_SEMI_CONDENSED, FONT_STRETCH_SEMI_EXPANDED,
  FONT_STRETCH_EXPANDED, FONT_STRETCH_EXTRA_EXPANDED, FONT_STRETCH_ULTRA_EXPANDED, FONT_STRETCH_INHERIT
}

Functions

CRFontFamilycr_font_family_new (enum CRFontFamilyType a_type, guchar *a_name)
CRFontFamilycr_font_family_append (CRFontFamily *a_this, CRFontFamily *a_family_to_append)
guchar * cr_font_family_to_string (CRFontFamily *a_this, gboolean a_walk_font_family_list)
CRFontFamilycr_font_family_prepend (CRFontFamily *a_this, CRFontFamily *a_family_to_prepend)
enum CRStatus cr_font_family_destroy (CRFontFamily *a_this)
enum CRStatus cr_font_family_set_name (CRFontFamily *a_this, guchar *a_name)
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)
void cr_font_size_destroy (CRFontSize *a_font_size)
CRFontSizeAdjustcr_font_size_adjust_new (void)
void cr_font_size_adjust_destroy (CRFontSizeAdjust *a_this)


Detailed Description

Various type declarations about font selection related properties.

Definition in file cr-fonts.h.


Typedef Documentation

typedef struct _CRFontFamily CRFontFamily
 

Definition at line 51 of file cr-fonts.h.

typedef struct _CRFontSize CRFontSize
 

Definition at line 150 of file cr-fonts.h.

typedef struct _CRFontSizeAdjust CRFontSizeAdjust
 

Definition at line 168 of file cr-fonts.h.


Enumeration Type Documentation

enum CRFontFamilyType
 

Enumeration values:
FONT_FAMILY_SANS_SERIF 
FONT_FAMILY_SERIF 
FONT_FAMILY_CURSIVE 
FONT_FAMILY_FANTASY 
FONT_FAMILY_MONOSPACE 
FONT_FAMILY_NON_GENERIC 
NB_FONT_FAMILIE_TYPES 

Definition at line 39 of file cr-fonts.h.

enum CRFontSizeAdjustType
 

Enumeration values:
FONT_SIZE_ADJUST_NONE 
FONT_SIZE_ADJUST_NUMBER 
FONT_SIZE_ADJUST_INHERIT 

Definition at line 162 of file cr-fonts.h.

enum CRFontSizeType
 

The type of font-size property.

Used to define the type of CRFontSize . See css2 spec chapter 15.2.4 to understand.

Enumeration values:
PREDEFINED_ABSOLUTE_FONT_SIZE  If the type of CRFontSize is PREDEFINED_ABSOLUTE_FONT_SIZE, the CRFontSize::value.predefined_absolute field will be defined.
ABSOLUTE_FONT_SIZE  If the type of CRFontSize is ABSOLUTE_FONT_SIZE, the CRFontSize::value.absolute field will be defined.
RELATIVE_FONT_SIZE  If the type of CRFontSize is RELATIVE_FONT_SIZE, the CRFontSize::value.relative field will be defined.
INHERITED_FONT_SIZE  If the type of CRFontSize is INHERITED_FONT_SIZE, the None of the field of the CRFontSize::value enum will be defined.

Definition at line 115 of file cr-fonts.h.

enum CRFontStretch
 

Enumeration values:
FONT_STRETCH_NORMAL 
FONT_STRETCH_WIDER 
FONT_STRETCH_NARROWER 
FONT_STRETCH_ULTRA_CONDENSED 
FONT_STRETCH_EXTRA_CONDENSED 
FONT_STRETCH_CONDENSED 
FONT_STRETCH_SEMI_CONDENSED 
FONT_STRETCH_SEMI_EXPANDED 
FONT_STRETCH_EXPANDED 
FONT_STRETCH_EXTRA_EXPANDED 
FONT_STRETCH_ULTRA_EXPANDED 
FONT_STRETCH_INHERIT 

Definition at line 208 of file cr-fonts.h.

enum CRFontStyle
 

Enumeration values:
FONT_STYLE_NORMAL 
FONT_STYLE_ITALIC 
FONT_STYLE_OBLIQUE 
FONT_STYLE_INHERIT 

Definition at line 175 of file cr-fonts.h.

enum CRFontVariant
 

Enumeration values:
FONT_VARIANT_NORMAL 
FONT_VARIANT_SMALL_CAPS 
FONT_VARIANT_INHERIT 

Definition at line 183 of file cr-fonts.h.

enum CRFontWeight
 

Enumeration values:
FONT_WEIGHT_NORMAL 
FONT_WEIGHT_BOLD 
FONT_WEIGHT_BOLDER 
FONT_WEIGHT_LIGHTER 
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_INHERIT 

Definition at line 190 of file cr-fonts.h.

enum CRPredefinedAbsoluteFontSize
 

The different types of absolute font size.

This is used by the 'font-size' property defined in css2 spec in chapter 15.2.4 . These values a indexes of table of size so please, do not change their definition order unless you know what you are doing.

Enumeration values:
FONT_SIZE_XX_SMALL 
FONT_SIZE_X_SMALL 
FONT_SIZE_SMALL 
FONT_SIZE_MEDIUM 
FONT_SIZE_LARGE 
FONT_SIZE_X_LARGE 
FONT_SIZE_XX_LARGE 
NB_PREDEFINED_ABSOLUTE_FONT_SIZES 

Definition at line 80 of file cr-fonts.h.

enum CRRelativeFontSize
 

The different types of relative font size.

This is used by the 'font-size' property defined in css2 spec in chapter 15.2.4 . These values a indexes of table of size so please, do not change their definition order unless you know what you are doing.

Enumeration values:
FONT_SIZE_LARGER 
FONT_SIZE_SMALLER 

Definition at line 104 of file cr-fonts.h.


Function Documentation

CRFontFamily* cr_font_family_append CRFontFamily a_this,
CRFontFamily a_family_to_append
 

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

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

enum CRStatus cr_font_family_destroy CRFontFamily a_this  ) 
 

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

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

CRFontFamily* cr_font_family_new enum CRFontFamilyType  a_type,
guchar *  a_name
 

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

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

CRFontFamily* cr_font_family_prepend CRFontFamily a_this,
CRFontFamily a_family_to_prepend
 

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

References CR_OK, and _CRFontFamily::prev.

enum CRStatus cr_font_family_set_name CRFontFamily a_this,
guchar *  a_name
 

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

References CR_BAD_PARAM_ERROR, CR_OK, 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 123 of file cr-fonts.c.

References CR_OK, and CRStatus.

Referenced by cr_style_to_pango_font_attributes().

void cr_font_size_adjust_destroy CRFontSizeAdjust a_this  ) 
 

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

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

CRFontSizeAdjust* cr_font_size_adjust_new void   ) 
 

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

References cr_utils_trace_info.

enum CRStatus cr_font_size_clear CRFontSize a_this  ) 
 

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

References ABSOLUTE_FONT_SIZE, CR_BAD_PARAM_ERROR, cr_num_destroy(), CR_OK, CR_UNKNOWN_TYPE_ERROR, 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 305 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, 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 339 of file cr-fonts.c.

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

CRFontSize* cr_font_size_new void   ) 
 

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

References cr_utils_trace_info.


Generated on Wed Oct 1 01:36:50 2003 for Libcroco by doxygen 1.3.3