How to understand 18 pixels in real?

in the view-2022.3.5,i found constant.py

view-2022.3.5\extscache\omni.kit.widgets.custom-1.0.4\omni\kit\widgets\custom\constant.py

class FontSize:
    Normal = 14  # Default (In VIEW, 18 pixels in real, configed by /app/font/size)
    Large = 16  # real size = round(18*16/14) = 21
    XLarge = 18  # real size = round(18*18/14) = 23
    XXLarge = 20  # real size = round(18*20/14) = 26
    XXXLarge = 22  # real size = round(18*22/14) = 28
    Small = 12  # real size = round(18*12/14) = 15
    XSmall = 10  # real size = round(18*10/14) = 13
    XXSmall = 8  # real size = round(18*8/14) = 10
    XXXSmall = 6  # real size = round(18*6/14) = 8

how to understand 18 pixels in real? why use ‘real size = round(18*16/14) = 21’

Hi @zhoujunhua91. Looking into this for you.

thank you!

Hi @zhoujunhua91. Dev team says that isn’t really a public API that is intended to be used by developers. Is there something specific you are trying to do that we can help with?