Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

cr-fonts.h File Reference


Detailed Description

Various type declarations about font selection related properties.

Definition in file cr-fonts.h.

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

Go to the source code of this file.

Classes

struct  _CRFontFamily
struct  _CRFontSize
struct  _CRFontSizeAdjust

Typedefs

typedef struct _CRFontFamily CRFontFamily
typedef struct _CRFontSize CRFontSize
typedef struct _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, FONT_FAMILY_INHERIT, NB_FONT_FAMILIE_TYPES
}
enum  CRFontSizeAdjustType { FONT_SIZE_ADJUST_NONE = 0, FONT_SIZE_ADJUST_NUMBER, FONT_SIZE_ADJUST_INHERIT }
enum  CRFontSizeType {
  PREDEFINED_ABSOLUTE_FONT_SIZE, ABSOLUTE_FONT_SIZE, RELATIVE_FONT_SIZE, INHERITED_FONT_SIZE,
  NB_FONT_SIZE_TYPE
}
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
}
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 = 1, FONT_WEIGHT_BOLD = 1<<1, FONT_WEIGHT_BOLDER = 1<<2, FONT_WEIGHT_LIGHTER = 1<<3,
  FONT_WEIGHT_100 = 1<<4, FONT_WEIGHT_200 = 1<<5, FONT_WEIGHT_300 = 1<<6, FONT_WEIGHT_400 = 1<<7,
  FONT_WEIGHT_500 = 1<<8, FONT_WEIGHT_600 = 1<<9, FONT_WEIGHT_700 = 1<<10, FONT_WEIGHT_800 = 1<<11,
  FONT_WEIGHT_900 = 1<<12, FONT_WEIGHT_INHERIT = 1<<13, NB_FONT_WEIGHTS
}
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, FONT_SIZE_INHERIT,
  NB_PREDEFINED_ABSOLUTE_FONT_SIZES
}
enum  CRRelativeFontSize { FONT_SIZE_LARGER, FONT_SIZE_SMALLER, NB_RELATIVE_FONT_SIZE }

Functions

CRFontFamily * cr_font_family_append (CRFontFamily *a_this, CRFontFamily *a_family_to_append)
enum CRStatus cr_font_family_destroy (CRFontFamily *a_this)
CRFontFamily * cr_font_family_new (enum CRFontFamilyType a_type, guchar *a_name)
CRFontFamily * cr_font_family_prepend (CRFontFamily *a_this, CRFontFamily *a_family_to_prepend)
enum CRStatus cr_font_family_set_name (CRFontFamily *a_this, guchar *a_name)
guchar * cr_font_family_to_string (CRFontFamily *a_this, gboolean a_walk_font_family_list)
void cr_font_size_adjust_destroy (CRFontSizeAdjust *a_this)
CRFontSizeAdjust * cr_font_size_adjust_new (void)
gchar * cr_font_size_adjust_to_string (CRFontSizeAdjust *a_this)
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)
void cr_font_size_get_larger_predefined_font_size (enum CRPredefinedAbsoluteFontSize a_font_size, enum CRPredefinedAbsoluteFontSize *a_larger_size)
void cr_font_size_get_smaller_predefined_font_size (enum CRPredefinedAbsoluteFontSize a_font_size, enum CRPredefinedAbsoluteFontSize *a_smaller_size)
gboolean cr_font_size_is_predefined_absolute_font_size (enum CRPredefinedAbsoluteFontSize a_font_size)
gboolean cr_font_size_is_set_to_inherit (CRFontSize *a_this)
CRFontSize * cr_font_size_new (void)
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_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_to_inherit (CRFontSize *a_this)
gchar * cr_font_size_to_string (CRFontSize *a_this)
const gchar * cr_font_stretch_to_string (enum CRFontStretch a_code)
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)


Generated by  Doxygen 1.6.0   Back to index