16#if !defined(OPENNURBS_FONT_INC_)
17#define OPENNURBS_FONT_INC_
27#if defined(ON_OS_WINDOWS_GDI)
28 ON_Font(
const LOGFONT& logfont );
80#if defined(ON_OS_WINDOWS_GDI)
100 bold_weight = FW_BOLD,
101 medium_weight = FW_MEDIUM,
102 normal_weight = FW_NORMAL,
103 light_weight = FW_LIGHT,
106 default_charset = DEFAULT_CHARSET,
107 symbol_charset = SYMBOL_CHARSET,
123 normal_font_height = 256
140 bool IsSymbolFontFaceName(
141 const wchar_t* facename
144 void SetFontName(
const wchar_t* );
145 void SetFontName(
const char* );
148 const wchar_t* FontName()
const;
150 void SetFontIndex(
int);
151 int FontIndex()
const;
157 double LinefeedRatio()
const;
159 void SetLinefeedRatio(
double linefeed_ratio );
161 bool SetFontFaceName(
const wchar_t* );
162 bool SetFontFaceName(
const char* );
165 const wchar_t* FontFaceName()
const;
167 int FontWeight()
const;
168 void SetFontWeight(
int);
170 bool IsItalic()
const;
171 void SetIsItalic(
bool );
172 void SetItalic(
bool );
175 void SetBold(
bool );
178 bool IsUnderlined()
const;
179 void SetUnderlined(
bool );
188 int HeightOfI()
const;
195 int HeightOfLinefeed()
const;
208 double AscentRatio()
const;
227#if defined(ON_OS_WINDOWS_GDI)
228 bool SetLogFont(
const LOGFONT& logfont );
229 const LOGFONT& LogFont()
const;
240 wchar_t m_facename[face_name_size];
243#if defined(ON_OS_WINDOWS_GDI)
Definition opennurbs_archive.h:152
Definition opennurbs_font.h:20
int m_font_index
Definition opennurbs_font.h:238
double m_linefeed_ratio
Definition opennurbs_font.h:237
bool m_font_italic
Definition opennurbs_font.h:235
int m_font_weight
Definition opennurbs_font.h:234
ON_wString m_font_name
Definition opennurbs_font.h:233
ON_OBJECT_DECLARE(ON_Font)
static const int m_metrics_char
Definition opennurbs_font.h:131
ON_UUID m_font_id
Definition opennurbs_font.h:239
static const double m_default_linefeed_ratio
Definition opennurbs_font.h:128
bool CompareFontCharacteristics(ON_Font &font_to_compare, bool bCompareName) const
int m_I_height
Definition opennurbs_font.h:249
bool m_font_underlined
Definition opennurbs_font.h:236
Definition opennurbs_object.h:393
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual ON_UUID ModelObjectId() const
Definition opennurbs_object.cpp:1622
ON_Object & operator=(const ON_Object &)
Definition opennurbs_object.cpp:1362
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362