better fonts

This commit is contained in:
Vadim Lopatin 2017-09-27 15:51:44 +03:00
parent 033f682d88
commit a7c203525c
4 changed files with 20 additions and 11 deletions

View File

@ -71,9 +71,9 @@
<doXGeneration>1</doXGeneration>
<xfilename>$(IntDir)\$(TargetName).json</xfilename>
<debuglevel>0</debuglevel>
<debugids>DebugInfo DCD</debugids>
<debugids>KeyInput DCD</debugids>
<versionlevel>0</versionlevel>
<versionids>EmbedStandardResources</versionids>
<versionids>EmbedStandardResources NO_OPENGL USE_FREETYPE</versionids>
<dump_source>0</dump_source>
<mapverbosity>0</mapverbosity>
<createImplib>0</createImplib>
@ -111,7 +111,7 @@
<multiobj>0</multiobj>
<singleFileCompilation>0</singleFileCompilation>
<oneobj>0</oneobj>
<mscoff>0</mscoff>
<mscoff>1</mscoff>
<trace>0</trace>
<quiet>0</quiet>
<verbose>0</verbose>
@ -174,7 +174,7 @@
<doXGeneration>1</doXGeneration>
<xfilename>$(IntDir)\$(TargetName).json</xfilename>
<debuglevel>0</debuglevel>
<debugids>DebugInfo DCD</debugids>
<debugids />
<versionlevel>0</versionlevel>
<versionids>EmbedStandardResources</versionids>
<dump_source>0</dump_source>
@ -277,9 +277,9 @@
<doXGeneration>1</doXGeneration>
<xfilename>$(IntDir)\$(TargetName).json</xfilename>
<debuglevel>0</debuglevel>
<debugids>DebugInfo DCD</debugids>
<debugids>KeyInput DCD</debugids>
<versionlevel>0</versionlevel>
<versionids>EmbedStandardResources</versionids>
<versionids>EmbedStandardResources NO_OPENGL USE_FREETYPE</versionids>
<dump_source>0</dump_source>
<mapverbosity>0</mapverbosity>
<createImplib>0</createImplib>
@ -317,7 +317,7 @@
<multiobj>0</multiobj>
<singleFileCompilation>0</singleFileCompilation>
<oneobj>0</oneobj>
<mscoff>0</mscoff>
<mscoff>1</mscoff>
<trace>0</trace>
<quiet>0</quiet>
<verbose>0</verbose>
@ -380,7 +380,7 @@
<doXGeneration>1</doXGeneration>
<xfilename>$(IntDir)\$(TargetName).json</xfilename>
<debuglevel>0</debuglevel>
<debugids>DebugInfo DCD</debugids>
<debugids />
<versionlevel>0</versionlevel>
<versionids>EmbedStandardResources</versionids>
<dump_source>0</dump_source>

View File

@ -12,7 +12,7 @@
"stringImportPaths": ["views"],
"dependencies": {
"dlangui": "==0.9.150",
"dlangui": "==0.9.151",
"dsymbol": "~>0.2.9",
"dcd": "~>0.9.1"
},
@ -23,6 +23,10 @@
"libs-linux": ["z"],
"versions-windows": [
"USE_FREETYPE"
],
"configurations" : [
{
"name" : "default"

View File

@ -50,7 +50,12 @@ extern (C) int UIAppMain(string[] args) {
// you can override antialiasing setting here
FontManager.minAnitialiasedFontSize = 0;
/// set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
FontManager.fontGamma = 0.8;
FontManager.fontGamma = 1.0;
version (NO_OPENGL) {
FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR;
} else {
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None;
}
version (USE_OPENGL) {
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //

View File

@ -32,7 +32,7 @@ class IDESettings : SettingsFile {
ui.setIntegerDef("minAntialiasedFontSize", 0);
ui.setFloatingDef("fontGamma", 0.8);
ui.setStringDef("uiFontFace", "Default");
ui.setIntegerDef("uiFontSize", 10);
ui.setIntegerDef("uiFontSize", 11);
ui.setBooleanDef("showToolbar", true);
ui.setBooleanDef("showStatusbar", true);
version (Windows) {