Help with wow font script

I’m trying to figure out why my wow addon doesn’t work in the script I wrote. I just want to change the cast bar text font. Also, if I can do the font for the default action bars as well that would be super. Any advice would be greatly appreciated :slight_smile:

PlayerCastingBarFrame.timer = PlayerCastingBarFrame:CreateFontString(nil)
PlayerCastingBarFrame.timer:SetFont(“Fonts\Bazooka.ttf”, 13, “THINOUTLINE”)
PlayerCastingBarFrame.timer:SetPoint(“RIGHT”, CastingBarFrame, “RIGHT”, 24, 0)
PlayerCastingBarFrame.Text:SetFont(“Interface\Addons\Kevmoney\Bazooka.ttf”, 11)
PlayerCastingBarFrame.update = 0.1
TargetFrameSpellBar.timer = TargetFrameSpellBar:CreateFontString(nil)
TargetFrameSpellBar.timer:SetFont(“Fonts\Bazooka.ttf”, 13, “THINOUTLINE”)
TargetFrameSpellBar.timer:SetPoint(“RIGHT”, CastingBarFrame, “RIGHT”, 24, 0)
TargetFrameSpellBar.Text:SetFont(“Interface\Addons\Kevmoney\Bazooka.ttf”, 11)
TargetFrameSpellBar.update = 0.1

You seem to be mixing font locations between Fonts and Interface…. Are you sure the font resides in both places?

That and backslashes need to be escaped in lua:
PlayerCastingBarFrame.Text:SetFont("Interface\\Addons\\Kevmoney\\Bazooka.ttf", 11)

yes, I have the font outside the addon as indicated. I’m not sure what you mean “escaped in lua” I’m still learing.

Two slashed instead of one.

Awesome! Thank you for the easy fix :slight_smile: now I just need to figure out how to change the font hotkey on the action bars

You can extract all the Blizzard UI code from the game and peruse it at your leasure including the structure of all the various elements.

Each game version requires its own extract.

Hint: look for Action[something].XML files in the FrameXML folder.

or, in-game type /fstack and hover your mouse over a hotket text.