turn on subpixel antialiasing (ClearType) for win32 fonts / no opengl

This commit is contained in:
Vadim Lopatin 2015-01-23 22:28:27 +03:00
parent 62f94db1cd
commit b987922103
1 changed files with 7 additions and 2 deletions

View File

@ -20,8 +20,13 @@ extern (C) int UIAppMain(string[] args) {
FontManager.hintingMode = HintingMode.Normal;
// you can override antialiasing setting here
FontManager.minAnitialiasedFontSize = 0;
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
version (USE_OPENGL) {
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
} else {
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
}
// create window
Window window = Platform.instance.createWindow("Dlang IDE", null);