add capabilities to register new font's directories

In these two commits I added the capabilities to register new font's directories and cleanup the code replacing tabs with space.