5#include "../drawing_export.hpp"
8#include <xtd/iequatable>
171 font& operator =(
const font& value);
212 xtd::
byte gdi_char_set() const noexcept;
218 bool gdi_vertical_font() const noexcept;
235 bool is_system_font() const noexcept;
239 bool italic() const noexcept;
243 const
xtd::
string& name() const noexcept;
247 const
xtd::
string& original_font_name() const noexcept;
255 float size_in_points() const noexcept;
259 bool strikeout() const noexcept;
267 bool underline() const noexcept;
280 bool equals(const
xtd::
object& obj) const noexcept override;
284 bool equals(const
font& other) const noexcept override;
288 xtd::
size get_hash_code() const noexcept override;
294 float get_height() const;
307 float get_height(
float dpi) const;
316 xtd::
string to_string() const noexcept override;
336 friend class
xtd::
forms::native::font_dialog;
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.hpp:33
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
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.
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.
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,...
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.
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 bold() const noexcept
Gets a value that indicates whether this xtd::drawing::font is bold.
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:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
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
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
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 namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31