[Functions, Type] Add basic type function for line height calculation