View Source GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentStyle (google_api_document_ai v0.38.0)

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Attributes

  • backgroundColor (type: GoogleApi.DocumentAI.V1.Model.GoogleTypeColor.t, default: nil) - Text background color.
  • color (type: GoogleApi.DocumentAI.V1.Model.GoogleTypeColor.t, default: nil) - Text color.
  • fontFamily (type: String.t, default: nil) - Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp
  • fontSize (type: GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentStyleFontSize.t, default: nil) - Font size.
  • fontWeight (type: String.t, default: nil) - Font weight. Possible values are normal, bold, bolder, and lighter.
  • textAnchor (type: GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentTextAnchor.t, default: nil) - Text anchor indexing into the Document.text.
  • textDecoration (type: String.t, default: nil) - Text decoration. Follows CSS standard.
  • textStyle (type: String.t, default: nil) - Text style. Possible values are normal, italic, and oblique.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentStyle{
  backgroundColor: GoogleApi.DocumentAI.V1.Model.GoogleTypeColor.t() | nil,
  color: GoogleApi.DocumentAI.V1.Model.GoogleTypeColor.t() | nil,
  fontFamily: String.t() | nil,
  fontSize:
    GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentStyleFontSize.t()
    | nil,
  fontWeight: String.t() | nil,
  textAnchor:
    GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1beta2DocumentTextAnchor.t()
    | nil,
  textDecoration: String.t() | nil,
  textStyle: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.