class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize

Font size with unit.

Attributes

size[RW]

Font size for the text. Corresponds to the JSON property `size` @return [Float]

unit[RW]

Unit for the font size. Follows CSS naming (in, px, pt, etc.). Corresponds to the JSON property `unit` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 4258
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1/classes.rb, line 4263
def update!(**args)
  @size = args[:size] if args.key?(:size)
  @unit = args[:unit] if args.key?(:unit)
end