Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo (v0.38.0)

Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo.

Font and other text style attributes.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#background_color

def background_color() -> ::Google::Type::Color
Returns

#background_color=

def background_color=(value) -> ::Google::Type::Color
Parameter
Returns

#bold

def bold() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is bold (equivalent to font_weight is at least 700).

#bold=

def bold=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is bold (equivalent to font_weight is at least 700).
Returns
  • (::Boolean) — Whether the text is bold (equivalent to font_weight is at least 700).

#font_size

def font_size() -> ::Integer
Returns
  • (::Integer) — Font size in points (1 point is ¹⁄₇₂ inches).

#font_size=

def font_size=(value) -> ::Integer
Parameter
  • value (::Integer) — Font size in points (1 point is ¹⁄₇₂ inches).
Returns
  • (::Integer) — Font size in points (1 point is ¹⁄₇₂ inches).

#font_type

def font_type() -> ::String
Returns
  • (::String) — Name or style of the font.

#font_type=

def font_type=(value) -> ::String
Parameter
  • value (::String) — Name or style of the font.
Returns
  • (::String) — Name or style of the font.

#font_weight

def font_weight() -> ::Integer
Returns
  • (::Integer) — TrueType weight on a scale 100 (thin) to 1000 (ultra-heavy). Normal is 400, bold is 700.

#font_weight=

def font_weight=(value) -> ::Integer
Parameter
  • value (::Integer) — TrueType weight on a scale 100 (thin) to 1000 (ultra-heavy). Normal is 400, bold is 700.
Returns
  • (::Integer) — TrueType weight on a scale 100 (thin) to 1000 (ultra-heavy). Normal is 400, bold is 700.

#handwritten

def handwritten() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is handwritten.

#handwritten=

def handwritten=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is handwritten.
Returns
  • (::Boolean) — Whether the text is handwritten.

#italic

def italic() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is italic.

#italic=

def italic=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is italic.
Returns
  • (::Boolean) — Whether the text is italic.

#letter_spacing

def letter_spacing() -> ::Float
Returns
  • (::Float) — Letter spacing in points.

#letter_spacing=

def letter_spacing=(value) -> ::Float
Parameter
  • value (::Float) — Letter spacing in points.
Returns
  • (::Float) — Letter spacing in points.

#pixel_font_size

def pixel_font_size() -> ::Float
Returns
  • (::Float) —

    Font size in pixels, equal to unrounded font_size

    • resolution ÷ 72.0.

#pixel_font_size=

def pixel_font_size=(value) -> ::Float
Parameter
  • value (::Float) —

    Font size in pixels, equal to unrounded font_size

    • resolution ÷ 72.0.
Returns
  • (::Float) —

    Font size in pixels, equal to unrounded font_size

    • resolution ÷ 72.0.

#smallcaps

def smallcaps() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is in small caps. This feature is not supported yet.

#smallcaps=

def smallcaps=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is in small caps. This feature is not supported yet.
Returns
  • (::Boolean) — Whether the text is in small caps. This feature is not supported yet.

#strikeout

def strikeout() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is strikethrough. This feature is not supported yet.

#strikeout=

def strikeout=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is strikethrough. This feature is not supported yet.
Returns
  • (::Boolean) — Whether the text is strikethrough. This feature is not supported yet.

#subscript

def subscript() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is a subscript. This feature is not supported yet.

#subscript=

def subscript=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is a subscript. This feature is not supported yet.
Returns
  • (::Boolean) — Whether the text is a subscript. This feature is not supported yet.

#superscript

def superscript() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is a superscript. This feature is not supported yet.

#superscript=

def superscript=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is a superscript. This feature is not supported yet.
Returns
  • (::Boolean) — Whether the text is a superscript. This feature is not supported yet.

#text_color

def text_color() -> ::Google::Type::Color
Returns

#text_color=

def text_color=(value) -> ::Google::Type::Color
Parameter
Returns

#underlined

def underlined() -> ::Boolean
Returns
  • (::Boolean) — Whether the text is underlined.

#underlined=

def underlined=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the text is underlined.
Returns
  • (::Boolean) — Whether the text is underlined.