Text canvas item
A canvas item for displaying text. See <gnome-canvas-rich-text>
for a
more advanced text display and editing canvas item. NB: The
<gnome-canvas-text>
item doesn't scale with the zoom property of the
<gnome-canvas>
. A zoomable implementation could derive from
<gnome-canvas-text>
and check the zoom property for manual adjustments to
the font size.
Derives from
<gnome-canvas-item>
.This class defines the following properties:
text
- Text to render
markup
- Marked up text to render
x
y
font
- Font description as a string
font-desc
- Font description as a PangoFontDescription struct
family
- Name of the font family, e.g. Sans, Helvetica, Times, Monospace
family-set
- Whether this tag affects the font family
attributes
style
- Font style
style-set
- Whether this tag affects the font style
variant
- Font variant
variant-set
- Whether this tag affects the font variant
weight
- Font weight
weight-set
- Whether this tag affects the font weight
stretch
- Font stretch
stretch-set
- Whether this tag affects the font stretch
size
- Font size (as a multiple of PANGO_SCALE, eg. 12*PANGO_SCALE for a 12pt font size)
size-set
- Whether this tag affects the font size
size-points
- Font size in points (eg. 12 for a 12pt font size)
strikethrough
- Whether to strike through the text
strikethrough-set
- Whether this tag affects strikethrough
underline
- Style of underline for this text
underline-set
- Whether this tag affects underlining
rise
- Offset of text above the baseline (below the baseline if rise is negative)
rise-set
- Whether this tag affects the rise
scale
- Size of font, relative to default size
scale-set
- Whether this tag affects font scaling
anchor
justification
clip-width
clip-height
clip
x-offset
y-offset
fill-color
- Text color, as string
fill-color-gdk
- Text color, as a GdkColor
fill-color-rgba
- Text color, as an R/G/B/A combined integer
fill-stipple
text-width
- Width of the rendered text
text-height
- Height of the rendered text