[scale] Document

This commit is contained in:
Behdad Esfahbod 2023-01-10 12:53:54 -07:00
parent 0728098e45
commit 8c47580ac8
1 changed files with 12 additions and 0 deletions

View File

@ -2275,6 +2275,18 @@ hb_font_set_funcs_data (hb_font_t *font,
*
* Sets the horizontal and vertical scale of a font.
*
* The font scale is a number related to, but not the same as,
* font size. Typically the client establishes a scale factor
* to be used between the two. For example, 64, or 256, which
* would be the fractional-precision part of the font scale.
* This is necessary because #hb_position_t values are integer
* types and you need to leave room for fractional values
* in there.
*
* The choice is yours but needs to be consistent between
* what you set here, and what you expect out of #hb_position_t
* as well has draw / paint API output values.
*
* Since: 0.9.2
**/
void