stbtt_ScaleForPixelHeight

Computes a scale factor to produce a font whose "height" is 'pixels' tall. Height is measured as the distance from the highest ascender to the lowest descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics and computing: scale = pixels / (ascent - descent) so if you prefer to measure height by the ascent only, use a similar calculation.

nothrow @nogc
float
stbtt_ScaleForPixelHeight
(,
float height
)

Meta