Package: pango

GBoxed pango:glyph-string

Declaration

(glib:define-gboxed-opaque glyph-string "PangoGlyphString"
  :export t
  :type-initializer "pango_glyph_string_get_type"
  :alloc (%glyph-string-new))  

Details

The pango:glyph-string structure is used to store strings of glyphs with geometry and visual attribute information. The storage for the glyph information is owned by the structure which simplifies memory management.

Examples

Create a glyph string using the pango:shape function.
(let* ((text "Zwölf Ägypter gehen über die Straße.")
       (fontmap (pango:cairo-font-map-default))
       (context (pango:font-map-create-context fontmap))
       (items (pango:itemize context
                             text
                             0
                             (babel:string-size-in-octets text)
                             nil
                             nil))
       (item (first items))
       (glyphs (pango:shape text
                            (pango:item-length item)
                            (pango:item-analysis item))))
  glyphs)
=> #<PANGO:GLYPH-STRING {10055AAA13}>    
 

Returned by

See also

2026-03-08