Google Fonts

July 30, 2010

Google takes web fonts to the next level. If you browse the internet you will notice to lack of creative use of typography. Unlike other media, such as print, web design typography is almost always very typical. This isn’t necessarily the fault of the designer, but instead the lack of support across the many different platforms used for rendering websites.

There are a few fonts that virtually all computers have installed on them. These have been coined as web-safe fonts – Arial, Georgia, Times New Roman, and Verdana. When a website tells the browser to render font “Arial”, the browser fetches the font from the local computer and displays it properly. The problem with using custom font faces are that all computers viewing a website may not have the font. Therefore most website are built upon this very limited library of typography. Designers know they’re websites typography will appear correctly when using a web-safe font.

In the past, if a designer wanted to display more unique typography they would have to actually place an image.

typography image example

The main problem with doing things this way is that search engines like Google cannot index or read image text. Another problem is that fonts can have adaptive sizes and are vector based. If you hold Ctrl and mouse wheel forward, you will zoom your browser in. Notice how the text stays crisp and the image based text gets blurry?

Enter web typography. Web typography is a new way of dishing up the font face. Using this method, when a website tells your browser to render “Arial”, it would provide a link to where Arial could be distributed to the browser. This provides the ability to display all sorts of new typography! The largest problem facing web typography is that open links to fonts allows that font to be downloaded locally. Type designers (or people that create font type faces) would have to give permission for this open source of distribution.

Google Font API in conjunction with the Google Font Directory is making web typography much easier to implement. Those familiar to CSS will find this extremely easy. Google offers a Font Previewer that makes it extremely easy to see what everything will look like. Then you just have to add the small line of code it provides and embed it into your CSS style sheet. The fonts are hosted on Google servers, and everything in the Google Font Directory are open source and free to use. This library will continue to grow as more developers add to it.

Give it a try!

SB¬

Vector vs Bitmap

June 14, 2010

So what is the difference between bitmap images and vector images?

The difference comes in how the image is created. Bitmap graphics, also known as raster graphics, use an array of pixels to display the image. Only so many pixels are used in the creation of a bitmap image, and when scaled up, no more detail is created.
Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or polygon(s), which are all based on mathematical equations, to represent images in computer graphics. The image can be scaled indefinitely without the loss of detail.

So why not use vector all the time? It is not possible to accurately capture an image in a vector format. There is way too much detail to capture images and this detail is what makes bitmap images so much more interesting to work with.

Text is a great example vector. It uses mathematics to connect points with lines to create the shapes of each letter.
A picture taken with a digital camera is a great example of a bitmap image. It creates a bunch of pixels and colors them accordingly to create the image.

Here are two images that appear to be the same at small resolutions, but when scaled up the vector image re-calculates to render accordingly with all the detail while the bitmap one does not.

Get Adobe Flash player

Vector image being scaled

Get Adobe Flash player

Bitmap image being scaled

Why does all this matter? Depending on where the image is going to be used is important to determine which format is necessary. In almost all cases anything on the web should be rasterized bitmap graphics. When it comes to print, anything that can be vector would be ideal, otherwise only high resolution bitmap images should be used.

A good way to determine how detailed a bitmap image is would be to look at the number of pixels it consists of.

These two images may look identical at first glance, but one contains more pixels and is sized down. Appearances can be deceptive so check what you’re using!