''This page describes fonts in general. For the 2010 brand/logo typeface, see [[Ubuntu Font Family]].'' ||<>|| = Fonts = == Installing downloaded fonts in Ubuntu 10.04 LTS == Open the folder where you have downloaded the font file. Double click on the font file to open it. This opens a font viewer window. On the right there is a button, "Install Font". Click on it. Wait until the button turns to greyed out "Installed". == Installing new fonts == This section describes two ways for how to install new fonts in Ubuntu. The first uses the [[SynapticHowto|Synaptic Package Manager]] to install fonts from the Ubuntu repositories. As new fonts get added to the archive, this method offers fonts suitable for an increasing number of users, and is very easy. The second method is useful if you have downloaded fonts from the web, bought them, or acquired them from other sources. It is a bit more manual, but allows you to use fonts (including restricted fonts when you can't find a free/libre/open font equivalent) from a wide range of sources. Finally, at the end of this page, there are some links for further information on fonts on GNU/Linux. === Via Synaptic === Packages available through Synaptic are mostly programs, tools and libraries, but there are a few font packages in the system. You will need to [[Repositories|enable the Universe and Multiverse repositories]] to get all the fonts available. See AddingRepositoriesHowto for instructions, and SynapticHowto if you need more information on Synaptic. Once the repositories are set up, search for "font" in Synaptic. You should get a list of over a hundred packages. (If you get far less, then you may need to press Reload, to make sure your repository data is up to date.) Not all of these packages are fonts, some are font utilities for editing or managing fonts. Clicking on a package will show a description. The '''msttcorefonts''' package contains the Microsoft freeware (non-Free because they are non-modifiable) web fonts. (Note: ''Most'' Microsoft fonts are included in this package; however, it does not include Tahoma or Arial Narrow. For more information on installing msttcorefonts please refer to RestrictedFormats As of Jaunty (9.04), this package is named '''ttf-mscorefonts-installer'''. '''Note:''' After you install a new font, you will need to make sure that programs in which you want to use the new fonts can recognize them. In most cases this is done by closing and reopening the programs; however, some programs may require you to log out and log back in. === Manually === There are various locations in GNU/Linux in which fonts can be kept. These locations are defined in {{{/etc/fonts/fonts.conf}}}; standard ones include {{{/usr/share/fonts}}}, {{{/usr/local/share/fonts}}}, and {{{~/.fonts}}}. 44 The easiest way to install a '''truetype font''' is to press alt-F2 and enter the following code (this will open nautilus in the right directory): {{{ gksu nautilus /usr/share/fonts/truetype }}} Then create a new directory, name the directory whatever you like (choose a name that you remember) and copy the fonts into that directory If you need to backup your personal fonts, you should use the '''~/.fonts/''' folder. To create the folder and install the font "Example.otf": {{{ sudo mkdir -p "~/.fonts/truetype/choose_a_font_folder_name_here" sudo cp Example.otf "~/.fonts/truetype/choose_a_font_folder_name_here" }}} Not always needed, but finally you can additionally rebuilding the font information files by pressing alt-F2, mark 'run in terminal' so you can see the progress and entering the following code: {{{ sudo fc-cache -f -v }}} '''Note:''' After you install a new font, you will need to make sure that programs in which you want to use the new fonts can recognize them. In most cases this is done by closing and reopening the programs; however, some programs may require you to log out and log back in. The easiest place for people to put their fonts is {{{/home//.fonts}}}. If you have not already done so, create this folder: * Open your home folder in Nautilus (GNOME) or Konqueror (KDE). * Since dot-folders are really hidden folders, you need to choose "Show Hidden Files" from the View menu. * Go to '''File -> Create Folder''' (GNOME), or right-click and choose '''Create New -> Folder''' (KDE). * Name the new folder ".fonts". Now double click on the folder to open it, and drag and drop your fonts into the folder. On GNOME, you can also directly open the virtual folder {{{fonts:/}}} (within a Nautilus window, choose '''Go -> Location''' or press '''Ctrl+L''') and drag and drop fonts into this folder. (Does not work in in Hardy Heron 8.04 due to changes. Please follow the method above.) However, fonts that are added by either of the ways above will only be available for one user. To make them available system-wide, drag and drop them to the directory {{{/usr/share/fonts}}}. (Note: If you're on Kubuntu you may have to {{{cd}}} to {{{/usr/share/fonts}}} and run {{{mkfontscale}}}, {{{mkfontdir}}}, {{{fc-cache}}} after this. See the instructions below.) As in the last method, on GNOME you can also add fonts directly to {{{fonts:/}}}. However, you must open the virtual folder as root. You can do this by opening a terminal window and running {{{ gksudo nautilus fonts: }}} == Enabling Bitmapped Fonts == If you'd like to use a bitmap font you just installed, you can enable Bitmap Fonts by these commands {{{ cd /etc/fonts/conf.d/ sudo rm -rf 70-no-bitmaps.conf && sudo ln -s ../conf.avail/70-yes-bitmaps.conf . sudo dpkg-reconfigure fontconfig }}} Logout, and log back in again, and you'll be able to select the newly installed fonts. For example, if you install the '''xfonts-100dpi''' package you should be able to lunch GIMP and choose "Lucida Medium" bitmap font using GIMP's Text Tool. This is tested working as of Ubuntu 18.04. For use in terminals, font suggestions include terminus as suitable for terminals;to install this font in command line, run {{{apt-get install xfonts-terminus}}} or use Synaptic (see above). Alternatively, you can use [[http://www.levien.com/type/myfonts/inconsolata.html|Inconsolata]], a monospaced font from Raph Levien. It is a very good font for the terminal. Or "fixed" which was the original {{{xterm}}} font who's 10pt semicondensed is compact and easy to read (a matter of taste of course). === Enabling a particular bitmap font === Beware though, that enabling bitmapped fonts may make e.g. Firefox use them too, and that may make some pages look horrible. E.g. [[http://jsbin.com/alemur/3/|an example page using "Lucida" font]] has jagged edges if all bitmapped fonts are enabled wholesale. Instead, I enabled exactly the {{{fixed}}} font I needed by (undoing the "70-yes-bitmaps.conf" steps above and) creating {{{/etc/fonts/conf.d/50-enable-fixed.conf}}} instead containing: {{{ fixed }}} Then run {{{ sudo dpkg-reconfigure fontconfig }}} Logout, and log back in again, and you'll be able to use the "fixed" font in terminals, at least in Gnome and XFCE. This was tested on Ubuntu 11.04 (Natty Narwhal). == Links to fonts == Ed Trager's "Unicode Font Guide For Free/Libre Open Source Operating Systems" lists free/open fonts: http://unifont.org/fontguide/ SIL provides high-quality fonts released under the [[http://scripts.sil.org/OFL|Open Font License]]: http://scripts.sil.org/OFL_fonts Luc Devroye's website has a huge list of links to free fonts, and other useful information: http://cg.scs.carleton.ca/%7Eluc/fonts.html and http://cg.scs.carleton.ca/%7Eluc/originalfonts.html The TypOasis has some very good fonts: http://moorstation.org/typoasis/typoasis1.htm Manfred Klein's Fonteria is part of TypOasis, but worth special mention: http://moorstation.org/typoasis/designers/klein/ Paul Lloyd Fonts is as well: http://moorstation.org/typoasis/designers/lloyd/ League of Movable Type has some great free fonts: http://theleagueofmoveabletype.com/ == Links to font documentation == The Linux Font Howto explains different font files, font styles and how they work in Linux: http://tldp.org/HOWTO/Font-HOWTO/ The XFree86 documentation has some instructions on installing bitmapped and scalable fonts: http://www.xfree86.org/current/fonts2.html For information on installing fonts there is a [[https://help.ubuntu.com/community/FontInstallHowto|community topic on fonts]]. For specific information about fonts in OpenOffice, see http://wiki.services.openoffice.org/wiki/Font-FAQ == Font settings == === Font Smoothing === Arguably the best results for smooth fonts can be obtained quite easily by deactivating any kind of manual font configuration you might have: {{{ mv ~/.fonts.conf ~/fonts.conf.inactive }}} Then go to System -> Preferences -> Appearance, select the Fonts tab, click the Details button. In the window appearing set the options as follows: {{attachment:smoothing_settings.png|Font smoothing settings}} Close the settings, log out and back in and enjoy the sharpest, smoothest fonts ever. === Manual Font Smoothing === ## page was renamed from ObiBok The following relates to tweaking the anti-aliasing rules for the 'msttcorefonts' collection. It was contributed by Obi Bok but is now unmaintained. I'm currently working on font settings in XML (''.fonts.conf''). I noticed that after installing ''msttcorefonts'' things don't look quite as good in ''Firefox'' anymore. Most web pages request ''Arial'' which doesn't get hinted and anti-aliased too nicely, especially on LCD screens. I personally prefer the "sharp" non-anti-aliased look. I also noticed that many users coming from ''Windows®'' ask on the forums about getting fonts to look that way. '''.fonts.conf''' {{{ 96 true unknown rgb Franklin Gothic Medium Frutiger Linotype Lucida Sans Unicode 13.4 medium roman false Comic Sans MS 15 medium roman false Georgia Lucida Sans Lucida Sans Typewriter Microsoft Sans Serif Tahoma Trebuchet MS Verdana 16.1 medium roman false Arial Arial Narrow Berling Antiqua Book Antiqua Bookman Old Style Garamond Lucida Console Palatino Linotype SylfaenARM Times New Roman 17.4 medium roman false Century Gothic Kartika 21.4 medium roman false Vrinda 23 medium roman false Courier New 29.4 medium roman false Georgia 12 medium roman false Tahoma Verdana 13.4 medium roman false Courier New 16 medium roman false hintfull Bitstream Charter Courier 10 Pitch DejaVu Sans Condensed DejaVu Serif Condensed FreeMono FreeSans FreeSerif Luxi Mono Luxi Sans Luxi Serif MgOpen Canonica MgOpen Cosmetica MgOpen Modata MgOpen Moderna URW Bookman L URW Chancery L URW Gothic L URW Palladio L true Arial 12 13.4 medium roman true Book Antiqua 16 medium roman true Frutiger Linotype Times New Roman Verdana medium roman true 7 7 9.4 9.4 Arial 10.7 medium 10.7 0 true Bitstream Charter Arial Bitstream Vera Sans Arial DejaVu Sans Arial DejaVu Sans Condensed Arial FreeSans Arial Helvetica Arial Lucida Arial LucidaBright Arial Lucida Bright Arial Luxi Sans Arial MgOpen Cosmetica Arial MgOpen Modata Arial MgOpen Moderna Arial System Arial URW Gothic L Arial Verdana Arial Bitstream Vera Serif Georgia DejaVu Serif Georgia DejaVu Serif Condensed Georgia FreeSerif Georgia Luxi Serif Georgia MgOpen Canonica Georgia New Century Schoolbook Georgia New York Georgia Palatino Georgia Times Georgia URW Bookman L Georgia URW Palladio L Georgia Andale Mono Courier New Bitstream Vera Sans Mono Courier New Courier Courier New DejaVu Sans Mono Courier New Fixedsys Courier New FreeMono Courier New LucidaTypewriter Courier New Lucida Typewriter Courier New Luxi Mono Courier New Monaco Courier New Terminal Courier New Apple Chancery Comic Sans MS Lucida Handwriting Comic Sans MS URW Chancery L Comic Sans MS Zapf Chancery Comic Sans MS Copperplate Impact Desdemona Impact Kino Impact Techno Impact sans-serif Arial serif Georgia monospace Courier New cursive Comic Sans MS fantasy Impact }}} Note, that the above shown fonts.conf xml is slightly buggy. It will interfere with utf/unicode characters in google chrome and render them as boxes or gibberish. This happens due to replacement of FreeSans and FreeMono by Arial. Remove those 2 replacement blocks from the above xml to fix ut8/unicode fonts in google chrome. For helvetica fonts, if they are present on your system, then autohint + slight hinting gives good clarity so you may want to add the following code block to your fonts.conf {{{ Helvetica true true hintslight }}} For the above to work , change the substitution of Helvetica by Arial binding to weak. === Complete revamp of fonts on ubuntu === Okay, now this is about getting your fonts look super cool and beautiful on ubuntu or any linux in general, specially the KDE desktop. This involves 2 steps : 1. Get better fonts like Droid fonts, Noto Sans The fonts are available from [[http://www.google.com/fonts/|google web fonts]]. 2. Tweak the fonts.conf file. For more information read the complete tutorial on how to get [[http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/|gorgeous fonts on ubuntu]].