5 #include "../drawing_export.h" 8 #include <xtd/iequatable> 10 #include <xtd/ustring> 55 font(
const font& prototype,
float em_size);
169 font& operator =(
const font& value);
178 bool bold()
const noexcept;
216 bool gdi_vertical_font()
const noexcept;
220 intptr handle()
const noexcept;
233 bool is_system_font()
const noexcept;
237 bool italic()
const noexcept;
245 const xtd::ustring& original_font_name()
const noexcept;
249 float size()
const noexcept;
253 float size_in_points()
const noexcept;
275 bool equals(
const font& value)
const noexcept
override;
291 float get_height()
const;
304 float get_height(
float dpi)
const;
317 friend class graphics;
319 friend class xtd::forms::native::font_dialog;
323 std::shared_ptr<data> data_;
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Definition: font.h:45
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Defines a group of type faces having a similar basic design and certain variations in styles...
Definition: font_family.h:38
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Specifies the fonts used to display text in Windows display elements.
Definition: system_fonts.h:25
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Text with a line through the middle.
Contains xtd::drawing::font_family class.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
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.h:17
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition: graphics_unit.h:17
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition: types.h:39