Class: Google::Cloud::DocumentAI::V1::Document::Page::Token::StyleInfo
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1::Document::Page::Token::StyleInfo
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1/document.rb
Overview
Font and other text style attributes.
Instance Attribute Summary collapse
-
#background_color ⇒ ::Google::Type::Color
Color of the background.
-
#bold ⇒ ::Boolean
Whether the text is bold (equivalent to font_weight is at least
700
). -
#font_size ⇒ ::Integer
Font size in points (
1
point is¹⁄₇₂
inches). -
#font_type ⇒ ::String
Name or style of the font.
-
#font_weight ⇒ ::Integer
TrueType weight on a scale
100
(thin) to1000
(ultra-heavy). -
#handwritten ⇒ ::Boolean
Whether the text is handwritten.
-
#italic ⇒ ::Boolean
Whether the text is italic.
-
#letter_spacing ⇒ ::Float
Letter spacing in points.
-
#pixel_font_size ⇒ ::Float
Font size in pixels, equal to unrounded font_size * resolution ÷
72.0
. -
#smallcaps ⇒ ::Boolean
Whether the text is in small caps.
-
#strikeout ⇒ ::Boolean
Whether the text is strikethrough.
-
#subscript ⇒ ::Boolean
Whether the text is a subscript.
-
#superscript ⇒ ::Boolean
Whether the text is a superscript.
-
#text_color ⇒ ::Google::Type::Color
Color of the text.
-
#underlined ⇒ ::Boolean
Whether the text is underlined.
Instance Attribute Details
#background_color ⇒ ::Google::Type::Color
Returns Color of the background.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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
).
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#font_size ⇒ ::Integer
Returns Font size in points (1
point is ¹⁄₇₂
inches).
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#font_type ⇒ ::String
Returns Name or style of the font.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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
.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#handwritten ⇒ ::Boolean
Returns Whether the text is handwritten.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#italic ⇒ ::Boolean
Returns Whether the text is italic.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#letter_spacing ⇒ ::Float
Returns Letter spacing in points.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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
.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 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.
482 483 484 485 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 482 class StyleInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |