Learn R Programming

RGtk2 (version 2.8.8)

gdkTextWidth: gdkTextWidth

Description

Determines the width of a given string. WARNING: gdk_text_width is deprecated and should not be used in newly-written code.

Usage

gdkTextWidth(object, text, text.length = -1)

Arguments

object
text
[character] the text to measure.
text.length
[integer] the length of the text in bytes.

Value

  • [integer] the width of the string in pixels.