Point Cloud Library (PCL)  1.7.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
ON_Font Class Reference

#include <pcl/surface/3rdparty/opennurbs/opennurbs_font.h>

+ Inheritance diagram for ON_Font:

List of all members.

Public Types

enum  {
  face_name_size = 65, bold_weight = 700, medium_weight = 500, normal_weight = 400,
  light_weight = 300, default_charset = 1, symbol_charset = 2, normal_font_height = 256
}

Public Member Functions

 ON_Font ()
 ~ON_Font ()
bool CreateFontFromFaceName (const wchar_t *face_name, bool bBold, bool bItalic)
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
void Dump (ON_TextLog &) const
ON_BOOL32 Write (ON_BinaryArchive &) const
ON_BOOL32 Read (ON_BinaryArchive &)
ON_UUID ModelObjectId () const
void SetFontName (const wchar_t *)
void SetFontName (const char *)
void GetFontName (ON_wString &) const
const wchar_t * FontName () const
void SetFontIndex (int)
int FontIndex () const
double LinefeedRatio () const
void SetLinefeedRatio (double linefeed_ratio)
bool SetFontFaceName (const wchar_t *)
bool SetFontFaceName (const char *)
void GetFontFaceName (ON_wString &) const
const wchar_t * FontFaceName () const
int FontWeight () const
void SetFontWeight (int)
bool IsItalic () const
void SetIsItalic (bool)
void SetItalic (bool)
bool IsBold () const
void SetBold (bool)
bool IsUnderlined () const
void SetUnderlined (bool)
void Defaults ()
int HeightOfI () const
int HeightOfLinefeed () const
double AscentRatio () const
bool CompareFontCharacteristics (ON_Font &font_to_compare, bool bCompareName) const
void UpdateImplementationSettings ()

Static Public Member Functions

static bool IsSymbolFontFaceName (const wchar_t *facename)

Public Attributes

ON_wString m_font_name
int m_font_weight
bool m_font_italic
bool m_font_underlined
double m_linefeed_ratio
int m_font_index
ON_UUID m_font_id
wchar_t m_facename [face_name_size]

Static Public Attributes

static const double m_default_linefeed_ratio
static const int m_metrics_char

Detailed Description

Definition at line 20 of file opennurbs_font.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
face_name_size 
bold_weight 
medium_weight 
normal_weight 
light_weight 
default_charset 
symbol_charset 
normal_font_height 

Definition at line 99 of file opennurbs_font.h.


Constructor & Destructor Documentation


Member Function Documentation

double ON_Font::AscentRatio ( ) const
bool ON_Font::CompareFontCharacteristics ( ON_Font font_to_compare,
bool  bCompareName 
) const
bool ON_Font::CreateFontFromFaceName ( const wchar_t *  face_name,
bool  bBold,
bool  bItalic 
)
void ON_Font::Dump ( ON_TextLog ) const [virtual]

Reimplemented from ON_Object.

const wchar_t* ON_Font::FontFaceName ( ) const
int ON_Font::FontIndex ( ) const
const wchar_t* ON_Font::FontName ( ) const
int ON_Font::FontWeight ( ) const
void ON_Font::GetFontName ( ON_wString ) const
int ON_Font::HeightOfI ( ) const
bool ON_Font::IsBold ( ) const
bool ON_Font::IsItalic ( ) const
static bool ON_Font::IsSymbolFontFaceName ( const wchar_t *  facename) [static]
bool ON_Font::IsUnderlined ( ) const
ON_BOOL32 ON_Font::IsValid ( ON_TextLog text_log = NULL) const [virtual]

Implements ON_Object.

double ON_Font::LinefeedRatio ( ) const
ON_UUID ON_Font::ModelObjectId ( ) const [virtual]

Reimplemented from ON_Object.

ON_BOOL32 ON_Font::Read ( ON_BinaryArchive ) [virtual]

Reimplemented from ON_Object.

void ON_Font::SetBold ( bool  )
bool ON_Font::SetFontFaceName ( const wchar_t *  )
bool ON_Font::SetFontFaceName ( const char *  )
void ON_Font::SetFontIndex ( int  )
void ON_Font::SetFontName ( const wchar_t *  )
void ON_Font::SetFontName ( const char *  )
void ON_Font::SetFontWeight ( int  )
void ON_Font::SetIsItalic ( bool  )
void ON_Font::SetItalic ( bool  )
void ON_Font::SetLinefeedRatio ( double  linefeed_ratio)
void ON_Font::SetUnderlined ( bool  )
ON_BOOL32 ON_Font::Write ( ON_BinaryArchive ) const [virtual]

Reimplemented from ON_Object.


Member Data Documentation

const double ON_Font::m_default_linefeed_ratio [static]

Definition at line 150 of file opennurbs_font.h.

Definition at line 262 of file opennurbs_font.h.

Definition at line 261 of file opennurbs_font.h.

Definition at line 260 of file opennurbs_font.h.

Definition at line 257 of file opennurbs_font.h.

Definition at line 255 of file opennurbs_font.h.

Definition at line 258 of file opennurbs_font.h.

Definition at line 256 of file opennurbs_font.h.

Definition at line 259 of file opennurbs_font.h.

const int ON_Font::m_metrics_char [static]

Definition at line 153 of file opennurbs_font.h.


The documentation for this class was generated from the following file: