mirror of https://github.com/buggins/dlangide.git
tune font settings
This commit is contained in:
parent
bf73e5877d
commit
301de56d9f
|
@ -66,7 +66,7 @@
|
||||||
<debuglevel>0</debuglevel>
|
<debuglevel>0</debuglevel>
|
||||||
<debugids />
|
<debugids />
|
||||||
<versionlevel>0</versionlevel>
|
<versionlevel>0</versionlevel>
|
||||||
<versionids>Unicode</versionids>
|
<versionids>Unicode USE_FREETYPE</versionids>
|
||||||
<dump_source>0</dump_source>
|
<dump_source>0</dump_source>
|
||||||
<mapverbosity>3</mapverbosity>
|
<mapverbosity>3</mapverbosity>
|
||||||
<createImplib>0</createImplib>
|
<createImplib>0</createImplib>
|
||||||
|
@ -89,7 +89,6 @@
|
||||||
<resfile />
|
<resfile />
|
||||||
<exefile>$(OutDir)\$(ProjectName).exe</exefile>
|
<exefile>$(OutDir)\$(ProjectName).exe</exefile>
|
||||||
<useStdLibPath>1</useStdLibPath>
|
<useStdLibPath>1</useStdLibPath>
|
||||||
<cRuntime>2</cRuntime>
|
|
||||||
<additionalOptions>-profile</additionalOptions>
|
<additionalOptions>-profile</additionalOptions>
|
||||||
<preBuildCommand />
|
<preBuildCommand />
|
||||||
<postBuildCommand />
|
<postBuildCommand />
|
||||||
|
@ -184,7 +183,6 @@
|
||||||
<resfile />
|
<resfile />
|
||||||
<exefile>$(OutDir)\$(ProjectName).exe</exefile>
|
<exefile>$(OutDir)\$(ProjectName).exe</exefile>
|
||||||
<useStdLibPath>1</useStdLibPath>
|
<useStdLibPath>1</useStdLibPath>
|
||||||
<cRuntime>1</cRuntime>
|
|
||||||
<additionalOptions />
|
<additionalOptions />
|
||||||
<preBuildCommand />
|
<preBuildCommand />
|
||||||
<postBuildCommand />
|
<postBuildCommand />
|
||||||
|
|
|
@ -23,12 +23,18 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
//FontManager.hintingMode = HintingMode.Disabled;
|
//FontManager.hintingMode = HintingMode.Disabled;
|
||||||
// you can override antialiasing setting here
|
// you can override antialiasing setting here
|
||||||
FontManager.minAnitialiasedFontSize = 0;
|
FontManager.minAnitialiasedFontSize = 0;
|
||||||
|
/// set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
|
||||||
|
FontManager.fontGamma = 0.8;
|
||||||
version (USE_OPENGL) {
|
version (USE_OPENGL) {
|
||||||
// you can turn on subpixel font rendering (ClearType) here
|
// you can turn on subpixel font rendering (ClearType) here
|
||||||
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
|
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
|
||||||
} else {
|
} else {
|
||||||
// you can turn on subpixel font rendering (ClearType) here
|
version (USE_FREETYPE) {
|
||||||
//FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
|
// you can turn on subpixel font rendering (ClearType) here
|
||||||
|
FontManager.fontGamma = 0.8;
|
||||||
|
//FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
|
||||||
|
FontManager.hintingMode = HintingMode.AutoHint;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// create window
|
// create window
|
||||||
|
|
|
@ -260,6 +260,7 @@ class IDEFrame : AppFrame {
|
||||||
|
|
||||||
// editor tabs
|
// editor tabs
|
||||||
_tabs = new TabWidget("TABS");
|
_tabs = new TabWidget("TABS");
|
||||||
|
_tabs.hiddenTabsVisibility = Visibility.Gone;
|
||||||
_tabs.setStyles(STYLE_DOCK_HOST_BODY, STYLE_TAB_UP_DARK, STYLE_TAB_UP_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
_tabs.setStyles(STYLE_DOCK_HOST_BODY, STYLE_TAB_UP_DARK, STYLE_TAB_UP_BUTTON_DARK, STYLE_TAB_UP_BUTTON_DARK_TEXT);
|
||||||
_tabs.onTabChangedListener = &onTabChanged;
|
_tabs.onTabChangedListener = &onTabChanged;
|
||||||
_tabs.onTabCloseListener = &onTabClose;
|
_tabs.onTabCloseListener = &onTabClose;
|
||||||
|
|
Loading…
Reference in New Issue