Cufon font replacement

Cufon is pretty good. Much easier to work with than sIFR. The embedding part rocks as you can do it all online. For my own site I use it for headlines. Since the cookbook section contains recipes from around the world I limit and extend the characters to:
– uppercase
– lowercase
– numerals
– punctuation
– basic latin
– and extras including Serbian Cyrillic aphabet: čćšđžČĆŠĐŽабвгдђежзијклљмнњопрстћуфхцчџшАБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ„”‘’–—«»°ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿŔŕ

Adding

<script type="text/javascript"> Cufon.now(); </script>

to the buttom of the page, but before other JS scripts, like Google Analytics, really makes the difference. There is no flicker in replacing the default font and Cufon font. Apparently it helps with IE quirks as well.

Ligatures with Fontographer 5

Creating a ligature
A ligature is a glyph made up of one or more glyphs. Most commercial fonts have some commonly used ligatures like æ, and œ. However, Fontographer makes it easy to create ligatures of your own without drawing a thing.
To create a ligature:
1.    Open the outline window for the “f”.
2.    Choose Select All and then choose Duplicate to create another “f”.
3.    Move the new “f” to the right.
4.    Go back to the font window.
5.    Copy the “l” into the same window using the Copy Component command from the Edit menu.
6.    Move the referenced “l” to the right of the second “f”.
7.    Choose Decompose Component from the Edit menu.
8.    Choose Remove Overlap from the Element menu.
Duplicate the “f”.
Copy a reference glyph into the window.
Move it into place.
Choose Decompose Component.
Then choose Remove Overlap.
Remove any extra points.

Apache and nginx on same server with multiple IP addresses

In order to get this to work, you need to specify the IP and port each should listen in the domain configuration file (and NOT in the global web-server config).

nginx configuration for a domain (/etc/nginx/sites-enabled/www.mydomain.com) contains:

listen 11.22.33.44:80;
server_name http://www.mydomain.com mydomain.com;

Apache configuration for another domain contains:

In this case, this was at the top of /etc/apache2/sites-enabled/myotherdomain.com

WIth this setup, each web server has its own IP to listen to and they both serve on port 80.