3#if !defined(__XTD_DRAWING_NATIVE_LIBRARY__)
4#error "Do not include this file: Internal use only"
12#include <xtd/drawing_native_export.hpp>
49 static intptr create(
const xtd::string& family_name,
float em_size,
bool bold,
bool italic,
bool underline,
bool strikeout,
xtd::byte gdi_char_set,
bool gdi_vertical_font);
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
Contains font native API.
Definition font.hpp:32
static float height(intptr font, intptr hdc)
Gets the font height for the specified hdc.
static intptr create(const xtd::string &family_name, float em_size, bool bold, bool italic, bool underline, bool strikeout, xtd::byte gdi_char_set, bool gdi_vertical_font)
Creates font.
static void destroy(intptr font)
Destroys the font.
static intptr create_from_hdc(intptr hdc)
Creates font from hdc.
static int32 dpi()
Gets the screen dpi .
static intptr create_from_hfont(intptr hfont)
Creates font from hfont.
static void get_information(intptr font, xtd::string &name, float &em_size, bool &bold, bool &italic, bool &underline, bool &strikeout, xtd::byte &gdi_char_set, bool &gdi_vertical_font)
Gets the font information from font hanfle.
static float height(intptr font)
Gets the font height.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10