We are banging our heads trying to figure the best way to scale fonts to fit a certain Width.
Example:
We want 20 characters to fit into a component, always, independent on device and resolution.
So even if its a Tablet with a very high res, we still want to be able to place just that amount of chars in a row.
Our system works flawless in the SIM, we simply measure the component and divide it by 20 and set that as font size. (As most fonts are higher than wide, and the ones we use are like that. Then we are sure that the numb of chars will fit)
But then when it comes to devices, we have PPI to consider as well...that's when things starts to get messy.
Is there anyone who have an idea on how to proceed?
On Android there is a way, as you can use XXdp where dp will scale depending on density. But i haven't found any info on that for iOS...
We simply need a solution on how to scale fonts to fit a certain amount of chars into a component, so it looks equal on all devices and OS´s.