Converts value from pixels to unit.
value
unit
a value in pixels
settings to use, or `NULL` for default settings
a length unit
the length in unit