From 9e0ff87dd5f01aa7cf54356689663b53b68690bd Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 10 Oct 2017 13:10:17 +0100 Subject: [PATCH] add docs for autofit_dpi --- libvips/create/text.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvips/create/text.c b/libvips/create/text.c index 41893003..0c89e295 100644 --- a/libvips/create/text.c +++ b/libvips/create/text.c @@ -500,6 +500,7 @@ vips_text_init( VipsText *text ) * * @height: %gint, image should be no higher than this many pixels * * @align: #VipsAlign, left/centre/right alignment * * @dpi: %gint, render at this resolution + * * @autofit_dpi: %gint, read out auto-fitted DPI * * @spacing: %gint, space lines by this in points * * 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 * 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 * approximately 12 pixels high. *