Class: Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

Font and other text style attributes.

Instance Attribute Summary collapse

Instance Attribute Details

#background_color::Google::Type::Color

Returns Color of the background.

Returns:



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#bold::Boolean

Returns 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).



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#font_size::Integer

Returns Font size in points (1 point is ¹⁄₇₂ inches).

Returns:

  • (::Integer)

    Font size in points (1 point is ¹⁄₇₂ inches).



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#font_type::String

Returns Name or style of the font.

Returns:

  • (::String)

    Name or style of the font.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#font_weight::Integer

Returns 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.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#handwritten::Boolean

Returns Whether the text is handwritten.

Returns:

  • (::Boolean)

    Whether the text is handwritten.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#italic::Boolean

Returns Whether the text is italic.

Returns:

  • (::Boolean)

    Whether the text is italic.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#letter_spacing::Float

Returns Letter spacing in points.

Returns:

  • (::Float)

    Letter spacing in points.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#pixel_font_size::Float

Returns 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.


480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#smallcaps::Boolean

Returns Whether the text is in small caps.

Returns:

  • (::Boolean)

    Whether the text is in small caps.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#strikeout::Boolean

Returns Whether the text is strikethrough.

Returns:

  • (::Boolean)

    Whether the text is strikethrough.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#subscript::Boolean

Returns Whether the text is a subscript.

Returns:

  • (::Boolean)

    Whether the text is a subscript.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#superscript::Boolean

Returns Whether the text is a superscript.

Returns:

  • (::Boolean)

    Whether the text is a superscript.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text_color::Google::Type::Color

Returns Color of the text.

Returns:



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#underlined::Boolean

Returns Whether the text is underlined.

Returns:

  • (::Boolean)

    Whether the text is underlined.



480
481
482
483
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 480

class StyleInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end