tt_scale_for_pixel_height Function

public pure function tt_scale_for_pixel_height(data, hhea, height) result(scale)

Compute scale factor to achieve a desired pixel height. Uses ascent - descent from the hhea table.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in) :: data(:)
integer, intent(in) :: hhea
real(kind=dp), intent(in) :: height

Return Value real(kind=dp)