Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::Style::FontSize (v0.6.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::Style::FontSize.

Font size with unit.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#size

def size() -> ::Float
Returns
  • (::Float) — Font size for the text.

#size=

def size=(value) -> ::Float
Parameter
  • value (::Float) — Font size for the text.
Returns
  • (::Float) — Font size for the text.

#unit

def unit() -> ::String
Returns
  • (::String) — Unit for the font size. Follows CSS naming (in, px, pt, etc.).

#unit=

def unit=(value) -> ::String
Parameter
  • value (::String) — Unit for the font size. Follows CSS naming (in, px, pt, etc.).
Returns
  • (::String) — Unit for the font size. Follows CSS naming (in, px, pt, etc.).