score:2
score:5
With respect to my response above, I can now provide more detail as to how to create the font, along with suggestions for creating a nicer font (starting with a truetype font):
- Pick a truetype font you wish to use (I used an arial font)
- Downloaded and install fontforge
- Start fontforge and open the font file; I used a root terminal so that I could be sure to save the file in protected font folder
- Select all the characters (Edit/Select/Select All)
- Element Font Info PS Names
- Specify names - I called it ArialMTVerticallyTighter; make sure you change all of the names on this tab or it may use the new font instead of the old font where you don't want it to
- Element transformations transform
- origin glyph origin
- scale uniformly 120 %
(more will be too big, use less if you want more spacing between lines)
- Element General 1792 256 2048 Scale -142 150
- OS/2 Metrics
- Turn off is offset all over tab and t
- Turn on really use typo metrics
- 1792 512 1792 -512 0 1792 -512 0
- File Generate Fonts - true type - into font folder - use new font name
- File save (in case you screwed up so you can go back) to new name
- Open new font file (in nautilus) with font viewer (by double clicking)
- Install it
- Start Eclipse
- Set it as font in eclipse
(window>preference>general>appearance>java editor>text font to new font)
Remember that the font size you see in eclipse for a particular setting e.g. 9 actually corresponds to about an 11 point font with less space between the lines
score:6
Create your own bitmap font that uses all of the rows at the top of the font. It does work, and seems to save about up to 4 rows of pixels in a 17 point font. I did it as follows:
- install otf2bdf
- go to font folder, presumably in root terminal
- Clone your favorite font (presumably a truetype font) using otf2bdf to the size you want it
- install fontforge
- edit the font so that it uses all of the rows above the line for the
capital letters
- typically there are about 3 lines of pixels that are left blank and that is why there is so much space between rows
- should you wish you can also uses some of the rows below the line but I think these are typically used for lower case letters like y which drop below the line (not so important when programming)
- install the font by:
- saving it into one of the font folders such as /usr/local/share/fonts
- updating the font chache In a root terminal with fc-cache -f -v
- use the new font
score:8
you could put overly high characters in some comment somewhere, try "|ÄÁg$ÑĈђךןﭼژçÅẤДАБψ". As soon as Eclipse sees this in a file, it'll increase the line-separation for the whole file to properly display thos characters.
score:9
You could configure a formatter (Preferences | Java | Code Style) to inject extra empty lines. Otherwise, you might be able to find a font (Preferences | General | Appearance | Colors and Fonts) with a lot of built-in whitespace. On Windows, I like 'consolas'--it's not particularly whitespace-y but it is a nice mono-spaced, readable font.
score:19
After trying various alternative fonts, I've took original Consolas
and increased line height in font editor, installed resulting ConsolasHigh
font package into system and set it as default in Eclipse editor:
score:29
I've cloned and installed the font from
https://github.com/andreberg/Meslo-Font
and made it my IDE editor font for Eclipse. Line spacing is much better now!
Source: stackoverflow.com
Related Query
- How can I change line height / line spacing in Eclipse?
- How can I change Eclipse theme?
- How can I change font size in Eclipse for ALL text editors?
- How to change the color of current line & text selection in eclipse (for Java)?
- Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?
- How can I set the current line of execution in the eclipse java debugger?
- How to make the whole line change color in Eclipse when I toggle a breakpoint?
- How (if possible) can I change the color option for the highlighted search results in eclipse (Moonrise theme)?
- Change line-spacing / line height in Eclipse IDE
- How can I change Eclipse color scheme for a specific file extension?
- How to change Eclipse settings (for Java) to put brackets on the line after a method/class declaration?
- how can i change eclipse from "c/c++" to "java" enviorment?
- How can I change the default IDetailPane in an Eclipse plugin?
- How can I change the Eclipse GUI font?
- How can I change the title of my Eclipse RCP at runtime?
- How can I change the view / editor for a file in Eclipse using the keyboard?
- Eclipse CDT: How can I change background color of tooltip in editor?
- How can I get Eclipse to re-compile my JUnit test when I make a change to it?
- How can I change the default Eclipse console?
- How can I change the date format in Eclipse editor templates?
- How can I change a source folder to a test source folder in Eclipse
- How can I change vertical spacing in Gtk2 menu items in Eclipse?
- How can I change the location of folders that Eclipse creates in the Users\(user)\ directory?
- How can an Eclipse plugin programmatically change JSDT's default formatter template?
- How can I change the background color for the the Eclipse 3.5 editor?
- How can I change the layout of eclipse workspace selection dialog?
- How can I change these colors in Eclipse
- how to change the background of the current line in eclipse
- How can I change how eclipse invokes gdb in linux?
- How can I change the color of the Eclipse neon.3 menu bar on Windows 10?
More Query from same tag
- hadoop mapreduce error
- Eclipse Formatter
- Open Browser when we click the app form start menu with hidden footer and header
- Maven errors when install on an Eclipse project
- Different change lists in subclipse?
- Reading in information into separate arrays
- Enabling Java assertions not working with Eclipse Luna
- Android image view top crop
- Where do program-created files end up in Eclipse?
- Navigating UML associations in OCL
- How do i load instances from files to many lists?
- how to consume json web service deployed in iis in android
- How do you build a JAR in eclipse with a custom manifest file?
- Export Eclipse plugIn
- How to output and display Unicode in Groovy Console (GroovyStarter) and GGTS / Eclipse console
- How to read the dependencies from an eclipse .classpath in gradle?
- Debugging C++ on Windows
- Java List with Object from different classes
- Adding element in array
- Eclipse CDT multithreaded debugging not-optimal - how does one run threads exclusively?
- How to make my trigger available in classpath (h2 database)
- Android 2.1 Emulator doesn't load, even after waiting a long time
- Multiply two columns in BIRT
- Repeating a texture every 2 seconds in libGDX
- ClassNotFound Exceptions when class exists, and declared in Manifest
- Change of jsp page are not reflected in .class file
- OpenCV Native Samples are not building
- Conversion to Dalvik format failed eclipse android-suport-v4.jar error
- Resource loading in external jars not working
- Gradle dependency does not work in all folders