Open main menu

Changes

2,080 bytes added ,  10:28, 24 September 2018
Add ref to askubuntu
== Availability ==
There are a lot of free fonts out there. For example, see John Strake's [http://www.thibault.org/fonts/essays/ Essays 1743 font] which was used in typesetting [http://diveintohtml5.info/index.html Dive Into HTML 5] Back in the old days, if you used Linux, you'd have to get the Microsoft Core Fonts separately from the operating system because although the fonts were not sold, they could not be distributed.
* Check https://www.fontsquirrel.com/ for fonts you want* Check your package manager for fonts ** <code>apt-cache search "((otf|ttf)-)|(woff)"</code>** <code>apt-cache search "woff" --full</code> shows same results as <code>apt-cache show</code> for each found package === Freely licensed Fonts === # The [https://fedorahosted.org/liberation-fonts/ Liberation Fonts], initially released in 2007, is a font family which aims at metric compatibility with '''Arial, Times New Roman, and Courier New'''. It is sponsored by [[Red Hat]]. They are included in most Linux distributions.
# [https://www.gnu.org/software/freefont/index.html FreeFont by GNU]
# [[wp:Ubuntu_(typeface)]] is a family of fonts created by Canonical [https://wiki.ubuntu.com/Ubuntu%20Font%20Family https://wiki.ubuntu.com/Ubuntu Font Family]
# We chose the [[wp:Linux Libertine|Linux Libertine]] font for our logo, and it turns out that a lot of people like this font. It's a free replacement for Times New Roman. See [[Style Guide]] for more about {{CompanyName}} font usage.
[[File:Eqt.logo.png|thumbnail|Linux Libertine]]
 
== Adding Fonts to stock Ubuntu ==
If you don't add some fonts to your stock Ubuntu, then you won't be able to view many PDF documents, Word documents and even webpages ''the way they were designed (using fonts found on Microsoft Windows or Apple Macs)''. So, here's how you install fonts in Ubuntu<ref>https://askubuntu.com/questions/3697/how-do-i-install-fonts</ref>.
 
Fonts are disk hungry. This list of fonts packages will use about 222MB of disk space by including a total of 101 packages.
* ttf-mscorefonts-installer (installs Microsoft TrueType core fonts)
* edubuntu-fonts (many fonts)
* fonts-font-awesome (icons)
* fonts-octicons (github icons)
* fonts-hack-otf fonts-hack-ttf fonts-hack-web (font suitable for source code)
* fonts-oxygen (KDE)
* ubuntustudio-fonts (collection to help with graphic design, including non-free and jsMath, etc.)
You can install all these fonts with
<source lang="bash">sudo apt-get update && sudo apt-get install ttf-mscorefonts-installer edubuntu-fonts fonts-font-awesome fonts-octicons fonts-hack-otf fonts-hack-ttf fonts-hack-web fonts-oxygen ubuntustudio-fonts</source>
 
 
Alternately, you can simply put font files into /usr/local/share/fonts to install them system-wide. Run
* <code>sudo fc-cache -fv</code> to regenerate the systemwide font caches, verbosely, forcing re-generation of apparently up-to-date cache files, overriding the timestamp checking.
* <code>sudo fc-list hack</code> List fonts matching 'hack' to verify installation
== Font Artists ==
== Embedding Fonts ==
The so-called 'Web Safe Fonts' (meaning those installed by a majority of operating system variants) is pretty boring. The list is essentially Sans-serif: Arial, Tahoma, Verdana; Serif: Palatino, Times new Roman; Monospaced: Courier New <ref>http://www.cssfontstack.com/</ref>. If you want to move beyond those fonts and still provide the same look to 90-100% of your website visitors then you will need to "embed" the fonts in your website. It's great to have free fonts because you have the distribution rights. The problem with using free fonts on your webpage is that some people don't use a free operating system, and won't have the free fonts installed. You can use a service like [https://fonts.google.com/ Google Fonts] if they offer the font you want to use. Google doesn't offer Gillius or Linux Libertine. Also, using a third-party server, although convenient, comes with costs or disadvantages (e.g. privacy). Since embedding fonts is easy to do, why not just create an obedient and faithful server which has the fonts? We'll give an example using '''Gillius ADF'''
Note that many font technologies have come and gone (TrueType, OpenType, etc.). The latest standard (2012) is '[https://developer.mozilla.org/en-US/docs/Web/Guide/WOFF WOFF]' (and WOFF File Format 2.0 March 2016) developed by the Mozilla Foundation. It's where all the browsers are.
Gillius comes from the Arkandis Digital Foundry (ADF). A nice page to see the font in action, with all it's variants is at http://www.1001fonts.com/gillius-adf-font.html
==== Downloads / Installation ====
You can download it from https://arkandis.tuxfamily.org/adffonts.html. If you're running Linux, it's probably already included in your distribution, and installed by default. If it's not installed, you can simply:
<source lang="bash">sudo apt-get install ttf-adf-gillius</source>
/** Declare the @font-face rules */
@font-face {
font-family: 'gillius-adf', gillius-sans, sans-serif;/* with fallbacks */ src: local: ('gillius adf';), local: ('gillius ADF';, src: url('/usr/share/fonts/truetype/adf/GilliusADF-Regular.woff') format('woff');, src: url('/usr/share/fonts/truetype/adf/GilliusADF-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
<div class="slogan">foo</div>
or
<div style="font-family:gillius ADF-adf;">foo</div>
</pre>
You'll get the intended results. Your website visitors will see the font that you intended.
e.g.<span class="slogan" style="font-family:gillius-adf; font-size:2em;">Gillius ADF: enterprise quality = technology freedom</span>
Note that in MediaWiki, you can define rules in [[MediaWiki:Common.css]] <ref>[[mw:Manual:CSS]]</ref>, or develop your own skin.
[[Category:Fonts]]
[[Category:UI]]
[[Category:Wiki]]
4,558

edits