Thread Tools Display Modes
07-24-22, 05:32 AM   #1
kuli2145636
A Murloc Raider
Join Date: Jul 2022
Posts: 4
help me to reduce player name text size

hello, could you help me to reduce player name text size of defualt blizzard frames on retail.

Thank you very much!!
Attached Thumbnails
Click image for larger version

Name:	SSSSSSSSSSSSSSSSSSSS.PNG
Views:	239
Size:	96.4 KB
ID:	9741  

Last edited by kuli2145636 : 07-24-22 at 05:38 AM.
  Reply With Quote
07-24-22, 10:10 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
You could try scaling it using this function:

FontString:SetTextScale(scale)

Where FontString is changed to PlayerName and assumingly the scale is a number between 0 and 1

But not sure how you would get it working without creating an addon.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
07-24-22, 11:28 PM   #3
kuli2145636
A Murloc Raider
Join Date: Jul 2022
Posts: 4
Originally Posted by Xrystal View Post
You could try scaling it using this function:

FontString:SetTextScale(scale)

Where FontString is changed to PlayerName and assumingly the scale is a number between 0 and 1

But not sure how you would get it working without creating an addon.

Thanks for the message, since I am using another language, the default makes name text size look big, but I want it to change size.

https://imgur.com/a/NtJfi4G I Hope like this

Last edited by kuli2145636 : 07-24-22 at 11:49 PM.
  Reply With Quote
07-25-22, 10:17 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
You could do something like:
Lua Code:
  1. local function SizeName(self)
  2.     local font, size = self.name:GetFont()
  3.     self.name:SetFont(font, size-2)
  4. end
  5. SizeName(PlayerFrame)
  6. SizeName(TargetFrame)
  7. for i=1, 4 do
  8.     SizeName(_G["PartyMemberFrame"..i])
  9. end

Add additional unit frames to size. Adjust the size to your liking.

You can play with the naming and turn it into a macro or copy/paste to addon.bool.no to create/download as a small addon that will run when you log in.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-25-22 at 10:20 AM.
  Reply With Quote
07-25-22, 10:58 PM   #5
kuli2145636
A Murloc Raider
Join Date: Jul 2022
Posts: 4
Originally Posted by Fizzlemizz View Post
You could do something like:
Lua Code:
  1. local function SizeName(self)
  2.     local font, size = self.name:GetFont()
  3.     self.name:SetFont(font, size-2)
  4. end
  5. SizeName(PlayerFrame)
  6. SizeName(TargetFrame)
  7. for i=1, 4 do
  8.     SizeName(_G["PartyMemberFrame"..i])
  9. end

Add additional unit frames to size. Adjust the size to your liking.

You can play with the naming and turn it into a macro or copy/paste to addon.bool.no to create/download as a small addon that will run when you log in.


I appreciate your help very much.

Last edited by kuli2145636 : 07-26-22 at 05:27 AM.
  Reply With Quote
07-26-22, 02:02 AM   #6
kuli2145636
A Murloc Raider
Join Date: Jul 2022
Posts: 4
Originally Posted by Fizzlemizz View Post
You could do something like:
Lua Code:
  1. local function SizeName(self)
  2.     local font, size = self.name:GetFont()
  3.     self.name:SetFont(font, size-2)
  4. end
  5. SizeName(PlayerFrame)
  6. SizeName(TargetFrame)
  7. for i=1, 4 do
  8.     SizeName(_G["PartyMemberFrame"..i])
  9. end

Add additional unit frames to size. Adjust the size to your liking.

You can play with the naming and turn it into a macro or copy/paste to addon.bool.no to create/download as a small addon that will run when you log in.

SizeName(TargetofTargetFrame)
SizeName(FocusFrame)

I tried adding this but they didn't work.how should i do? Thank you very much.

Last edited by kuli2145636 : 07-26-22 at 05:28 AM.
  Reply With Quote
07-26-22, 10:27 AM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
You neeed to make sure you're using the correct frames
Code:
SizeName(TargetFrameToT)
SizeName(FocusFrame)
The UI uses the TargetofTargetFrameTemplate to create ToT frames but uses the parents frame name and adds the "ToT" suffix so the TargetFrame Target of Target is created as TargetFrameToT
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-26-22 at 10:34 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » help me to reduce player name text size

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off