Class TextMetricsItem

    • Method Detail

      • getWidth

        @JsProperty
        public double getWidth()
        Return the value giving the calculated width of a segment of inline text in CSS pixels.
        It takes in the account the current font of the context..
        Returns:
        the value giving the calculated width of a segment of inline text in CSS pixels