subpixel rendering, part 1

This commit is contained in:
Vadim Lopatin 2015-01-23 15:49:32 +03:00
parent 2c6046bd16
commit 0a2fefc508
2 changed files with 6 additions and 3 deletions

View File

@ -66,7 +66,7 @@
<debuglevel>0</debuglevel>
<debugids />
<versionlevel>0</versionlevel>
<versionids>Unicode USE_SDL USE_OPENGL</versionids>
<versionids>Unicode USE_FREETYPE</versionids>
<dump_source>0</dump_source>
<mapverbosity>3</mapverbosity>
<createImplib>0</createImplib>

View File

@ -17,9 +17,11 @@ extern (C) int UIAppMain(string[] args) {
embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
// you can override default hinting mode here
FontManager.instance.hintingMode = HintingMode.Normal;
FontManager.hintingMode = HintingMode.Normal;
// you can override antialiasing setting here
FontManager.instance.minAnitialiasedFontSize = 0;
FontManager.minAnitialiasedFontSize = 0;
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //SubpixelRenderingMode.BGR;
// create window
Window window = Platform.instance.createWindow("Dlang IDE", null);
@ -29,6 +31,7 @@ extern (C) int UIAppMain(string[] args) {
// create some widget to show in window
window.windowIcon = drawableCache.getImage("dlangui-logo1");
// for testing: load workspace at startup
frame.loadWorkspace(appendPath(exePath, "../workspaces/sample1/sample1.dlangidews"));
// show window