Thank you, but it is a button so I need to access the button's text but I only know how to get the FontObject and of course that just makes all instances of that object the same text colour which is not ideal.
I don't want to mess with the shadow of the font etc.. just the text colour.
I still like how GameFontHighlight changes the text to white so I want to use that but when i set the text colour to class colour then usually it removes the turning to white effect. I was hoping to be lazy and use the font object's shadow style . I just wanted the normal font type class coloured on the button. Would that mean I need to create a new FontString on the button to do this? I thought I could just use the basic button text it inherits by default.
EDIT:
I tried using your method Seerah but that made the GameFontHighlight style inactive so it does not change to white when the mouse is over the button.
Lua Code:
local missionbtn = CreateFrame("Button", "testbtn", Minimap);
missionbtn:SetPoint("TOPLEFT", Minimap, "TOPLEFT", 6, -2);
missionbtn:SetSize(14, 14);
missionbtn:SetHighlightFontObject("GameFontHighlight")
local text = missionbtn:CreateFontString("MyText", nil, "GameFontNormal")
text:SetTextColor(MUI_COLOR.r, MUI_COLOR.g, MUI_COLOR.b, 1)
missionbtn:SetFontString(text);