1.38 <GskTextNode>

Class: <GskTextNode>

It derives from <GskRenderNode>.

A render node drawing a set of glyphs.

Procedures

Method: text-node:get-color self ⇒ %return
Method: get-color self ⇒ %return

Retrieves the color used by the text self.

The value returned by this function will not be correct if the render node was created for a non-sRGB color.

self

Passed: a <GskTextNode>.

a text <GskRenderNode>

%return

Returned: a <GdkRGBA>.

the text color

Method: text-node:get-font self ⇒ %return
Method: get-font self ⇒ %return

Returns the font used by the text self.

self

Passed: a <GskTextNode>.

The <GskRenderNode>

%return

Returned: a <PangoFont>.

the font

Method: text-node:get-num-glyphs self ⇒ %return
Method: get-num-glyphs self ⇒ %return

Retrieves the number of glyphs in the text node.

self

Passed: a <GskTextNode>.

a text <GskRenderNode>

%return

Returned: an unsigned 32-bit integer.

the number of glyphs

Method: text-node:get-offset self ⇒ %return
Method: get-offset self ⇒ %return

Retrieves the offset applied to the text.

self

Passed: a <GskTextNode>.

a text <GskRenderNode>

%return

Returned: a <GraphenePoint>.

a point with the horizontal and vertical offsets

Method: text-node:has-color-glyphs? self ⇒ %return
Method: has-color-glyphs? self ⇒ %return

Checks whether the text self has color glyphs.

self

Passed: a <GskTextNode>.

a text <GskRenderNode>

%return

Returned: a boolean.

#t if the text node has color glyphs

Procedure: text-node:new font glyphs color offset ⇒ %return

Creates a render node that renders the given glyphs.

Note that color may not be used if the font contains color glyphs.

font

Passed: a <PangoFont>.

the <PangoFont> containing the glyphs

glyphs

Passed: a <PangoGlyphString>.

the <PangoGlyphString> to render

color

Passed: a <GdkRGBA>.

the foreground color to render with

offset

Passed: a <GraphenePoint>.

offset of the baseline

%return

Returned: a <GskTextNode>, or #f.

a new <GskRenderNode>