# Pixel Units The framework provides four pixel units, with vp as the reference data unit.
Pixels specific to the screen density, which are converted into physical pixels of the screen based on the screen pixel density. |
|
Font pixel, which is similar to vp and varies according to the system font size. |
|
Logical pixel unit of the window. It is the ratio of the actual screen width to the logical width (configured by designWidth). For example, if designWidth is set to 720, then 1lpx is equal to 2px for a screen with an actual width of 1440 physical pixels. |