Gnome2:...s::Text(3)

πŸ“¦
version 1.006 Β· 2 versions
, in fedora 43

πŸ’– Gnome2::Canvas::Text πŸ’–

okay so bestie, this is the manual page for Gnome2::Canvas::Text β€” and what is it? It's Text as CanvasItems. That's it. That's the whole vibe. Text. But as a canvas item. (User Contributed Perl Documentation, if you needed the receipts.) ✨


πŸ¦‹ HIERARCHY πŸ¦‹

okay so the family tree is giving royal lineage, look at this:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gnome2::Canvas::Item
                 +----Gnome2::Canvas::Text

five whole ancestors, she's descended from greatness, we love a legacy πŸ’…


πŸŽ€ PROPERTIES πŸŽ€

every single one of these is a real property you can read and/or write, no skips, no cap. defaults included because we're thorough like that 🫢

  • 'anchor' β€” Gtk2::AnchorType, default "center", readable / writable. ✨
  • 'attributes' β€” Pango::AttrList, default undef, readable / writable.
  • 'clip' β€” boolean, default false, readable / writable.
  • 'clip-height' β€” double, default 0, readable / writable.
  • 'clip-width' β€” double, default 0, readable / writable.
  • 'family' β€” string, default undef, readable / writable. Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
  • 'family-set' β€” boolean, default false, readable / writable. Whether this tag affects the font family.
  • 'fill-color' β€” string, default undef, readable / writable. Text color, as string.
  • 'fill-color-gdk' β€” Gtk2::Gdk::Color, default undef, readable / writable. Text color, as a GdkColor.
  • 'fill-color-rgba' β€” Glib::UInt, default 0, readable / writable. Text color, as an R/G/B/A combined integer.
  • 'fill-stipple' β€” Gtk2::Gdk::Drawable, default undef, readable / writable.
  • 'font' β€” string, default undef, readable / writable. Font description as a string.
  • 'font-desc' β€” Pango::FontDescription, default undef, readable / writable. Font description as a PangoFontDescription struct.
  • 'justification' β€” Gtk2::Justification, default "left", readable / writable.
  • 'markup' β€” string, default undef, writable (bestie, note this one is write-only, no peeking πŸ‘€). Marked up text to render.
  • 'rise' β€” integer, default 0, readable / writable. Offset of text above the baseline (below the baseline if rise is negative).
  • 'rise-set' β€” boolean, default false, readable / writable. Whether this tag affects the rise.
  • 'scale' β€” double, default 1, readable / writable. Size of font, relative to default size.
  • 'scale-set' β€” boolean, default false, readable / writable. Whether this tag affects font scaling.
  • 'size' β€” integer, default 0, readable / writable. Font size (as a multiple of PANGO_SCALE, eg. 12*PANGO_SCALE for a 12pt font size).
  • 'size-points' β€” double, default 0, readable / writable. Font size in points (eg. 12 for a 12pt font size).
  • 'size-set' β€” boolean, default false, readable / writable. Whether this tag affects the font size.
  • 'stretch' β€” Pango::Stretch, default "normal", readable / writable. Font stretch.
  • 'stretch-set' β€” boolean, default false, readable / writable. Whether this tag affects the font stretch.
  • 'strikethrough' β€” boolean, default false, readable / writable. Whether to strike through the text.
  • 'strikethrough-set' β€” boolean, default false, readable / writable. Whether this tag affects strikethrough.
  • 'style' β€” Pango::Style, default "normal", readable / writable. Font style.
  • 'style-set' β€” boolean, default false, readable / writable. Whether this tag affects the font style.
  • 'text' β€” string, default undef, readable / writable. Text to render.
  • 'text-height' β€” double, default 0, readable only (no writing, she's private). Height of the rendered text.
  • 'text-width' β€” double, default 0, readable only. Width of the rendered text.
  • 'underline' β€” Pango::Underline, default "none", readable / writable. Style of underline for this text.
  • 'underline-set' β€” boolean, default false, readable / writable. Whether this tag affects underlining.
  • 'variant' β€” Pango::Variant, default "normal", readable / writable. Font variant.
  • 'variant-set' β€” boolean, default false, readable / writable. Whether this tag affects the font variant.
  • 'weight' β€” integer, default 400, readable / writable. Font weight.
  • 'weight-set' β€” boolean, default false, readable / writable. Whether this tag affects the font weight.
  • 'x' β€” double, default 0, readable / writable.
  • 'x-offset' β€” double, default 0, readable / writable.
  • 'y' β€” double, default 0, readable / writable.
  • 'y-offset' β€” double, default 0, readable / writable.

🌈 ENUMS AND FLAGS 🌈

the little menus of accepted values, here they all are, every single one, periodt πŸ’…

✨ enum Gtk2::AnchorType ✨

  • 'center' / 'GTK_ANCHOR_CENTER'
  • 'north' / 'GTK_ANCHOR_NORTH'
  • 'north-west' / 'GTK_ANCHOR_NORTH_WEST'
  • 'north-east' / 'GTK_ANCHOR_NORTH_EAST'
  • 'south' / 'GTK_ANCHOR_SOUTH'
  • 'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
  • 'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
  • 'west' / 'GTK_ANCHOR_WEST'
  • 'east' / 'GTK_ANCHOR_EAST'
  • 'n' / 'GTK_ANCHOR_N'
  • 'nw' / 'GTK_ANCHOR_NW'
  • 'ne' / 'GTK_ANCHOR_NE'
  • 's' / 'GTK_ANCHOR_S'
  • 'sw' / 'GTK_ANCHOR_SW'
  • 'se' / 'GTK_ANCHOR_SE'
  • 'w' / 'GTK_ANCHOR_W'
  • 'e' / 'GTK_ANCHOR_E'

🌸 enum Gtk2::Justification 🌸

  • 'left' / 'GTK_JUSTIFY_LEFT'
  • 'right' / 'GTK_JUSTIFY_RIGHT'
  • 'center' / 'GTK_JUSTIFY_CENTER'
  • 'fill' / 'GTK_JUSTIFY_FILL'

🧚 enum Pango::Stretch 🧚

  • 'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
  • 'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
  • 'condensed' / 'PANGO_STRETCH_CONDENSED'
  • 'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
  • 'normal' / 'PANGO_STRETCH_NORMAL'
  • 'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
  • 'expanded' / 'PANGO_STRETCH_EXPANDED'
  • 'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
  • 'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'

πŸ’œ enum Pango::Style πŸ’œ

  • 'normal' / 'PANGO_STYLE_NORMAL'
  • 'oblique' / 'PANGO_STYLE_OBLIQUE'
  • 'italic' / 'PANGO_STYLE_ITALIC'

πŸ“ enum Pango::Underline πŸ“

  • 'none' / 'PANGO_UNDERLINE_NONE'
  • 'single' / 'PANGO_UNDERLINE_SINGLE'
  • 'double' / 'PANGO_UNDERLINE_DOUBLE'
  • 'low' / 'PANGO_UNDERLINE_LOW'
  • 'error' / 'PANGO_UNDERLINE_ERROR'
  • 'single-line' / 'PANGO_UNDERLINE_SINGLE_LINE'
  • 'double-line' / 'PANGO_UNDERLINE_DOUBLE_LINE'
  • 'error-line' / 'PANGO_UNDERLINE_ERROR_LINE'

πŸ‘‘ enum Pango::Variant πŸ‘‘

  • 'normal' / 'PANGO_VARIANT_NORMAL'
  • 'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
  • 'all-small-caps' / 'PANGO_VARIANT_ALL_SMALL_CAPS'
  • 'petite-caps' / 'PANGO_VARIANT_PETITE_CAPS'
  • 'all-petite-caps' / 'PANGO_VARIANT_ALL_PETITE_CAPS'
  • 'unicase' / 'PANGO_VARIANT_UNICASE'
  • 'title-caps' / 'PANGO_VARIANT_TITLE_CAPS'

🫢 SEE ALSO 🫢

go read these next, they're the friend group:

  • Gnome2::Canvas
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gnome2::Canvas::Item

Copyright (C) 2003-2004 by the Gtk2-Perl Team.

This software is licensed under the LGPL; see Gnome2::Canvas for a full notice.


and that's the whole page bestie, tysm for reading πŸ₯Ή this was perl v5.42.0, dated 2025-07-25 β€” mwah, stan, go write some slay text on a canvas πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from