# Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo (v0.49.0)

0.49.0 (latest) 0.48.1 0.47.0 0.46.2 0.45.0 0.44.0 0.43.1 0.42.0 0.41.0 0.40.0 0.39.1 0.38.0 0.37.0 0.36.1 0.35.0 0.34.0 0.33.1 0.32.0 0.31.0 0.30.2 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.4 Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo.

Font and other text style attributes.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #background_color

    def background_color() -> ::Google::Type::Color

**Returns**

- ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the background.

### #background_color=

    def background_color=(value) -> ::Google::Type::Color

**Parameter**

- **value** ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the background.
**Returns**

- ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the background.

### #bold

    def bold() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is bold (equivalent to [font_weight](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_weight_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_weight (method)") is at least `700`).

### #bold=

    def bold=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the text is bold (equivalent to [font_weight](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_weight_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_weight (method)") is at least `700`).
**Returns**

- (::Boolean) --- Whether the text is bold (equivalent to [font_weight](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_weight_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_weight (method)") is at least `700`).

### #font_size

    def font_size() -> ::Integer

**Returns**

- (::Integer) --- Font size in points (`1` point is `¹⁄₇₂` inches).

### #font_size=

    def font_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Font size in points (`1` point is `¹⁄₇₂` inches).
**Returns**

- (::Integer) --- Font size in points (`1` point is `¹⁄₇₂` inches).

### #font_type

    def font_type() -> ::String

**Returns**

- (::String) --- Name or style of the font.

### #font_type=

    def font_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Name or style of the font.
**Returns**

- (::String) --- Name or style of the font.

### #font_weight

    def font_weight() -> ::Integer

**Returns**

- (::Integer) --- TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.

### #font_weight=

    def font_weight=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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`.

### #handwritten

    def handwritten() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is handwritten.

### #handwritten=

    def handwritten=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the text is handwritten.
**Returns**

- (::Boolean) --- Whether the text is handwritten.

### #italic

    def italic() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is italic.

### #italic=

    def italic=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the text is italic.
**Returns**

- (::Boolean) --- Whether the text is italic.

### #letter_spacing

    def letter_spacing() -> ::Float

**Returns**

- (::Float) --- Letter spacing in points.

### #letter_spacing=

    def letter_spacing=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Letter spacing in points.
**Returns**

- (::Float) --- Letter spacing in points.

### #pixel_font_size

    def pixel_font_size() -> ::Float

**Returns**

- (::Float) --- Font size in pixels, equal to *unrounded
  [font_size](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_size_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_size (method)")*

  - *resolution* ÷ `72.0`.

### #pixel_font_size=

    def pixel_font_size=(value) -> ::Float

**Parameter**

- **value** (::Float) ---

  Font size in pixels, equal to *unrounded
  [font_size](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_size_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_size (method)")*
  - *resolution* ÷ `72.0`.
**Returns**

- (::Float) --- Font size in pixels, equal to *unrounded
  [font_size](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document-Page-Token-StyleInfo#Google__Cloud__DocumentAI__V1beta3__Document__Page__Token__StyleInfo_font_size_instance_ "Google::Cloud::DocumentAI::V1beta3::Document::Page::Token::StyleInfo#font_size (method)")*

  - *resolution* ÷ `72.0`.

### #smallcaps

    def smallcaps() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is in small caps. This feature is not supported yet.

### #smallcaps=

    def smallcaps=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.

### #strikeout

    def strikeout() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is strikethrough. This feature is not supported yet.

### #strikeout=

    def strikeout=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the text is strikethrough. This feature is not supported yet.
**Returns**

- (::Boolean) --- Whether the text is strikethrough. This feature is not supported yet.

### #subscript

    def subscript() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is a subscript. This feature is not supported yet.

### #subscript=

    def subscript=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.

### #superscript

    def superscript() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is a superscript. This feature is not supported yet.

### #superscript=

    def superscript=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.

### #text_color

    def text_color() -> ::Google::Type::Color

**Returns**

- ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the text.

### #text_color=

    def text_color=(value) -> ::Google::Type::Color

**Parameter**

- **value** ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the text.
**Returns**

- ([::Google::Type::Color](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Type-Color)) --- Color of the text.

### #underlined

    def underlined() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the text is underlined.

### #underlined=

    def underlined=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the text is underlined.
**Returns**

- (::Boolean) --- Whether the text is underlined.