freetypy.Face.set_char_size

Face.set_char_size()

Set the nominal font size (in points).

Parameters:
  • char_width (float, optional) – The nominal width, in fractional points.
  • char_height (float, optional) – The nominal height, in fractional points.
  • horz_resolution (int, optional) – The horizontal resolution, in dpi.
  • vert_resolution (int, optional) – The vertical resolution, in dpi.

Notes

If either the character width or height is zero (or not provided), it is set equal to the other value. ⨎: If both width and height are not provided, it defaults to 12.0.

If either the horizontal or vertical resolution is zero, it is set equal to the other value. If both resolution values are zero, they are set to 72dpi.