Originally Posted by xtothx
Code:
self.Info = self:CreateFontString(nil, self, 'GameFontHighlightSmallLeft')
self.Info:SetFont(font, fontsize)
self.Info:SetPoint('RIGHT', self, 'LEFT', 140, -34)
self:Tag(self.Info, '[white][name]')
I am beginner in lua, but thanks for link
|
You misunderstood. You either need to explicitly set the width and height of your fontstring, or you need to set
two anchors. One for the left side and one for the right side - you just have one for the right side.
lua Code:
self.Info = self:CreateFontString(nil, self, 'GameFontHightlightSmallLeft')
self.Info:SetFont(font, fontsize)
-- main anchor
self.Info:SetPoint('TOPLEFT', self, 'BOTTOMLEFT')
-- right side anchor to truncate
self.Info:SetPoint('RIGHT', YourClassificationFontstringName, 'LEFT')
self:Tag(self.Info, '[white][name]')