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"}});}
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.