Commits

Ken Takata committed 4b452e7

add a new patch: fix-dwrite-document.diff

  • Participants
  • Parent commits a2a5c8d

Comments (0)

Files changed (2)

File fix-dwrite-document.diff

+# HG changeset patch
+# Parent 67b4f18429a1ede9b8a961f5163f88f4acb8bebb
+diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
+--- a/runtime/doc/options.txt
++++ b/runtime/doc/options.txt
+@@ -2521,24 +2521,6 @@
+ 	security reasons.
+ 	{Vi: directory to put temp file in, defaults to "/tmp"}
+ 
+-					*'directx'* *'dx'*
+-'directx' 'dx'		boolean (default: off)
+-			global
+-			{not in Vi}
+-			{only available when compiled with GUI and DIRECTX
+-			enabled for MS-Windows, and run on Vista or newer}
+-	When on, Vim will draw text using DirectX (DirectWrite).  It makes
+-	drawn glyphs more beautiful than default GDI.  It requires 'encoding'
+-	is "utf-8", and only works on MS-Windows Vista or newer version.
+-
+-	Example: >
+-		set encoding=utf-8
+-		set gfn=Ricty_Diminished:h12:cSHIFTJIS
+-		set directx
+-<
+-	If select a raster font (Courier, Terminal or FixedSys) to 'guifont',
+-	it fallbacks to be drawn by GDI automatically.
+-
+ 					*'display'* *'dy'*
+ 'display' 'dy'		string	(default "")
+ 			global
+@@ -5556,6 +5538,46 @@
+ 	this option at the default "on".  Only switch it off when working with
+ 	old Vi scripts.
+ 
++						*'renderingoptions'* *'renopt'*
++'renderingoptions' 'renopt'
++			string	(default: empty)
++			global
++			{not in Vi}
++			{only available when compiled with GUI and DIRECTX
++			enabled for MS-Windows}
++	Select a text renderer and set its options.  The options are depends
++	on the renderer.
++
++	Syntax: >
++		set renopt=type:{renderer}(,{name}:{value})*
++<
++	Currently, only one renderer is available.
++
++	renderer    behavior	~
++	directx	    Vim will draw text using DirectX (DirectWrite).  It makes
++		    drawn glyphs more beautiful than default GDI.
++		    It requires 'encoding' is "utf-8", and only works on
++		    MS-Windows Vista or newer version.
++
++		    Options:
++			name	  meaning	    type    value	~
++			gamma	  gamma		    float   1.0 - 2.2 (maybe)
++			contrast  enhancedContrast  float   (unknown)
++			level	  clearTypeLevel    float   (unknown)
++			geom	  pixelGeometry	    int	    0 - 2
++			mode	  renderingMode	    int	    0 - 6
++
++			See the following page for detail:
++			http://msdn.microsoft.com/en-us/library/dd368190.aspx
++
++		    Example: >
++			set encoding=utf-8
++			set gfn=Ricty_Diminished:h12:cSHIFTJIS
++			set renopt=type:directx
++<
++		    If select a raster font (Courier, Terminal or FixedSys) to
++		    'guifont', it fallbacks to be drawn by GDI automatically.
++
+ 						*'report'*
+ 'report'		number	(default 2)
+ 			global
 patch-direct_write-ex1.diff
 use-proto.diff
 fix-dwrite-renopt.diff
+fix-dwrite-document.diff
 gfw-bold-italic.patch
 cpo-N.diff