Added unicode support and proper height offset