How do I install a custom font on an HTML site

Yes, you can use the CSS feature named @font-face. It has only been officially approved in CSS3, but been proposed and implemented in CSS2 and has been supported in IE for quite a long time. You declare it in the CSS like this: Then, you can just reference it like the other standard fonts: So, … Read more

What is the default font of Sublime Text?

On Linux it’s Monospace 10 pt. (the exact monospace font used may vary on different Linux distributions or versions), on Windows it’s Consolas 10 pt., and on OS X it’s Menlo Regular 12 pt. (The color scheme is Neon, the syntax highlighting is from PackageDev, and the font is Liberation Mono This information is found in the Packages/Default directory (where Packages is the directory opened by the Preferences → … Read more

CSS Font Border?

There’s an experimental CSS property called text-stroke, supported on some browsers behind a -webkit prefix.  Run code snippetExpand snippet Another possible trick would be to use four shadows, one pixel each on all directions, using property text-shadow:  Run code snippetExpand snippet But it would get blurred for more than 1 pixel thickness.

iPhone system font

To the delight of font purists everywhere, the iPhone system interface uses Helvetica or a variant thereof. The original iPhone, iPhone 3G and iPhone 3GS system interface uses Helvetica. As first noted by the always excellent DaringFireball, the iPhone 4 uses a subtly revised font called “Helvetica Neue.” DaringFireball also notes that this change is … Read more