57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
65 #endif // __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 );
239 Font(
const String& face,
double size = 12.0 );
274 SetHandle( f.handle );
299 void SetFace(
const String& );
303 bool IsExactMatch()
const;
309 return AvailableFontWritingSystems( Face() );
316 return AvailableFontStyles( Face() );
323 return IsScalableFont( Face(), style );
330 return OptimalFontPointSizes( Face(), style );
335 int PixelSize()
const;
339 void SetPixelSize (
int );
343 double PointSize()
const;
347 void SetPointSize(
double );
351 bool IsFixedPitch()
const;
357 return IsFixedPitchFont( Face(), style );
362 void SetFixedPitch(
bool =
true );
366 bool IsKerningEnabled()
const;
370 void EnableKerning(
bool =
true );
374 void DisableKerning(
bool =
true );
378 int StretchFactor()
const;
382 void SetStretchFactor(
int );
392 return FontWeight( Face(), style );
397 void SetWeight(
int );
403 return Weight() >= FontWeight::Bold;
410 SetWeight( b ? FontWeight::Bold : FontWeight::Normal );
415 bool IsItalic()
const;
421 return IsItalicFont( Face(), style );
426 void SetItalic(
bool =
true );
430 bool IsUnderline()
const;
434 void SetUnderline(
bool =
true );
438 bool IsOverline()
const;
442 void SetOverline(
bool =
true );
446 bool IsStrikeOut()
const;
450 void SetStrikeOut(
bool =
true );
466 int LineSpacing()
const;
470 bool IsCharDefined(
int )
const;
474 int MaxWidth()
const;
478 int Width(
const String& )
const;
482 int Width(
int ch )
const;
490 Rect TightBoundingRect(
const String& )
const;
530 void* CloneHandle()
const override;
532 friend class InternalFontEnumerator;
533 friend class GraphicsContextBase;
534 friend class Control;
535 friend class TreeBox;
540 #endif // __PCL_BUILDING_PIXINSIGHT_APPLICATION
544 #endif // __PCL_Font_h