ugly codes....

But it works... Use FontData-A.txt to test