57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
99 Helvetica = SansSerif,
105 TypeWriter = Monospace,
107 Teletype = Monospace,
109 OldEnglish = Decorative,
113 String PCL_FUNC FamilyToFace( value_type family );
145 UltraLight = ExtraLight,
154 UltraBold = ExtraBold,
178 namespace FontStretch
196 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
213 using family = FontFamily::value_type;
218 using std_weight = FontWeight::value_type;
223 using std_stretch = FontStretch::value_type;
231 Font( family f = FontFamily::Default,
double size = 12.0 );
274 SetHandle( f.handle );
309 return AvailableFontWritingSystems( Face() );
316 return AvailableFontStyles( Face() );
323 return IsScalableFont( Face(), style );
330 return OptimalFontPointSizes( Face(), style );
357 return IsFixedPitchFont( Face(), style );
392 return FontWeight( Face(), style );
403 return Weight() >= FontWeight::Bold;
410 SetWeight( b ? FontWeight::Bold : FontWeight::Normal );
421 return IsItalicFont( Face(), style );
530 void* CloneHandle()
const override;
532 friend class InternalFontEnumerator;
Client-side interface to a PixInsight Control object.
Client-side interface to a PixInsight Font object.
Rect BoundingRect(const String &) const
bool IsItalic(const String &style) const
void SetItalic(bool=true)
void EnableKerning(bool=true)
static int FontWeight(const String &font, const String &style=String())
static StringList AvailableFonts(const String &writingSystem=String())
void SetStretchFactor(int)
bool IsExactMatch() const
Font(family f=FontFamily::Default, double size=12.0)
Rect TightBoundingRect(const String &) const
static bool IsItalicFont(const String &font, const String &style=String())
bool IsCharDefined(int) const
static Array< double > OptimalFontPointSizes(const String &font, const String &style=String())
static StringList AvailableFontStyles(const String &font)
void DisableKerning(bool=true)
int Width(const String &) const
StringList AvailableStyles() const
void SetFixedPitch(bool=true)
int Weight(const String &style) const
void SetPointSize(double)
void SetBold(bool b=true)
static bool IsFixedPitchFont(const String &font, const String &style=String())
Array< double > OptimalPointSizes(const String &style=String()) const
void SetFace(const String &)
static StringList AvailableFontWritingSystems(const String &font)
bool IsScalable(const String &style=String()) const
bool IsFixedPitch(const String &style) const
void SetUnderline(bool=true)
static bool IsScalableFont(const String &font, const String &style=String())
void SetStrikeOut(bool=true)
void SetOverline(bool=true)
bool IsKerningEnabled() const
Font(const String &face, double size=12.0)
bool IsFixedPitch() const
StringList AvailableWritingSystems() const
int StretchFactor() const
A generic rectangle in the two-dimensional space.
Base class of client-side interface classes to PixInsight graphics contexts
Client-side interface to a PixInsight TreeBox control.
Root base class for all user interface objects.