Client-side interface to a PixInsight Font object.
More...
#include <Font.h>
TODO: Write a detailed description for Font.
Definition at line 206 of file Font.h.
◆ family
using pcl::Font::family = FontFamily::value_type |
Represents a standard font family.
Definition at line 213 of file Font.h.
◆ std_stretch
using pcl::Font::std_stretch = FontStretch::value_type |
Represents a standard font stretch.
Definition at line 223 of file Font.h.
◆ std_weight
using pcl::Font::std_weight = FontWeight::value_type |
Represents a standard font weight.
Definition at line 218 of file Font.h.
◆ Font() [1/4]
pcl::Font::Font |
( |
family |
f = FontFamily::Default , |
|
|
double |
size = 12.0 |
|
) |
| |
Constructs a Font object with the specified family and size in points.
TODO: Elaborate on font families, font matching, etc.
◆ Font() [2/4]
pcl::Font::Font |
( |
const String & |
face, |
|
|
double |
size = 12.0 |
|
) |
| |
Constructs a Font object with the specified font face and size in points.
TODO: Elaborate on font faces, font matching, etc.
◆ Font() [3/4]
pcl::Font::Font |
( |
const Font & |
f | ) |
|
|
inline |
Copy constructor. This object will reference the same server-side font as the specified instance f.
Definition at line 245 of file Font.h.
◆ Font() [4/4]
pcl::Font::Font |
( |
Font && |
x | ) |
|
|
inline |
Move constructor.
Definition at line 252 of file Font.h.
◆ ~Font()
Destroys a Font object. If this object references an existing font in the PixInsight core application, its reference count is decremented. If it becomes unreferenced, it will be garbage-collected.
Definition at line 261 of file Font.h.
◆ Ascent()
int pcl::Font::Ascent |
( |
| ) |
const |
◆ AvailableFonts()
◆ AvailableFontStyles()
◆ AvailableFontWritingSystems()
◆ AvailableStyles()
◆ AvailableWritingSystems()
StringList pcl::Font::AvailableWritingSystems |
( |
| ) |
const |
|
inline |
◆ BoundingRect()
Rect pcl::Font::BoundingRect |
( |
const String & |
| ) |
const |
◆ Descent()
int pcl::Font::Descent |
( |
| ) |
const |
◆ DisableKerning()
void pcl::Font::DisableKerning |
( |
bool |
= true | ) |
|
◆ EnableKerning()
void pcl::Font::EnableKerning |
( |
bool |
= true | ) |
|
◆ Face()
String pcl::Font::Face |
( |
| ) |
const |
◆ FontWeight()
◆ Height()
int pcl::Font::Height |
( |
| ) |
const |
◆ IsBold()
bool pcl::Font::IsBold |
( |
| ) |
const |
|
inline |
◆ IsCharDefined()
bool pcl::Font::IsCharDefined |
( |
int |
| ) |
const |
◆ IsExactMatch()
bool pcl::Font::IsExactMatch |
( |
| ) |
const |
◆ IsFixedPitch() [1/2]
bool pcl::Font::IsFixedPitch |
( |
| ) |
const |
◆ IsFixedPitch() [2/2]
bool pcl::Font::IsFixedPitch |
( |
const String & |
style | ) |
const |
|
inline |
◆ IsFixedPitchFont()
static bool pcl::Font::IsFixedPitchFont |
( |
const String & |
font, |
|
|
const String & |
style = String() |
|
) |
| |
|
static |
◆ IsItalic() [1/2]
bool pcl::Font::IsItalic |
( |
| ) |
const |
◆ IsItalic() [2/2]
bool pcl::Font::IsItalic |
( |
const String & |
style | ) |
const |
|
inline |
◆ IsItalicFont()
static bool pcl::Font::IsItalicFont |
( |
const String & |
font, |
|
|
const String & |
style = String() |
|
) |
| |
|
static |
◆ IsKerningEnabled()
bool pcl::Font::IsKerningEnabled |
( |
| ) |
const |
◆ IsOverline()
bool pcl::Font::IsOverline |
( |
| ) |
const |
◆ IsScalable()
bool pcl::Font::IsScalable |
( |
const String & |
style = String() | ) |
const |
|
inline |
◆ IsScalableFont()
static bool pcl::Font::IsScalableFont |
( |
const String & |
font, |
|
|
const String & |
style = String() |
|
) |
| |
|
static |
◆ IsStrikeOut()
bool pcl::Font::IsStrikeOut |
( |
| ) |
const |
◆ IsUnderline()
bool pcl::Font::IsUnderline |
( |
| ) |
const |
◆ LineSpacing()
int pcl::Font::LineSpacing |
( |
| ) |
const |
◆ MaxWidth()
int pcl::Font::MaxWidth |
( |
| ) |
const |
◆ Null()
static Font& pcl::Font::Null |
( |
| ) |
|
|
static |
Returns a reference to a null font. A null Font object does not correspond to an existing font object in the PixInsight core application.
◆ operator=() [1/2]
Font& pcl::Font::operator= |
( |
const Font & |
f | ) |
|
|
inline |
Copy assignment operator. Returns a reference to this object.
Makes this object reference the same server-side font as the specified instance f. If the previous font becomes unreferenced, it will be garbage-collected by the PixInsight core application.
Definition at line 272 of file Font.h.
◆ operator=() [2/2]
Move assignment operator. Returns a reference to this object.
Definition at line 281 of file Font.h.
◆ OptimalFontPointSizes()
◆ OptimalPointSizes()
◆ PixelSize()
int pcl::Font::PixelSize |
( |
| ) |
const |
◆ PointSize()
double pcl::Font::PointSize |
( |
| ) |
const |
◆ SetBold()
void pcl::Font::SetBold |
( |
bool |
b = true | ) |
|
|
inline |
◆ SetFace()
void pcl::Font::SetFace |
( |
const String & |
| ) |
|
◆ SetFixedPitch()
void pcl::Font::SetFixedPitch |
( |
bool |
= true | ) |
|
◆ SetItalic()
void pcl::Font::SetItalic |
( |
bool |
= true | ) |
|
◆ SetOverline()
void pcl::Font::SetOverline |
( |
bool |
= true | ) |
|
◆ SetPixelSize()
void pcl::Font::SetPixelSize |
( |
int |
| ) |
|
◆ SetPointSize()
void pcl::Font::SetPointSize |
( |
double |
| ) |
|
◆ SetStretchFactor()
void pcl::Font::SetStretchFactor |
( |
int |
| ) |
|
◆ SetStrikeOut()
void pcl::Font::SetStrikeOut |
( |
bool |
= true | ) |
|
◆ SetUnderline()
void pcl::Font::SetUnderline |
( |
bool |
= true | ) |
|
◆ SetWeight()
void pcl::Font::SetWeight |
( |
int |
| ) |
|
◆ StretchFactor()
int pcl::Font::StretchFactor |
( |
| ) |
const |
◆ TightBoundingRect()
Rect pcl::Font::TightBoundingRect |
( |
const String & |
| ) |
const |
◆ Weight() [1/2]
int pcl::Font::Weight |
( |
| ) |
const |
◆ Weight() [2/2]
int pcl::Font::Weight |
( |
const String & |
style | ) |
const |
|
inline |
◆ Width() [1/2]
int pcl::Font::Width |
( |
const String & |
| ) |
const |
◆ Width() [2/2]
int pcl::Font::Width |
( |
int |
ch | ) |
const |
The documentation for this class was generated from the following file: