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:



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.


486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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

#smallcaps::Boolean

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



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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

#strikeout::Boolean

Returns Whether the text is strikethrough. This feature is not supported yet.

Returns:

  • (::Boolean)

    Whether the text is strikethrough. This feature is not supported yet.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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

#subscript::Boolean

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



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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

#superscript::Boolean

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



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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

#text_color::Google::Type::Color

Returns Color of the text.

Returns:



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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.



486
487
488
489
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 486

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