Class: Google::Cloud::DocumentAI::V1::Document::Style
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1::Document::Style
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1/document.rb
Overview
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
Defined Under Namespace
Classes: FontSize
Instance Attribute Summary collapse
-
#background_color ⇒ ::Google::Type::Color
Text background color.
-
#color ⇒ ::Google::Type::Color
Text color.
-
#font_family ⇒ ::String
Font family such as
Arial
,Times New Roman
. -
#font_size ⇒ ::Google::Cloud::DocumentAI::V1::Document::Style::FontSize
Font size.
- #font_weight ⇒ ::String
-
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Text anchor indexing into the Document.text.
- #text_decoration ⇒ ::String
- #text_style ⇒ ::String
Instance Attribute Details
#background_color ⇒ ::Google::Type::Color
Returns Text background color.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#color ⇒ ::Google::Type::Color
Returns Text color.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#font_family ⇒ ::String
Returns Font family such as Arial
, Times New Roman
.
https://www.w3schools.com/cssref/pr_font_font-family.asp.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#font_size ⇒ ::Google::Cloud::DocumentAI::V1::Document::Style::FontSize
Returns Font size.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#font_weight ⇒ ::String
Returns Font weight.
Possible values are normal
, bold
, bolder
, and lighter
.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Returns Text anchor indexing into the Document.text.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_decoration ⇒ ::String
Returns Text
decoration.
Follows CSS standard.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_style ⇒ ::String
Returns Text style.
Possible values are normal
, italic
, and oblique
.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 140 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (such as `in`, `px`, and # `pt`). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |