---
name: "Gnome2::Canvas::Text"
section: "3pm"
platform: "linux"
package: "libgnome2-canvas-perl"
version: "1.002-4+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Canvas::Text"
---

# Gnome2::Canvas::Text(3pm)

Text as CanvasItems

## NAME

Gnome2::Canvas::Text - Text as CanvasItems

## HIERARCHY

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

## PROPERTIES

- '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)

  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)

  Height of the rendered text

- 'text-width' (double : default 0 : readable)

  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

### 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'

### enum Pango::Variant

- •

  'normal' / 'PANGO\_VARIANT\_NORMAL'

- •

  'small-caps' / 'PANGO\_VARIANT\_SMALL\_CAPS'

## SEE ALSO

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

## COPYRIGHT

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

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