A List of Pairs (component, fontsize) would be a better choice for this than a dictionary. It allows use of the lookup in pairs block.
From my sample