View Single Post
06-29-19, 06:32 PM   #6
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2011
Posts: 37
Originally Posted by SDPhantom View Post
Alternatively, you can try your luck with CreateFont() and inheriting it in your XML.
Lua Code:
  1. local NorFont=CreateFont("EKPlates_NorFont");-- This is the global name we'll use when inheriting this font
  2. NorFont:CopyFontObject("GameFontHightlightSmall");--    Initiate to an ingame font
  3. NorFont:SetFont("Interface\\AddOns\\EKPlates\\media\\font.ttf",12,"OUTLINE");-- Set our custom font
XML Code:
  1. <FontString parentKey="value" inherits="EKPlates_NorFont" justifyH="CENTER">
It's useful, Thank you very much!
  Reply With Quote