From ad2c9cd635e39b260544ee3045f4a242d108eb35 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Mon, 22 Mar 2010 17:25:18 +1100 Subject: [PATCH] QA /technical/2009/03/install-consolas-mac-osx/ --- .../2009/03/install-consolas-mac-osx.html | 68 +++++++++---------- output/css/screen.css | 5 +- 2 files changed, 38 insertions(+), 35 deletions(-) diff --git a/content/technical/2009/03/install-consolas-mac-osx.html b/content/technical/2009/03/install-consolas-mac-osx.html index a4b8e77..18f03b5 100644 --- a/content/technical/2009/03/install-consolas-mac-osx.html +++ b/content/technical/2009/03/install-consolas-mac-osx.html @@ -1,40 +1,40 @@ With the introduction of Windows Vista and Office 2007 Microsoft included some new fonts, which became the defaults in Office. Their names all start with 'C' and they are quite attractive. In particular there is a monospaced font called Consolas that is nice to use as a text editor font and Terminal font. The problem is they aren't technically free, although Microsoft does include them in a number of freely available updaters. What follows is how I went about installing the fonts on my Mac. + -
    -
  1. Download the Open XML File Format Converter for Mac from the Microsoft Mactopia download page.
  2. -
  3. Double click the disk image if it wasn't automatically mounted. You will see an Open XML File Format Converter meta package (.mpkg). This is an installer package comprised of several sub-installer packages. One of which is the fonts I was after.
  4. -
  5. Run the Open XML Fonts Installer package. Running the following in the Terminal will achieve this in a typical Mac OS X install: -open "/Volumes/Open XML File Format Converter for Mac 1.0.2/Open XML File Format Converter for Mac 1.0.2.mpkg/Contents/Packages/OpenXML_all_fonts.pkg"
  6. -
  7. Follow the prompts and you're done. You can now configure you text editor and Terminal to use Consolas.
  8. -
-Note: I deemed that the OpenXML_all_fonts.pkg was safe to install without fear that it will install any other rubbish using the lsbom command as follows: +1. Download the Open XML File Format Converter for Mac from the Microsoft Mactopia download page. +1. Double click the disk image if it wasn't automatically mounted. You will see an Open XML File Format Converter meta package (.mpkg). This is an installer package comprised of several sub-installer packages. One of which is the fonts I was after. +1. Run the Open XML Fonts Installer package. Running the following in the Terminal will achieve this in a typical Mac OS X ins +1. `open "/Volumes/Open XML File Format Converter for Mac 1.0.2/Open XML File Format Converter for Mac 1.0.2.mpkg/Contents/Packages/OpenXML_all_fonts.pkg"` +1. Follow the prompts and you're done. You can now configure you text editor and Terminal to use Consolas. -
$ lsbom -s /Volumes/Open\ XML\ File\ Format\ Converter\ for\ Mac\ 1.0.2/Open\ XML\ File\ Format\ Converter\ for\ Mac\ 1.0.2.mpkg/Contents/Packages/OpenXML_all_fonts.pkg/Contents/Archive.bom 
-.
-./Calibri Bold Italic.ttf
-./Calibri Bold.ttf
-./Calibri Italic.ttf
-./Calibri.ttf
-./Cambria Bold Italic.ttf
-./Cambria Bold.ttf
-./Cambria Italic.ttf
-./Cambria.ttf
-./Candara Bold Italic.ttf
-./Candara Bold.ttf
-./Candara Italic.ttf
-./Candara.ttf
-./Consolas Bold Italic.ttf
-./Consolas Bold.ttf
-./Consolas Italic.ttf
-./Consolas.ttf
-./Constantia Bold Italic.ttf
-./Constantia Bold.ttf
-./Constantia Italic.ttf
-./Constantia.ttf
-./Corbel Bold Italic.ttf
-./Corbel Bold.ttf
-./Corbel Italic.ttf
-./Corbel.ttf
+**Note:** I deemed that the `OpenXML_all_fonts.pkg` was safe to install without fear that it will install any other rubbish using the `lsbom` command as follows: + + $ lsbom -s /Volumes/Open\ XML\ File\ Format\ Converter\ for\ Mac\ 1.0.2/Open\ XML\ File\ Format\ Converter\ for\ Mac\ 1.0.2.mpkg/Contents/Packages/OpenXML_all_fonts.pkg/Contents/Archive.bom + . + ./Calibri Bold Italic.ttf + ./Calibri Bold.ttf + ./Calibri Italic.ttf + ./Calibri.ttf + ./Cambria Bold Italic.ttf + ./Cambria Bold.ttf + ./Cambria Italic.ttf + ./Cambria.ttf + ./Candara Bold Italic.ttf + ./Candara Bold.ttf + ./Candara Italic.ttf + ./Candara.ttf + ./Consolas Bold Italic.ttf + ./Consolas Bold.ttf + ./Consolas Italic.ttf + ./Consolas.ttf + ./Constantia Bold Italic.ttf + ./Constantia Bold.ttf + ./Constantia Italic.ttf + ./Constantia.ttf + ./Corbel Bold Italic.ttf + ./Corbel Bold.ttf + ./Corbel Italic.ttf + ./Corbel.ttf This listing shows that the package only contains fonts, nothing else. diff --git a/output/css/screen.css b/output/css/screen.css index e7a87d3..a85ef79 100644 --- a/output/css/screen.css +++ b/output/css/screen.css @@ -99,6 +99,9 @@ pre,code,tt { font-size: 13px; font-family: Consolas, "Andale Mono", "Liberation Mono", Menlo, Monaco, "Bitstream Vera Sans Mono", fixed; } +pre { + overflow-x: auto; +} blockquote { border-left: 2px solid #999; @@ -132,7 +135,7 @@ ul#menu li { padding: 0 20px; clear: both; min-width: 600px; - margin-right: 40%; + margin-right: 33%; } body.articles #content { min-width: auto;