xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
text_rendering_hint.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace xtd {
10 namespace drawing {
12 namespace text {
30 anti_alias = 4,
33 };
34
36 inline std::ostream& operator<<(std::ostream& os, text_rendering_hint value) {return os << xtd::to_string(value, {{text_rendering_hint::system_default, "system_default"}, {text_rendering_hint::single_bit_per_pixel_grid_fit, "single_bit_per_pixel_grid_fit"}, {text_rendering_hint::single_bit_per_pixel, "single_bit_per_pixel"}, {text_rendering_hint::anti_alias_grid_fit, "anti_alias_grid_fit"}, {text_rendering_hint::anti_alias, "anti_alias"}, {text_rendering_hint::clear_type_grid_fit, "clear_type_grid_fit"}});}
37 inline std::wostream& operator<<(std::wostream& os, text_rendering_hint value) {return os << xtd::to_string(value, {{text_rendering_hint::system_default, L"system_default"}, {text_rendering_hint::single_bit_per_pixel_grid_fit, L"single_bit_per_pixel_grid_fit"}, {text_rendering_hint::single_bit_per_pixel, L"single_bit_per_pixel"}, {text_rendering_hint::anti_alias_grid_fit, L"anti_alias_grid_fit"}, {text_rendering_hint::anti_alias, L"anti_alias"}, {text_rendering_hint::clear_type_grid_fit, L"clear_type_grid_fit"}});}
39 }
40 }
41}
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
text_rendering_hint
Specifies the quality of text rendering.
Definition: text_rendering_hint.h:20
@ clear_type_grid_fit
Each character is drawn using its glyph ClearType bitmap with hinting. The highest quality setting....
@ system_default
Each character is drawn using its glyph bitmap, with the system default rendering hint....
@ anti_alias_grid_fit
Each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to a...
@ single_bit_per_pixel
Each character is drawn using its glyph bitmap. Hinting is not used.
@ anti_alias
Each character is drawn using its antialiased glyph bitmap without hinting. Better quality due to ant...
@ single_bit_per_pixel_grid_fit
Each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on st...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.