added support for font definitions with different character offset and size