17 #if !defined(OPENNURBS_FONT_INC_)
18 #define OPENNURBS_FONT_INC_
44 const wchar_t* face_name,
49 #if defined(ON_OS_WINDOWS_GDI)
50 ON_Font(
const LOGFONT& logfont );
102 #if defined(ON_OS_WINDOWS_GDI)
122 bold_weight = FW_BOLD,
123 medium_weight = FW_MEDIUM,
124 normal_weight = FW_NORMAL,
125 light_weight = FW_LIGHT,
128 default_charset = DEFAULT_CHARSET,
129 symbol_charset = SYMBOL_CHARSET,
145 normal_font_height = 256
163 const wchar_t* facename
249 #if defined(ON_OS_WINDOWS_GDI)
250 bool SetLogFont(
const LOGFONT& logfont );
251 const LOGFONT& LogFont()
const;
262 wchar_t m_facename[face_name_size];
273 #if defined(ON_OS_WINDOWS_GDI)
void SetLinefeedRatio(double linefeed_ratio)
void Dump(ON_TextLog &) const
void UpdateImplementationSettings()
void SetFontName(const wchar_t *)
bool SetFontFaceName(const wchar_t *)
void GetFontName(ON_wString &) const
ON_BOOL32 Read(ON_BinaryArchive &)
void GetFontFaceName(ON_wString &) const
bool SetFontFaceName(const char *)
ON_BOOL32 Write(ON_BinaryArchive &) const
bool IsUnderlined() const
ON_UUID ModelObjectId() const
double LinefeedRatio() const
static bool IsSymbolFontFaceName(const wchar_t *facename)
bool CreateFontFromFaceName(const wchar_t *face_name, bool bBold, bool bItalic)
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
static const int m_metrics_char
static const double m_default_linefeed_ratio
bool CompareFontCharacteristics(ON_Font &font_to_compare, bool bCompareName) const
int HeightOfLinefeed() const
double AscentRatio() const
const wchar_t * FontName() const
void SetFontName(const char *)
const wchar_t * FontFaceName() const
ON_Object & operator=(const ON_Object &)