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