Originally Posted by Clayent
In this case, could you please add this symbol "→" in any text of any addon and show me a code and an ingame screenshot with result?
|
Not sure what you're using the symbol for, maybe something like this works for you (the problem is that you can't use multiple different fonts at once, so you have to split the text and and anchor the segments manually unless there's a widget I don't know of that that support that):
Lua Code:
local f = CreateFrame("Frame", nil, UIParent);
f:SetPoint("CENTER");
f:SetSize(200, 100);
local fs1 = f:CreateFontString(nil, "OVERLAY");
fs1:SetFont([[Fonts\FRIZQT__.TTF]], 12);
fs1:SetPoint("LEFT");
fs1:SetText("This arrow");
local fs2 = f:CreateFontString(nil, "OVERLAY");
fs2:SetFont([[Fonts\ARKai_T.TTF]], 12);
fs2:SetPoint("LEFT", fs1, "RIGHT");
fs2:SetText(" → ");
local fs3 = f:CreateFontString();
fs3:SetFont([[Fonts\FRIZQT__.TTF]], 12);
fs3:SetPoint("LEFT", fs2, "RIGHT");
fs3:SetText("points right.");
PS: You can also use
https://icomoon.io/app/ to generate a font that only contains the symbols you need and use it in your addon.
Edit: Removed LibSharedMedia