#include <opennurbs_font.h>

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 | |
| double | AscentRatio () const |
| bool | CompareFontCharacteristics (ON_Font &font_to_compare, bool bCompareName) const |
| bool | CreateFontFromFaceName (const wchar_t *face_name, bool bBold, bool bItalic) |
| void | Defaults () |
| void | Dump (ON_TextLog &) const |
| const wchar_t * | FontFaceName () const |
| int | FontIndex () const |
| const wchar_t * | FontName () const |
| int | FontWeight () const |
| void | GetFontFaceName (ON_wString &) const |
| void | GetFontName (ON_wString &) const |
| int | HeightOfI () const |
| int | HeightOfLinefeed () const |
| bool | IsBold () const |
| bool | IsItalic () const |
| bool | IsUnderlined () const |
| ON_BOOL32 | IsValid (ON_TextLog *text_log=NULL) const |
| double | LinefeedRatio () const |
| ON_UUID | ModelObjectId () const |
| ON_Font () | |
| ON_BOOL32 | Read (ON_BinaryArchive &) |
| void | SetBold (bool) |
| bool | SetFontFaceName (const wchar_t *) |
| bool | SetFontFaceName (const char *) |
| void | SetFontIndex (int) |
| void | SetFontName (const wchar_t *) |
| void | SetFontName (const char *) |
| void | SetFontWeight (int) |
| void | SetIsItalic (bool) |
| void | SetItalic (bool) |
| void | SetLinefeedRatio (double linefeed_ratio) |
| void | SetUnderlined (bool) |
| void | UpdateImplementationSettings () |
| ON_BOOL32 | Write (ON_BinaryArchive &) const |
| ~ON_Font () | |
Static Public Member Functions | |
| static bool | IsSymbolFontFaceName (const wchar_t *facename) |
Public Attributes | |
| wchar_t | m_facename [face_name_size] |
| ON_UUID | m_font_id |
| int | m_font_index |
| bool | m_font_italic |
| ON_wString | m_font_name |
| bool | m_font_underlined |
| int | m_font_weight |
| double | m_linefeed_ratio |
Static Public Attributes | |
| static const double | m_default_linefeed_ratio = 1.6 |
| static const int | m_metrics_char = 'I' |
Private Member Functions | |
| ON_OBJECT_DECLARE (ON_Font) | |
Private Attributes | |
| int | m_I_height |
Definition at line 20 of file opennurbs_font.h.
| anonymous enum |
| 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.
| ON_Font::ON_Font | ( | ) |
Definition at line 21 of file opennurbs_font.cpp.
Definition at line 26 of file opennurbs_font.cpp.
| double ON_Font::AscentRatio | ( | ) | const |
Definition at line 337 of file opennurbs_font.cpp.
| 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 | ||
| ) |
Definition at line 30 of file opennurbs_font.cpp.
| void ON_Font::Defaults | ( | ) |
Definition at line 62 of file opennurbs_font.cpp.
| void ON_Font::Dump | ( | ON_TextLog & | dump | ) | const [virtual] |
Reimplemented from ON_Object.
Definition at line 94 of file opennurbs_font.cpp.
| const wchar_t * ON_Font::FontFaceName | ( | ) | const |
Definition at line 347 of file opennurbs_font.cpp.
| int ON_Font::FontIndex | ( | ) | const |
Definition at line 358 of file opennurbs_font.cpp.
| const wchar_t * ON_Font::FontName | ( | ) | const |
Definition at line 258 of file opennurbs_font.cpp.
| int ON_Font::FontWeight | ( | ) | const |
Definition at line 373 of file opennurbs_font.cpp.
| void ON_Font::GetFontFaceName | ( | ON_wString & | s | ) | const |
Definition at line 342 of file opennurbs_font.cpp.
| void ON_Font::GetFontName | ( | ON_wString & | s | ) | const |
Definition at line 253 of file opennurbs_font.cpp.
| int ON_Font::HeightOfI | ( | ) | const |
Definition at line 500 of file opennurbs_font.cpp.
| int ON_Font::HeightOfLinefeed | ( | ) | const |
Definition at line 574 of file opennurbs_font.cpp.
| bool ON_Font::IsBold | ( | ) | const |
Definition at line 411 of file opennurbs_font.cpp.
| bool ON_Font::IsItalic | ( | ) | const |
Definition at line 390 of file opennurbs_font.cpp.
| bool ON_Font::IsSymbolFontFaceName | ( | const wchar_t * | facename | ) | [static] |
Definition at line 277 of file opennurbs_font.cpp.
| bool ON_Font::IsUnderlined | ( | ) | const |
Definition at line 423 of file opennurbs_font.cpp.
| ON_BOOL32 ON_Font::IsValid | ( | ON_TextLog * | text_log = NULL | ) | const [virtual] |
Implements ON_Object.
Definition at line 85 of file opennurbs_font.cpp.
| double ON_Font::LinefeedRatio | ( | ) | const |
Definition at line 363 of file opennurbs_font.cpp.
| ON_UUID ON_Font::ModelObjectId | ( | ) | const [virtual] |
Reimplemented from ON_Object.
Definition at line 1585 of file opennurbs_object.cpp.
| ON_Font::ON_OBJECT_DECLARE | ( | ON_Font | ) | [private] |
| ON_BOOL32 ON_Font::Read | ( | ON_BinaryArchive & | file | ) | [virtual] |
Reimplemented from ON_Object.
Definition at line 156 of file opennurbs_font.cpp.
| void ON_Font::SetBold | ( | bool | bBold | ) |
Definition at line 417 of file opennurbs_font.cpp.
| bool ON_Font::SetFontFaceName | ( | const wchar_t * | s | ) |
Definition at line 307 of file opennurbs_font.cpp.
| bool ON_Font::SetFontFaceName | ( | const char * | s | ) |
Definition at line 330 of file opennurbs_font.cpp.
| void ON_Font::SetFontIndex | ( | int | i | ) |
Definition at line 353 of file opennurbs_font.cpp.
| void ON_Font::SetFontName | ( | const wchar_t * | s | ) |
Definition at line 243 of file opennurbs_font.cpp.
| void ON_Font::SetFontName | ( | const char * | s | ) |
Definition at line 248 of file opennurbs_font.cpp.
| void ON_Font::SetFontWeight | ( | int | w | ) |
Definition at line 378 of file opennurbs_font.cpp.
| void ON_Font::SetIsItalic | ( | bool | b | ) |
Definition at line 395 of file opennurbs_font.cpp.
| void ON_Font::SetItalic | ( | bool | b | ) |
Definition at line 401 of file opennurbs_font.cpp.
| void ON_Font::SetLinefeedRatio | ( | double | linefeed_ratio | ) |
Definition at line 368 of file opennurbs_font.cpp.
| void ON_Font::SetUnderlined | ( | bool | b | ) |
Definition at line 429 of file opennurbs_font.cpp.
Definition at line 438 of file opennurbs_font.cpp.
| ON_BOOL32 ON_Font::Write | ( | ON_BinaryArchive & | file | ) | const [virtual] |
Reimplemented from ON_Object.
Definition at line 108 of file opennurbs_font.cpp.
const double ON_Font::m_default_linefeed_ratio = 1.6 [static] |
Definition at line 150 of file opennurbs_font.h.
| wchar_t ON_Font::m_facename[face_name_size] |
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.
int ON_Font::m_I_height [private] |
Definition at line 280 of file opennurbs_font.h.
| double ON_Font::m_linefeed_ratio |
Definition at line 259 of file opennurbs_font.h.
const int ON_Font::m_metrics_char = 'I' [static] |
Definition at line 153 of file opennurbs_font.h.