# SimpleFontAPI (widget methods): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/SimpleFontAPI

## Functions

### CopyFontObject

```lua
self:CopyFontObject(sourceFont)
```

Arguments:
- `sourceFont`: SimpleFont

### GetAlpha

```lua
alpha = self:GetAlpha()
```

Returns:
- `alpha`: SingleColorValue

### GetFont

```lua
fontFile, height, flags = self:GetFont()
```

Returns:
- `fontFile`: cstring
- `height`: uiFontHeight
- `flags`: TBFFlags

### GetFontHeight

```lua
height = self:GetFontHeight()
```

Return is either in uiUnits or internal height due to fixedHeight.

Returns:
- `height`: number

### GetFontObject

```lua
font = self:GetFontObject()
```

Returns:
- `font`: SimpleFont

### GetFontObjectForAlphabet

```lua
font = self:GetFontObjectForAlphabet(alphabet)
```

Arguments:
- `alphabet`: FontAlphabet

Returns:
- `font`: SimpleFont

### GetIndentedWordWrap

```lua
wordWrap = self:GetIndentedWordWrap()
```

Returns:
- `wordWrap`: bool

### GetJustifyH

```lua
justifyH = self:GetJustifyH()
```

Returns:
- `justifyH`: JustifyHorizontal

### GetJustifyV

```lua
justifyV = self:GetJustifyV()
```

Returns:
- `justifyV`: JustifyVertical

### GetShadowColor

```lua
colorR, colorG, colorB, colorA = self:GetShadowColor()
```

Returns:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `colorA`: number

### GetShadowOffset

```lua
offsetX, offsetY = self:GetShadowOffset()
```

Returns:
- `offsetX`: number
- `offsetY`: number

### GetSpacing

```lua
spacing = self:GetSpacing()
```

Returns:
- `spacing`: uiUnit

### GetTextColor

```lua
colorR, colorG, colorB, colorA = self:GetTextColor()
```

Returns:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `colorA`: number

### SetAlpha

```lua
self:SetAlpha(alpha)
```

Arguments:
- `alpha`: SingleColorValue

### SetFont

```lua
self:SetFont(fontFile, height, flags)
```

Arguments:
- `fontFile`: cstring
- `height`: uiFontHeight
- `flags`: TBFFlags

### SetFontHeight

```lua
self:SetFontHeight(height)
```

Preserves all flags, does correct height conversion due to fixedHeight.

Arguments:
- `height`: number

### SetFontObject

```lua
self:SetFontObject(font)
```

Arguments:
- `font`: SimpleFont

### SetIndentedWordWrap

```lua
self:SetIndentedWordWrap(wordWrap)
```

Arguments:
- `wordWrap`: bool

### SetJustifyH

```lua
self:SetJustifyH(justifyH)
```

Arguments:
- `justifyH`: JustifyHorizontal

### SetJustifyV

```lua
self:SetJustifyV(justifyV)
```

Arguments:
- `justifyV`: JustifyVertical

### SetShadowColor

```lua
self:SetShadowColor(colorR, colorG, colorB, [a])
```

Arguments:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `a`: SingleColorValue, may be nil

### SetShadowOffset

```lua
self:SetShadowOffset(offsetX, offsetY)
```

Arguments:
- `offsetX`: number
- `offsetY`: number

### SetSpacing

```lua
self:SetSpacing(spacing)
```

Arguments:
- `spacing`: uiUnit

### SetTextColor

```lua
self:SetTextColor(colorR, colorG, colorB, [a])
```

Arguments:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `a`: SingleColorValue, may be nil

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
