Elixlsx.Style.Font (elixlsx v0.6.0) View Source

Font styling properties.

Supported formatting properties are:

  • bold: boolean
  • italic: boolean
  • underline: boolean
  • strike: boolean
  • size: pos_integer
  • color: (Hex-)String
  • wrap_text: boolean
  • align_horizontal: atom (:left, :right, :center, :justify, :general, :fill)
  • align_vertical: atom (:top, :bottom, :center)
  • font: String

Link to this section Summary

Functions

Create a Font object from a property list.

Create a <font /> entry from a Font struct.

Link to this section Types

Specs

t() :: %Elixlsx.Style.Font{
  align_horizontal: atom(),
  align_vertical: atom(),
  bold: boolean(),
  color: String.t(),
  font: String.t(),
  italic: boolean(),
  size: pos_integer(),
  strike: boolean(),
  underline: boolean(),
  wrap_text: boolean()
}

Link to this section Functions

Create a Font object from a property list.

Link to this function

get_stylexml_entry(font)

View Source

Specs

get_stylexml_entry(t()) :: String.t()

Create a <font /> entry from a Font struct.