Fonts: Difference between revisions
No edit summary |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
||
| (One intermediate revision by one other user not shown) | |||
| Line 45: | Line 45: | ||
== Adding Fonts to stock Ubuntu == | == 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). | 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. | Fonts are disk hungry. This list of fonts packages will use about 222MB of disk space by including a total of 101 packages. | ||
| Line 56: | Line 56: | ||
* ubuntustudio-fonts (collection to help with graphic design, including non-free and jsMath, etc.) | * ubuntustudio-fonts (collection to help with graphic design, including non-free and jsMath, etc.) | ||
You can install all these fonts with | You can install all these fonts with | ||
< | <syntaxhighlight 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</syntaxhighlight> | ||
| Line 75: | Line 75: | ||
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: | 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: | ||
< | <syntaxhighlight lang="bash">sudo apt-get install ttf-adf-gillius</syntaxhighlight> | ||
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 | 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 | ||
| Line 100: | Line 100: | ||
==== CSS ==== | ==== CSS ==== | ||
< | <syntaxhighlight lang="css"> | ||
/** Declare the @font-face rules */ | /** Declare the @font-face rules */ | ||
@font-face { | @font-face { | ||
| Line 115: | Line 115: | ||
font-family: gillius-adf; | font-family: gillius-adf; | ||
} | } | ||
</ | </syntaxhighlight> | ||
Now with either <pre> | Now with either <pre> | ||