8#include <xtd/iequatable>
171 font& operator =(
const font& value);
180 [[nodiscard]]
auto bold() const noexcept ->
bool;
239 [[nodiscard]] auto
italic() const noexcept ->
bool;
243 [[nodiscard]] auto
name() const noexcept -> const
xtd::
string&;
251 [[nodiscard]] auto
size() const noexcept ->
float;
280 [[nodiscard]] auto
equals(const
xtd::
object& obj) const noexcept ->
bool override;
284 [[nodiscard]] auto
equals(const
font& other) const noexcept ->
bool override;
301 [[nodiscard]] auto
get_height(const graphics& graphics) const ->
float;
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
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.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
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.
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.
auto underline() const noexcept -> bool
Gets a value that indicates whether this xtd::drawing::font is underline.
auto gdi_vertical_font() const noexcept -> bool
Gets a Boolean value that indicates whether this xtd::drawing::font is derived from a GDI vertical fo...
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,...
auto to_string() const noexcept -> xtd::string override
Converts this font_family to a human-readable string representation.
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.
auto height() const noexcept -> xtd::int32
Gets the line spacing of this font.
auto handle() const noexcept -> xtd::intptr
Gets the window handle that the font is bound to.
auto to_hfont() const -> xtd::intptr
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.
auto size_in_points() const noexcept -> float
Gets the em-size, in points, of this xtd::drawing::font.
auto style() const noexcept -> xtd::drawing::font_style
Gets style information for this xtd::drawing::font.
auto size() const noexcept -> float
Gets the em-size of this xtd::drawing::font measured in the units specified by the unit property.
auto gdi_char_set() const noexcept -> xtd::byte
Gets a byte value that specifies the GDI character set that this xtd::drawing::font uses.
auto italic() const noexcept -> bool
Gets a value that indicates whether this xtd::drawing::font is italic.
auto font_family() const noexcept -> xtd::drawing::font_family
Gets the xtd::drawing::font_family associated with this xtd::drawing::font.
auto bold() const noexcept -> bool
Gets a value that indicates whether this xtd::drawing::font is bold.
auto unit() const noexcept -> xtd::drawing::graphics_unit
Gets the unit of measure for this xtd::drawing::font.
auto is_system_font() const noexcept -> bool
Gets a value indicating whether the font is a member of xtd::drawing::system_fonts.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto name() const noexcept -> const xtd::string &
Gets the face name of this xtd::drawing::font.
static auto from_hdc(const intptr hdc) -> font
Creates a font from the specified Windows handle to a device context.
static auto from_hfont(const intptr hfont) -> font
Creates a font from the specified Windows handle.
auto original_font_name() const noexcept -> const xtd::string &
Gets the face name of this Font.
auto get_height() const -> float
Returns the line spacing, in pixels, of this font.
auto strikeout() const noexcept -> bool
Gets a value that indicates whether this xtd::drawing::font is strikeout.
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.
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:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
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
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197