8#include <xtd/iequatable>
171 font& operator =(
const font& value);
280 bool equals(const
xtd::
object& obj) const noexcept override;
334 friend class graphics;
335 friend class system_fonts;
336 friend class
xtd::
forms::native::font_dialog;
Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.hpp:33
drawing::font_family font_family() const noexcept
Gets the xtd::drawing::font_family associated with this xtd::drawing::font.
xtd::string to_string() const noexcept override
Converts this font_family to a human-readable string representation.
font(const font &prototype, float em_size)
Initializes a new xtd::drawing::font that uses the specified existing xtd::drawing::font and size.
font(xtd::string family_name, float em_size, font_style style, graphics_unit unit, xtd::byte gdi_char_set, bool gdi_vertical_font)
Initializes a new xtd::drawing::font using the specified size, style, unit, and character set.
font(const drawing::font_family &font_family, float em_size, font_style style, graphics_unit unit)
Initializes a new xtd::drawing::font using the specified size, style and unit.
xtd::byte gdi_char_set() const noexcept
Gets a byte value that specifies the GDI character set that this xtd::drawing::font uses.
font(const drawing::font_family &font_family, float em_size, graphics_unit unit)
Initializes a new xtd::drawing::font using the specified size and unit.
font(const drawing::font_family &font_family, float em_size, font_style style, graphics_unit unit, xtd::byte gdi_char_set)
Initializes a new xtd::drawing::font using the specified size, style, unit, and character set.
font(xtd::string family_name, float em_size, font_style style, graphics_unit unit, xtd::byte gdi_char_set)
Initializes a new xtd::drawing::font using the specified size, style, unit, and character set.
bool is_system_font() const noexcept
Gets a value indicating whether the font is a member of xtd::drawing::system_fonts.
graphics_unit unit() const noexcept
Gets the unit of measure for this xtd::drawing::font.
font(const drawing::font_family &font_family, float em_size, font_style style, graphics_unit unit, xtd::byte gdi_char_set, bool gdi_vertical_font)
Initializes a new xtd::drawing::font using the specified size, style, unit, and character set.
font(xtd::string family_name, float em_size, graphics_unit unit)
Initializes a new xtd::drawing::font using the specified size and unit.
font(const drawing::font_family &font_family, float em_size, font_style style)
Initializes a new xtd::drawing::font using the specified size and style.
font(const font &prototype, float em_size, font_style style)
Initializes a new xtd::drawing::font that uses the specified existing xtd::drawing::font,...
float size_in_points() const noexcept
Gets the em-size, in points, of this xtd::drawing::font.
bool italic() const noexcept
Gets a value that indicates whether this xtd::drawing::font is italic.
font(const drawing::font_family &font_family, float em_size)
Initializes a new xtd::drawing::font using the specified size.
font(xtd::string family_name, float em_size)
Initializes a new xtd::drawing::font using the specified size and unit.
const xtd::string & name() const noexcept
Gets the face name of this xtd::drawing::font.
static font from_hdc(const intptr hdc)
Creates a font from the specified Windows handle to a device context.
font()
Initializes a new xtd::drawing::font.
font(const font &prototype, font_style style)
Initializes a new xtd::drawing::font that uses the specified existing xtd::drawing::font and font_sty...
font(xtd::string family_name, float em_size, font_style style)
Initializes a new xtd::drawing::font using the specified size and style.
bool strikeout() const noexcept
Gets a value that indicates whether this xtd::drawing::font is strikeout.
bool underline() const noexcept
Gets a value that indicates whether this xtd::drawing::font is underline.
static font from_hfont(const intptr hfont)
Creates a font from the specified Windows handle.
bool bold() const noexcept
Gets a value that indicates whether this xtd::drawing::font is bold.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
float size() const noexcept
Gets the em-size of this xtd::drawing::font measured in the units specified by the unit property.
int32 height() const noexcept
Gets the line spacing of this font.
intptr handle() const noexcept
Gets the window handle that the font is bound to.
font_style style() const noexcept
Gets style information for this xtd::drawing::font.
float get_height() const
Returns the line spacing, in pixels, of this font.
font(xtd::string family_name, float em_size, font_style style, graphics_unit unit)
Initializes a new xtd::drawing::font using the specified size, style and unit.
const xtd::string & original_font_name() const noexcept
Gets the face name of this Font.
bool gdi_vertical_font() const noexcept
Gets a Boolean value that indicates whether this xtd::drawing::font is derived from a GDI vertical fo...
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:67
Specifies the fonts used to display text in Windows display elements.
Definition system_fonts.hpp:25
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains drawing_export_ keyword.
Contains xtd::drawing::font_family class.
Contains xtd::drawing::graphics_unit enum class.
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition font_style.hpp:17
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition graphics_unit.hpp:17
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201