toEm

fun toEm(resources: Resources): Float

EN Builds the adjusted Dp value and converts it to Scalable Pixels (SP) in Pixels (Float), ignoring the system's font scale ('em' unit).

Return

The value in Pixels (PX) corresponding to 'em', as a Float.

PT Constrói o valor Dp ajustado e o converte para Scaleable Pixels (SP) em Pixels (Float), ignorando a escala de fonte do sistema (unidade 'em').

O valor em Pixels (PX) correspondente ao 'em', como Float.

Parameters

resources

Os Resources do Context.