Wednesday, October 24, 2007

Java Line separator

Different systems use different characters or sequences of characters as line separators. Do not hardcode "\n", "\r", or "\r\n" as the line separator in your program. Instead, use the println() method of PrintStream or PrintWriter, which automatically terminates a line with the line separator appropriate for the platform, or use the value of the line.separator system property.

Friday, October 12, 2007

How to Peel Your Web Pages

This company provides an innovative solution to peel the web page as in this image. It is very interesting:

You can find more effects with "visualsteel".

Wednesday, October 10, 2007

Panose tag in font table “OS/2”

PANOSE is a classification number of 10 bytes. This 10 byte series of numbers is used to describe the visual characteristics of a given typeface. These characteristics are then used to associate the font with other fonts of similar appearance having different names.

The Panose values are fully described in the Panose "greybook" reference.

Thursday, October 4, 2007

Hiding navigation bar in your Blog

You may already know how this is done, but for the ones who doesn't
Add the following code just after the "<head>" tag to remove or hide the navigation bar of your blog.

<!--Remove NavBar -->
<style type='text/css'>#b-navbar {height: 0px; visibility: hidden; display: none;}</style>
<style type='text/css'>#navbar-iframe {height: 0px; visibility: hidden; display: none;}</style>

Wednesday, October 3, 2007

Identify Bold, Italic fonts

Font specifications state that "fsSelection" bits in "OS/2" table (or "macStyle" bits in "head" table) determine whether the font was designed with features like "Italic", "Bold" etc.

"fsSelection" bits ->
Bits 0 & 5 can be used to determine if the font was designed with these features or whether some type of machine simulation was performed on the font to achieve this appearance.

Bit 0 -> Italic if set as 1
Bit 5 -> Bold if set as 1