Class: Google::Cloud::DocumentAI::V1beta3::Document::Style
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::DocumentAI::V1beta3::Document::Style
 
 
- Extended by:
 - Protobuf::MessageExts::ClassMethods
 
- Includes:
 - Protobuf::MessageExts
 
- Defined in:
 - proto_docs/google/cloud/documentai/v1beta3/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::V1beta3::Document::Style::FontSize 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Font size.
 - #font_weight ⇒ ::String
 - 
  
    
      #text_anchor  ⇒ ::Google::Cloud::DocumentAI::V1beta3::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.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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::V1beta3::Document::Style::FontSize
Returns Font size.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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::V1beta3::Document::TextAnchor
Returns Text anchor indexing into the Document.text.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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. 
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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.
      142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158  | 
    
      # File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142 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  |