Package: pango

Function pango:attribute-new

Lambda List

pango:attribute-new (type start end &rest args)

Arguments

type -- a pango:attr-type value
start -- an integer for the start index
end -- an integer for the end index
args -- arguments for the constructor of a type attribute

Details

Creates an attribute for type. Initializes the start index with start and the end index with end. Pass the pango:+attr-index-from-text-beginning+ value for start and pango:+attr-index-to-text-end+ value for end to cover the possible text range.

Notes

This is a Lisp utility function, which calls the corresponding pango:attr-<type>-new constructor for the given type, for example the pango:attr-weight-new constructor for the :weight attribute type.
 

See also

2025-08-17