Thread Tools Display Modes
10-23-09, 02:24 PM   #1
Imakefood
A Warpwood Thunder Caller
 
Imakefood's Avatar
AddOn Compiler - Click to view compilations
Join Date: Apr 2009
Posts: 96
Question Adding your own font?

I should just be able to go to...
World of Warcraft>Interface>Addons>nUI>Layouts>Default>Fonts
and add a True Type Font file and should be able to use the font I just added in-game, right? or is there another way of doing this cuz it's not working
 
10-23-09, 05:56 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yes... you should be able to put the font into the nUI fonts directory as you said. However, before it will load in game, you need to exit WoW and restart it. WoW does not and will not recognize files that are added or removed to the directory tree while it is running.

You'll also need to edit [ Interface > AddOns > nUI > Main > localization.lua ] and add your font to the load instead of the font that's already selected.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
10-23-09, 07:06 PM   #3
Imakefood
A Warpwood Thunder Caller
 
Imakefood's Avatar
AddOn Compiler - Click to view compilations
Join Date: Apr 2009
Posts: 96
There's
Localization.deDE
Localization.enGB
Localization.esES
Localization.frFR
Localization.koKR
Localization
Localization.ruRU
Localization.zhCN
Localization.zhTW which are all lue type files but none are Localization.lua

Last edited by Imakefood : 10-23-09 at 07:11 PM.
 
10-23-09, 07:22 PM   #4
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
They all have the .lua file extention. You must have the option to display the file extension turned off. "Localization" is the one I was talking about.

Originally Posted by Imakefood View Post
There's
Localization.deDE
Localization.enGB
Localization.esES
Localization.frFR
Localization.koKR
Localization
Localization.ruRU
Localization.zhCN
Localization.zhTW which are all lue type files but none are Localization.lua
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
10-23-09, 08:08 PM   #5
Imakefood
A Warpwood Thunder Caller
 
Imakefood's Avatar
AddOn Compiler - Click to view compilations
Join Date: Apr 2009
Posts: 96
Ok so how exactly am I editting this file? I tried, thinking it couldn't be too hard, and scrambled my UI lol.
 
10-23-09, 08:37 PM   #6
Imakefood
A Warpwood Thunder Caller
 
Imakefood's Avatar
AddOn Compiler - Click to view compilations
Join Date: Apr 2009
Posts: 96
Oh or might it have anything to do with it being 288 KB? kind of a lot bigger than the fonts it comes with
 
10-23-09, 09:50 PM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
It really isn't complicated, so you should be able to work it out just fine. You can open the file in notepad or any other plain text editor. Look for the two lines

Code:
    nUI_L["font1"] = "Interface\\AddOns\\nUI\\Layouts\\Default\\Fonts\\Tw_Cen_MT_Bold.ttf";

    nUI_L["font2"] = "Interface\\AddOns\\nUI\\Layouts\\Default\\Fonts\\Emblem.ttf";
You can do one of two things... either just change the names of the fonts that are already listed there, or else copy and paste those two lines and replace the font names in the copies and comment out the old two lines. That way you can revert back if you need to. Just add two dashes "--" at the front of the lines to comment them out.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Adding your own font?


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