3 ms·
As you say, if you know that the font you're loading has different metrics this approach will work, but if you have to make that sort of assumption it's not a g
by iMark 14y ago
As you say, if you know that the font you're loading has different metrics this approach will work, but if you have to make that sort of assumption it's not a generalised approach.
If you know that one font has zero width dimensions and one does not, then it greatly simplifies matters.