diff --git a/config.yaml b/config.yaml index 069efe9..3239022 100644 --- a/config.yaml +++ b/config.yaml @@ -2,7 +2,7 @@ # A list of file extensions that nanoc will consider to be textual rather than # binary. If an item with an extension not in this list is found, the file # will be considered as binary. -text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'json', 'less', 'markdown', 'md', 'mkdn', 'php', 'rb', 'sass', 'txt', 'xhtml', 'xml' ] +text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'json', 'less', 'markdown', 'mkdn', 'md', 'php', 'rb', 'sass', 'txt', 'xhtml', 'xml' ] # The path to the directory where all generated files will be written to. This # can be an absolute path starting with a slash, but it can also be path diff --git a/content/screen.sass b/content/screen.sass index 17812e7..307b329 100644 --- a/content/screen.sass +++ b/content/screen.sass @@ -9,7 +9,7 @@ body // HTML5 expectations - should go in reset perhaps -header, footer, nav, article +header, footer, nav, article, figure, figcaption display: block @@ -113,6 +113,18 @@ blockquote padding-left: 1em margin: 0 0 1em 0 +figure + margin: 1em 0 + +figcaption + font-size: small + text-align: center + font-style: italic + + .label + font-weight: bold + + body > header font-family: "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif @@ -357,7 +369,6 @@ img.feed-icon display: block margin: 10px auto - #content .clear clear: both diff --git a/content/technical/2009/03/consolas-on-mac-update.html b/content/technical/2009/03/consolas-on-mac-update.html index 7b997c3..043f6be 100644 --- a/content/technical/2009/03/consolas-on-mac-update.html +++ b/content/technical/2009/03/consolas-on-mac-update.html @@ -1,3 +1,6 @@ +**Update 4 Aug 2010:** See revised post: [How to Install Consolas on Mac OS X][revised] +[revised]: /technical/2010/08/howto-install-consolas-font-mac/ + Today I followed my own directions on installing Consolas on my Mac Pro. The original directions were put together when installing it on my Mac Book. The downloaded disk image had a different volume name, as did the meta package. So the the command I used to launch the font installer was: open "/Volumes/Open XML File Format Converter for Mac 1.0/Open XML File Format Converter for Mac 1.0.mpkg/Contents/Packages/OpenXML_all_fonts.pkg" diff --git a/content/technical/2009/03/install-consolas-mac-osx.html b/content/technical/2009/03/install-consolas-mac-osx.html index 18f03b5..805e150 100644 --- a/content/technical/2009/03/install-consolas-mac-osx.html +++ b/content/technical/2009/03/install-consolas-mac-osx.html @@ -1,3 +1,6 @@ +**Update 4 Aug 2010:** See revised post: [How to Install Consolas on Mac OS X][revised] +[revised]: /technical/2010/08/howto-install-consolas-font-mac/ + 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. diff --git a/content/technical/2010/08/howto-install-consolas-font-mac.mkdn b/content/technical/2010/08/howto-install-consolas-font-mac.mkdn new file mode 100644 index 0000000..524293d --- /dev/null +++ b/content/technical/2010/08/howto-install-consolas-font-mac.mkdn @@ -0,0 +1,67 @@ +I've [previously](/technical/2009/03/install-consolas-mac-osx/) +[written](/technical/2009/03/consolas-on-mac-update/) +[about](/technical/2009/09/font-smoothing-in-snow-leopard/) installing the +Consolas font on Mac OS X. This post bundles up those posts +into a single reference. + +Installation +------------ + +1. Download the Open XML File Format Converter for Mac from the + [Microsoft Mactopia download page][download]. +2. Double click the disk image if it wasn't automatically mounted. You will + see an Open XML File Format Converter meta package (.mpkg). +3. Right click (or Control-click) the meta package and choose "Show Package Contents". +4. In the Finder window that opens, click "Contents", then "Packages". +5. Double click "OpenXML\_all\_fonts.pkg", which will run the installer. + +[download]: http://www.microsoft.com/mac/downloads.mspx + +
+ Step 1: Show Package Contents +
Step 3: Show Package Contents
+
+ +
+ Step 4: Navigating to the package +
Step 4: Navigating to the package
+
+ +
+ Step 5: Running the OpenXML_all_fonts.pkg installer +
Step 5: Running the OpenXML_all_fonts.pkg installer
+
+ +Fine Tuning +----------- + +At this point Consolas is now installed, but depending on your font smoothing +settings it [may look a bit thin and ugly][smoothing]. This can be fixed by +adjusting these settings. + +[smoothing]: /technical/2009/09/font-smoothing-in-snow-leopard/ + +For Mac OS X Snow Leopard its necessary to set the right value in the Terminal +because Apple removed it from System Preferences: + +1. Open Terminal (Applications > Utilities > Terminal) +1. Copy and paste the following at the terminal prompt and press Return: + + `defaults -currentHost write -globalDomain AppleFontSmoothing -int 2` + +For the Terminal shy, this is what the command is doing: The +[`defaults`][defaults] command manipulates the user defaults, also known as +preferences. This particular use of it sets the AppleFontSmoothing setting at +the global (I.e. all users or system) level to the integer 2, which corresponds +to the Medium font smoothing setting in previous versions of Mac OS X. + +[defaults]: http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/defaults.1.html + +For Mac OS X Leopard or earlier its easier: + +1. Open System Preferences +1. Click "Appearance" +1. At the bottom, set Font smoothing to, "Medium (best for Flat Panel)" + +You will need to restart any running applications for them to pick up the new +font smoothing settings. diff --git a/content/technical/2010/08/howto-install-consolas-font-mac.yaml b/content/technical/2010/08/howto-install-consolas-font-mac.yaml new file mode 100644 index 0000000..bf28b95 --- /dev/null +++ b/content/technical/2010/08/howto-install-consolas-font-mac.yaml @@ -0,0 +1,12 @@ +--- +title: How to Install Consolas on Mac OS X +extra: Concise summary of where to download and how to install the Consolas font on Mac OS X. +kind: article +section: technical +created_at: 2010-08-04 13:50:00 +keywords: +- install +- consolas +- mac +- font +short_url: http://bit.ly/b0XwgI diff --git a/layouts/_head.html b/layouts/_head.html index c13b8ec..a1b6e21 100644 --- a/layouts/_head.html +++ b/layouts/_head.html @@ -9,11 +9,13 @@ + + - diff --git a/output/images/2010/08/open-xml-converter-all-fonts-installer-small.jpg b/output/images/2010/08/open-xml-converter-all-fonts-installer-small.jpg new file mode 100644 index 0000000..be1aa23 Binary files /dev/null and b/output/images/2010/08/open-xml-converter-all-fonts-installer-small.jpg differ diff --git a/output/images/2010/08/open-xml-converter-all-fonts-installer.png b/output/images/2010/08/open-xml-converter-all-fonts-installer.png new file mode 100644 index 0000000..95d4fa8 Binary files /dev/null and b/output/images/2010/08/open-xml-converter-all-fonts-installer.png differ diff --git a/output/images/2010/08/open-xml-converter-all-fonts-small.jpg b/output/images/2010/08/open-xml-converter-all-fonts-small.jpg new file mode 100644 index 0000000..1222e1c Binary files /dev/null and b/output/images/2010/08/open-xml-converter-all-fonts-small.jpg differ diff --git a/output/images/2010/08/open-xml-converter-all-fonts.png b/output/images/2010/08/open-xml-converter-all-fonts.png new file mode 100644 index 0000000..7453175 Binary files /dev/null and b/output/images/2010/08/open-xml-converter-all-fonts.png differ diff --git a/output/images/2010/08/open-xml-converter-show-package-contents-small.jpg b/output/images/2010/08/open-xml-converter-show-package-contents-small.jpg new file mode 100644 index 0000000..a47a6f9 Binary files /dev/null and b/output/images/2010/08/open-xml-converter-show-package-contents-small.jpg differ diff --git a/output/images/2010/08/open-xml-converter-show-package-contents.png b/output/images/2010/08/open-xml-converter-show-package-contents.png new file mode 100644 index 0000000..4528509 Binary files /dev/null and b/output/images/2010/08/open-xml-converter-show-package-contents.png differ diff --git a/output/js/application.js b/output/js/application.js index bc47947..d1f28be 100644 --- a/output/js/application.js +++ b/output/js/application.js @@ -44,5 +44,7 @@ jQuery(function() { input.val(''); } $('#search').show(); -}); + // Enable light box + $("a[rel^='prettyPhoto']").prettyPhoto({theme: "facebook"}); +}); diff --git a/output/js/home.js b/output/js/home.js index 0ab7cf0..f76fa5a 100644 --- a/output/js/home.js +++ b/output/js/home.js @@ -20,7 +20,6 @@ jQuery(function () { li.css("background-position", (i * -75) + 'px -75px'); ul.append(li); }); - $("a[rel^='prettyPhoto']").prettyPhoto({theme: "facebook"}); }; // Populate Flickr