Permalink
Browse files

Adds dotted line glyph and font patching tutorial

  • Loading branch information...
1 parent 6546a61 commit f852a1bffdeddf3f9ad167837ae75af64428efbf @andyearnshaw andyearnshaw committed Aug 1, 2014
Showing with 190 additions and 1 deletion.
  1. +21 −1 README.md
  2. +169 −0 glyph/indentLine-dotted-guide.eps
View
@@ -20,6 +20,22 @@ for none X terminal, set `g:indentLine_color_tty_light` and `g:indentLine_color_
You can also change the indentLine char:
for both Vim and GVim, set `let g:indentLine_char = 'c'` where `'c'` can be any ASCII character. You can also use one of `¦`, `┆` or `│` to display more beautiful lines. However, these characters will only work with files whose encoding is UTF-8.
+### Font patching
+If you find all the standard unicode and ASCII characters too obtrusive, you might consider patching your font with the [indentLine-dotted-guide.eps][glyph] glyph provided. [FontForge][fontforge] makes the process amazingly simple:
+
+ 1. Download and install FontForge.
+ 2. Locate and open your terminal/gVim font.
+ 3. Open the font in FontForge, choose __Goto__ from the __View__ menu and select _Private Use Area_ from the drop down box.
+ 4. In the private use area, locate a blank spot for the glyph. Make a note of the code, e.g. `U+E0A3`.
+ 5. Double-click the selected code point to open the font drawing tool.
+ 6. From the __File__ menu, select __Import...__ and locate the _indentLine-dotted-guide.eps_ file.
+ 7. Once imported, choose __File__ -> __Generate Fonts__ and choose a location and file type for the new font.
+
+Once completed, your new font will contain the more subtle dotted guide and all you have to do is set that glyph to `g:indentLine_char` in your `.vimrc` file.
+
+[glyph]: glyph/indentLine-dotted-guide.eps
+[fontforge]: http://fontforge.github.io/
+
## Self promotion
If you think this script is helpful, follow the [GitHub repository][repository], and don't forget to vote for it on Vim.org! ([vimscript #4354][script]).
@@ -28,7 +44,11 @@ If you think this script is helpful, follow the [GitHub repository][repository],
[repository]: https://github.com/Yggdroot/indentLine
[script]: http://www.vim.org/scripts/script.php?script_id=4354
-
## Screenshots
+
+### Vertical bars
![Screenshot](http://i.imgur.com/KVi0T.jpg)
+### Patched font
+![Screenshot](http://i.imgur.com/2ZA7oaZ.png)
+
@@ -0,0 +1,169 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 2.96296 -488.5 170.5 1988.5
+%%Pages: 0
+%%Title: uniE0A3 from DejaVuSansMonoForPowerline
+%%Creator: FontForge
+%%Author: Andy Earnshaw
+%%CreationDate: 22:53 1-8-2014
+%%EndComments
+%%BeginPreview: 5 74 4 74
+%013100
+%3EFE40
+%BFFFD0
+%DFFFE0
+%7FFF80
+%059600
+%000000
+%000000
+%000000
+%000000
+%048500
+%6FFF80
+%CFFFE0
+%CFFFD0
+%4EFE50
+%014100
+%000000
+%000000
+%000000
+%000000
+%19DA10
+%9FFFB0
+%DFFFE0
+%AFFFB0
+%1AEB20
+%000000
+%000000
+%000000
+%000000
+%013100
+%3EFE40
+%BFFFD0
+%DFFFE0
+%7FFF80
+%059600
+%000000
+%000000
+%000000
+%000000
+%048500
+%6FFF80
+%CFFFE0
+%CFFFD0
+%4EFF50
+%014100
+%000000
+%000000
+%000000
+%000000
+%19DA10
+%9FFFB0
+%DFFFE0
+%AFFFB0
+%1AEB20
+%000000
+%000000
+%000000
+%000000
+%013100
+%3EFE40
+%BFFFD0
+%DFFFE0
+%7FFF80
+%059600
+%000000
+%000000
+%000000
+%000000
+%048500
+%6FFF80
+%CFFFE0
+%CFFFD0
+%4EFF50
+%014100
+%%EndPreview
+%%EndProlog
+%%Page "uniE0A3" 1
+gsave newpath
+ 3 -405 moveto
+ 3.66667 -381.667 12 -362 28 -346 curveto
+ 44 -330 63.6667 -321.833 87 -321.5 curveto
+ 110.333 -321.833 130 -330 146 -346 curveto
+ 162 -362 170.167 -381.667 170.5 -405 curveto
+ 170.167 -428.333 162 -448 146 -464 curveto
+ 130 -480 110.333 -488.167 87 -488.5 curveto
+ 63.6667 -488.167 44 -480 28 -464 curveto
+ 10.6667 -446.667 2.33333 -427 3 -405 curveto
+ closepath
+ 3 255 moveto
+ 3.66667 278.333 12 298 28 314 curveto
+ 44 330 63.6667 338.167 87 338.5 curveto
+ 110.333 338.167 130 330 146 314 curveto
+ 162 298 170.167 278.333 170.5 255 curveto
+ 170.167 231.667 162 212 146 196 curveto
+ 130 180 110.333 171.833 87 171.5 curveto
+ 63.6667 171.833 44 180 28 196 curveto
+ 10.6667 213.333 2.33333 233 3 255 curveto
+ closepath
+ 3 -75 moveto
+ 3.66667 -51.6667 12 -32 28 -16 curveto
+ 44 0 63.6667 8.16667 87 8.5 curveto
+ 110.333 8.16667 130 0 146 -16 curveto
+ 162 -32 170.167 -51.6667 170.5 -75 curveto
+ 170.167 -98.3333 162 -118 146 -134 curveto
+ 130 -150 110.333 -158.167 87 -158.5 curveto
+ 63.6667 -158.167 44 -150 28 -134 curveto
+ 10.6667 -116.667 2.33333 -97 3 -75 curveto
+ closepath
+ 3 915 moveto
+ 3.66667 938.333 12 958 28 974 curveto
+ 44 990 63.6667 998.167 87 998.5 curveto
+ 110.333 998.167 130 990 146 974 curveto
+ 162 958 170.167 938.333 170.5 915 curveto
+ 170.167 891.667 162 872 146 856 curveto
+ 130 840 110.333 831.833 87 831.5 curveto
+ 63.6667 831.833 44 840 28 856 curveto
+ 10.6667 873.333 2.33333 893 3 915 curveto
+ closepath
+ 3 585 moveto
+ 3.66667 608.333 12 628 28 644 curveto
+ 44 660 63.6667 668.167 87 668.5 curveto
+ 110.333 668.167 130 660 146 644 curveto
+ 162 628 170.167 608.333 170.5 585 curveto
+ 170.167 561.667 162 542 146 526 curveto
+ 130 510 110.333 501.833 87 501.5 curveto
+ 63.6667 501.833 44 510 28 526 curveto
+ 10.6667 543.333 2.33333 563 3 585 curveto
+ closepath
+ 3 1575 moveto
+ 3.66667 1598.33 12 1618 28 1634 curveto
+ 44 1650 63.6667 1658.17 87 1658.5 curveto
+ 110.333 1658.17 130 1650 146 1634 curveto
+ 162 1618 170.167 1598.33 170.5 1575 curveto
+ 170.167 1551.67 162 1532 146 1516 curveto
+ 130 1500 110.333 1491.83 87 1491.5 curveto
+ 63.6667 1491.83 44 1500 28 1516 curveto
+ 10.6667 1533.33 2.33333 1553 3 1575 curveto
+ closepath
+ 3 1245 moveto
+ 3.66667 1268.33 12 1288 28 1304 curveto
+ 44 1320 63.6667 1328.17 87 1328.5 curveto
+ 110.333 1328.17 130 1320 146 1304 curveto
+ 162 1288 170.167 1268.33 170.5 1245 curveto
+ 170.167 1221.67 162 1202 146 1186 curveto
+ 130 1170 110.333 1161.83 87 1161.5 curveto
+ 63.6667 1161.83 44 1170 28 1186 curveto
+ 10.6667 1203.33 2.33333 1223 3 1245 curveto
+ closepath
+ 3 1905 moveto
+ 3.66667 1928.33 12 1948 28 1964 curveto
+ 44 1980 63.6667 1988.17 87 1988.5 curveto
+ 110.333 1988.17 130 1980 146 1964 curveto
+ 162 1948 170.167 1928.33 170.5 1905 curveto
+ 170.167 1881.67 162 1862 146 1846 curveto
+ 130 1830 110.333 1821.83 87 1821.5 curveto
+ 63.6667 1821.83 44 1830 28 1846 curveto
+ 10.6667 1863.33 2.33333 1883 3 1905 curveto
+ closepath
+fill grestore
+%%EOF

0 comments on commit f852a1b

Please sign in to comment.