mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2D: Effect revert of 14d5276 removing ClearType Antialiasing
This adds Windows ClearType font antialiasing back as a disabled-by-default option "JUCE_ENABLE_DIRECT2D_CLEARTYPE_FONT_SMOOTHING" in the juce_graphics module.
This commit is contained in:
parent
2ea448ffcc
commit
8a7db025ef
2 changed files with 31 additions and 1 deletions
|
|
@ -87,6 +87,17 @@
|
|||
#define JUCE_DISABLE_COREGRAPHICS_FONT_SMOOTHING 0
|
||||
#endif
|
||||
|
||||
/** Config: JUCE_ENABLE_DIRECT2D_CLEARTYPE_FONT_SMOOTHING
|
||||
|
||||
Setting this flag will *enable* Windows ClearType subpixel font antialiasing when using
|
||||
the Direct2D renderer, if preferred by the end user. This is off by default due to
|
||||
issues with transparency, certain compositions and transformations so make sure the
|
||||
output looks acceptable for your use cases.
|
||||
*/
|
||||
#ifndef JUCE_ENABLE_DIRECT2D_CLEARTYPE_FONT_SMOOTHING
|
||||
#define JUCE_ENABLE_DIRECT2D_CLEARTYPE_FONT_SMOOTHING 0
|
||||
#endif
|
||||
|
||||
#ifndef JUCE_INCLUDE_PNGLIB_CODE
|
||||
#define JUCE_INCLUDE_PNGLIB_CODE 1
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue