Packages

Pure Elixir library for reading and editing existing .xlsx / .xlsm files with round-trip fidelity — no Rust, no Python, no NIFs.

Current section

Files

Jump to
ex_v_ex lib ex_v_ex style font.ex
Raw

lib/ex_v_ex/style/font.ex

defmodule ExVEx.Style.Font do
@moduledoc """
A font record from `xl/styles.xml` — a name, size, colour, and the usual
decoration flags.
"""
alias ExVEx.Style.Color
defstruct name: nil,
size: nil,
bold: false,
italic: false,
underline: :none,
strike: false,
color: nil
@type underline :: :none | :single | :double | :single_accounting | :double_accounting
@type t :: %__MODULE__{
name: String.t() | nil,
size: number() | nil,
bold: boolean(),
italic: boolean(),
underline: underline(),
strike: boolean(),
color: Color.t() | nil
}
end