i have same these problems 
is there any new solution ??

On Thursday, January 16, 2014 at 3:55:17 PM UTC-8, Rikard Lindgren wrote:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/11f17de2-32d2-48c4-af68-513e1af52ac1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to