Difference between revisions of "Fonts"

From Freephile Wiki
Jump to navigation Jump to search
(Add ref to askubuntu)
(adds genericons)
(12 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
* freedom to do all of these things commercially as it is about freedom, not price.
 
* freedom to do all of these things commercially as it is about freedom, not price.
 
</blockquote>
 
</blockquote>
 
You can read more about Font Standards at https://www.w3.org/TR/css-fonts-3/ and in general at [[wp:Font]]
 
  
 
== Licensing ==
 
== Licensing ==
Line 22: Line 20:
  
 
Since fonts are so intertwined with linguistics, it's no surprise that [[wp:SIL Open Font License|SIL International has an open font license]]
 
Since fonts are so intertwined with linguistics, it's no surprise that [[wp:SIL Open Font License|SIL International has an open font license]]
 +
  
 
== Availability ==
 
== 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.  
+
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.
+
# 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]
 
# [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]
 
# [[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]
Line 41: Line 33:
 
# [http://genericons.com/ Genericons] is a free, GPL, flexible icon font for the web
 
# [http://genericons.com/ Genericons] is a free, GPL, flexible icon font for the web
 
# See also [[wp:Free software Unicode typefaces|Free software Unicode typefaces]]
 
# See also [[wp:Free software Unicode typefaces|Free software Unicode typefaces]]
# 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 ==
+
{{References}}
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 ==
 
== Font Artists ==
 
We've all doodled with pencil and paper to make letters and Mother's Day cards.  Some people still do it. The leading free software for people who want to develop fonts is FontForge https://fontforge.github.io/
 
We've all doodled with pencil and paper to make letters and Mother's Day cards.  Some people still do it. The leading free software for people who want to develop fonts is FontForge https://fontforge.github.io/
 
== 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 ADF ===
 
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
 
 
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>
 
 
You actually end up with quite a few files due to the fact that there is a Number 2 and each comes in every combination of Regular, Condensed, Bold and Italics
 
<pre>
 
/usr/share/fonts/truetype/adf/GilliusADFNo2Cd-Regular.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2-Regular.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2-BoldItalic.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2Cd-Bold.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2Cd-Italic.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2-Bold.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2-Italic.otf
 
/usr/share/fonts/truetype/adf/GilliusADFNo2Cd-BoldItalic.otf
 
/usr/share/fonts/truetype/adf/GilliusADF-BoldItalic.otf
 
/usr/share/fonts/truetype/adf/GilliusADF-Bold.otf
 
/usr/share/fonts/truetype/adf/GilliusADFCd-Italic.otf
 
/usr/share/fonts/truetype/adf/GilliusADFCd-BoldItalic.otf
 
/usr/share/fonts/truetype/adf/GilliusADFCd-Regular.otf
 
/usr/share/fonts/truetype/adf/GilliusADFCd-Bold.otf
 
/usr/share/fonts/truetype/adf/GilliusADF-Italic.otf
 
/usr/share/fonts/truetype/adf/GilliusADF-Regular.otf
 
</pre>
 
 
But none of these is in '''WOFF''' format, so with the woff-tools package, you can <code>sudo sfnt2woff /usr/share/fonts/truetype/adf/GilliusADF-Regular.otf</code> which will create a woff version in the same directory as the source .otf file.
 
 
==== CSS ====
 
<source lang="css">
 
/** Declare the @font-face rules */
 
@font-face {
 
  font-family: 'gillius-adf', gillius-sans, sans-serif; /* with fallbacks */
 
  src: local  ('gillius adf'),
 
        local ('gillius ADF',
 
        url('/usr/share/fonts/truetype/adf/GilliusADF-Regular.woff') format('woff'),
 
        url('/usr/share/fonts/truetype/adf/GilliusADF-Regular.otf') format('opentype');
 
  font-weight: normal;
 
  font-style: normal;
 
}
 
/** declare a class to apply the font-family */
 
.slogan {
 
  font-family: gillius-adf;
 
}
 
</source>
 
 
Now with either <pre>
 
<div class="slogan">foo</div>
 
or
 
<div style="font-family:gillius-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-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.
 
 
== Icons as Fonts ==
 
So many people have been using icons in their webpages that entire fonts have been designed to make it 'easier' to just use a font as a pool for icons.  [[FontAwesome]] comes to mind.  In fact, the developer of FontAwesome raised over $1 million in a kickstarter campaign for version 5.  Chris Coyier lays out some contrasts in his '[https://css-tricks.com/icon-fonts-vs-svg/ Inline SVG vs Icon Fonts Cagematch]' The result there favors SVG, however, his [https://css-tricks.com/examples/IconFont/ IconFont] page lays out the clear advantages of using a font.  Font technology has standardized on WOFF rather than SVG fonts because WOFF (and others) support SVG glyphs in the font specification ("it's in there").  Do not confuse this with generic use of an SVG in graphics situations.  All modern browsers support SVG graphics<ref>http://caniuse.com/#feat=svg</ref>
 
 
{{References}}
 
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]
 
[[Category:UI]]
 
[[Category:UI]]
[[Category:Wiki]]
 

Revision as of 12:41, 20 May 2015

Freedom Fonts

Fonts are an interesting creature. We hardly consider them when using a computer. Yet, without a font to represent the text and information in a computer, the machine would be a box of plastic, metal and glass. Thus free fonts are essential to free computing.

Paraphrasing from the Open Font Library[1]

Libre/open fonts are about FREEDOM, not price.

They are fonts that preserve and protect your:

  • freedom to use for any purpose
  • freedom to study how they were made
  • freedom to improve
  • freedom to redistribute, both exact and improved copies
  • freedom to embed, subset, bundle and derive from to create any kind of artwork or document
  • freedom to do all of these things commercially as it is about freedom, not price.

Licensing[edit | edit source]

In 2005, David "Novalis" Turner of the FSF created the "font exception" to the GPL license to deal with fonts [2][3]

Since fonts are so intertwined with linguistics, it's no surprise that SIL International has an open font license


Availability[edit | edit source]

There are a lot of free fonts out there. For example, see John Strake's Essays 1743 font which was used in typesetting 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.

  1. The 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.
  2. FreeFont by GNU
  3. wp:Ubuntu_(typeface) is a family of fonts created by Canonical https://wiki.ubuntu.com/Ubuntu Font Family
  4. The Open Font Library is a sister project to OpenClipArt and the Libre Graphics project http://openfontlibrary.org/
  5. With the ever-increasing phenomenon of software as a service (from "the cloud") Google Fonts (formerly Google Web Fonts) is one method for sourcing fonts for online use https://www.google.com/fonts
  6. Genericons is a free, GPL, flexible icon font for the web
  7. See also Free software Unicode typefaces

References[edit source]


Font Artists[edit | edit source]

We've all doodled with pencil and paper to make letters and Mother's Day cards. Some people still do it. The leading free software for people who want to develop fonts is FontForge https://fontforge.github.io/