The Legend of the Serpent’s Tongue by Esined

This is the sequel to the trilogy The Mathias Prophecy. Harry becomes a teacher at Hogwarts. However Voldemort is resurrected in a dark ritual and Harry is once more called upon to defeat him. In a cruel plot Voldemort resurrects Harry’s parents which must be sent back in order to vanquish Voldemort once and for all. The emotional affair is resolved as well. Read more.

Book Review: Blender Foundations – The Essential Guide to Learning Blender 2.6

About eight month ago I started using blender. I learned by watching different tutorials and mainly trail and error. Now however I thought a book covering the basics would come in handy. Therefore I selected Roland Hess Blender Foundations – The Essential Guide to Learning Blender 2.6.
„Book Review: Blender Foundations – The Essential Guide to Learning Blender 2.6“ weiterlesen

Custom Look&Feel in Java

The first question to why you feel you need to create your own Look and feel (L&F). I guess you did that and came up with a good enough reason and now you are questioning yourself how to go about to achieve this. This articles gives some pointers that I came across while I implemented the custom Look and Feel for OpenPatrician. These are especially points that I found nowhere on the web mentioned and I had to figure it out the hard way.
„Custom Look&Feel in Java“ weiterlesen

Creating custom Font in Java

Creating a custom font from a TrueTypeFont file in Java is not that hard. However there are some pitfalls:

  • The font size in in pt (Points) where a point is 1/72 of an inch, that is for a normal person about 3.5mm.
  • The created Font has an initial size of 1pt
  • The font size is passed as Float but rounded to the nearest Integer
  • Passing an Integer for the font size does not work (results in unchanged font size)
public Font createDefaultFont(int size)throws FontFormatException, IOException{
	Font font = Font.createFont( Font.TRUETYPE_FONT, getClass().getResourceAsStream( "/"+defaultFont) );
        return font.deriveFont((float)size);
}

Here defaultFont is the filename of the TrueType Font.