fortplot
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
tt_scale_for_pixel_height
Function
9 statements
Source File
fortplot_tt_metrics.f90
fortplot_tt_metrics
tt_scale_for_pixel_height
Contents
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
Intent
Optional
Attributes
Name
integer(kind=int8),
intent(in)
::
data
(:)
integer,
intent(in)
::
hhea
real(kind=dp),
intent(in)
::
height
Return Value
real(kind=dp)