add docs for autofit_dpi

This commit is contained in:
John Cupitt 2017-10-10 13:10:17 +01:00
parent 40f20e5e0a
commit 9e0ff87dd5

View File

@ -500,6 +500,7 @@ vips_text_init( VipsText *text )
* * @height: %gint, image should be no higher than this many pixels * * @height: %gint, image should be no higher than this many pixels
* * @align: #VipsAlign, left/centre/right alignment * * @align: #VipsAlign, left/centre/right alignment
* * @dpi: %gint, render at this resolution * * @dpi: %gint, render at this resolution
* * @autofit_dpi: %gint, read out auto-fitted DPI
* * @spacing: %gint, space lines by this in points * * @spacing: %gint, space lines by this in points
* *
* Draw the string @text to an image. @out is a one-band 8-bit * Draw the string @text to an image. @out is a one-band 8-bit
@ -523,6 +524,8 @@ vips_text_init( VipsText *text )
* In this case, vips_text() will search for a @dpi which will just fit the * In this case, vips_text() will search for a @dpi which will just fit the
* text into @width and @height. * text into @width and @height.
* *
* You can use @autofit_dpi to read out the DPI selected by auto fit.
*
* @dpi sets the resolution to render at. "sans 12" at 72 dpi draws characters * @dpi sets the resolution to render at. "sans 12" at 72 dpi draws characters
* approximately 12 pixels high. * approximately 12 pixels high.
* *