color: Document empty returns (#3362)
Document that the SVG and PNG getters return the singleton empty blob if the glyph has no color. Fixes: #1413 Co-authored-by: Matthias Clasen <mclasen@redhat.com>
This commit is contained in:
parent
13643934aa
commit
befe3b5d5a
|
@ -256,6 +256,8 @@ hb_ot_color_has_svg (hb_face_t *face)
|
|||
*
|
||||
* Fetches the SVG document for a glyph. The blob may be either plain text or gzip-encoded.
|
||||
*
|
||||
* If the glyph has no SVG document, the singleton empty blob is returned.
|
||||
*
|
||||
* Return value: (transfer full): An #hb_blob_t containing the SVG document of the glyph, if available
|
||||
*
|
||||
* Since: 2.1.0
|
||||
|
@ -296,6 +298,8 @@ hb_ot_color_has_png (hb_face_t *face)
|
|||
* as input. To get an optimally sized PNG blob, the UPEM value must be set on the @font
|
||||
* object. If UPEM is unset, the blob returned will be the largest PNG available.
|
||||
*
|
||||
* If the glyph has no PNG image, the singleton empty blob is returned.
|
||||
*
|
||||
* Return value: (transfer full): An #hb_blob_t containing the PNG image for the glyph, if available
|
||||
*
|
||||
* Since: 2.1.0
|
||||
|
|
Loading…
Reference in New Issue