Replies: 1 comment 1 reply
-
and how stbtt.dpi == f(freetype2.dpi) ? freetype2: stbtt: there is some error in the value. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
stbtt:
float height()const
{
int lineGap;
stbtt_GetFontVMetrics(handle(), nullptr, nullptr, &lineGap);
return (lineGap * 3) * m_scale;
}
freetype2:
float height()const
{
const FT_Size_Metrics& mat = m_face->size->metrics;
return mat.height * INV_64;
}
The results of these two functions are the same.
Beta Was this translation helpful? Give feedback.
All reactions