ON_TextContext Class Reference


More...

#include <opennurbs_textcontext.h>

Static Public Member Functions

static int ConvertCodepointsToString (int cplen, const ON__UINT32 *cp, ON_wString &str)
 Use ON_FontGlyph::GetGlyphList to measure strings. More...
 
static int ConvertStringToCodepoints (const wchar_t *str, ON__UINT32 *&cp)
 
static const ON_wString FormatRtfString (const wchar_t *rtfstr, const ON_DimStyle *dimstyle, bool clear_bold, bool set_bold, bool clear_italic, bool set_italic, bool clear_underline, bool set_underline, bool clear_facename, bool set_facename, const wchar_t *override_facename)
 
static bool RtfFirstCharProperties (const wchar_t *rtfstr, bool &bold, bool &italic, bool &underline, ON_wString &facename)
 

Detailed Description


Member Function Documentation

◆ ConvertCodepointsToString()

static int ON_TextContext::ConvertCodepointsToString ( int  cplen,
const ON__UINT32 *  cp,
ON_wString str 
)
static

Use ON_FontGlyph::GetGlyphList to measure strings.

◆ ConvertStringToCodepoints()

static int ON_TextContext::ConvertStringToCodepoints ( const wchar_t *  str,
ON__UINT32 *&  cp 
)
static

◆ FormatRtfString()

static const ON_wString ON_TextContext::FormatRtfString ( const wchar_t *  rtfstr,
const ON_DimStyle dimstyle,
bool  clear_bold,
bool  set_bold,
bool  clear_italic,
bool  set_italic,
bool  clear_underline,
bool  set_underline,
bool  clear_facename,
bool  set_facename,
const wchar_t *  override_facename 
)
static

◆ RtfFirstCharProperties()

static bool ON_TextContext::RtfFirstCharProperties ( const wchar_t *  rtfstr,
bool &  bold,
bool &  italic,
bool &  underline,
ON_wString facename 
)
static