Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UFontFamily Class Reference

Font Family object. More...

#include <ufont.hpp>

List of all members.

Public Member Functions

void init (const char *name, const char *normal_weight="medium", const char *bold_weight="bold", const char *slant="o", const char *compression="normal", const char *encoding="1", const UFont::FontSize *font_sizes=null)
 creates a new FontFamily from a native system font name
int lsizeToPtsize (int logical_size) const
int ptsizeToLsize (int point_size) const
 these functions convert point sizes to logical sizes and vice versa.

Static Public Member Functions

static float getXYScale (short lscale)
 estimates the XY scale from the logical scale.
static const UFont::FontSize * getFontSizes ()
 returns an array of MAX_LSIZE.

Static Public Attributes

static UFontFamily standard
 Predefined font families.
static UFontFamily any
 Predefined font families.
static UFontFamily helvetica
 Predefined font families.
static UFontFamily times
 Predefined font families.
static UFontFamily courier
 Predefined font families.
static UFontFamily fixed
 Predefined font families.


Detailed Description

Font Family object.

A Font Family represents a collection of fonts for all possible sizes and styles (however, actual fonts are loaded dynamically when necessary)


Member Function Documentation

void UFontFamily::init const char *  name,
const char *  normal_weight = "medium",
const char *  bold_weight = "bold",
const char *  slant = "o",
const char *  compression = "normal",
const char *  encoding = "1",
const UFont::FontSize *  font_sizes = null
 

creates a new FontFamily from a native system font name

!Warnings:

  • the character strings are NOT copied: they must NOT be freed nor changed!
  • the 'font_sizes' vector must be MAX_LSIZE long (or null which means that default values are used)


Member Data Documentation

UFontFamily UFontFamily::any [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.

UFontFamily UFontFamily::courier [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.

UFontFamily UFontFamily::fixed [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.

UFontFamily UFontFamily::helvetica [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.

UFontFamily UFontFamily::standard [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.

UFontFamily UFontFamily::times [static]
 

Predefined font families.

  • 'standard' is the default font family. 'standard' must always be physically available and it is preloaded for all styles.
  • 'any' represents any font family. It is used in UFont descriptions when changing a style or a size without changing the font family.


The documentation for this class was generated from the following files:
Generated on Fri Mar 4 01:34:32 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.1