[librsvg: 4/15] Recommend rendering to a viewport in the docs for get_intrinsic_size_in_pixels




commit c7149ec6ed78747dcbd0e2dbc7a438713ca8d956
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jun 23 19:43:10 2021 -0500

    Recommend rendering to a viewport in the docs for get_intrinsic_size_in_pixels
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/585>

 include/librsvg/rsvg.h | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/include/librsvg/rsvg.h b/include/librsvg/rsvg.h
index f3f88612..91c0a25c 100644
--- a/include/librsvg/rsvg.h
+++ b/include/librsvg/rsvg.h
@@ -942,6 +942,9 @@ void rsvg_handle_get_intrinsic_dimensions (RsvgHandle *handle,
  * <svg xmlns="http://www.w3.org/2000/svg"; viewBox="0 0 100 200"/>
  * ]|
  *
+ * Instead of querying an SVG document's size, applications are encouraged to render SVG
+ * documents to a size chosen by the application, by passing a suitably-sized viewport to
+ * rsvg_handle_render_document().
  *
  * Returns: %TRUE if the dimensions could be converted directly to pixels; in this case
  * @out_width and @out_height will be set accordingly.  Note that the dimensions are


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]