Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Technical Support

Technical Support Ask for help or find solutions about ShestakUI.

Advertising

 
Thread Tools
Old 07.06.2010, 16:01   #1
 Elder Member User Information

Relic's Avatar
Question How to change font?

I know in the old ShestakUI I changed the global font in the config file. I looked in the v2.0 config and see a different method for handling the font. How can I change the global font to be SKURRI.tff

Code [Select]:
aSettings["media"] = {
	["font"] = [[Interface\AddOns\!aSettings\media\font.ttf]],
	["pixel_font"] = [[Interface\AddOns\!aSettings\media\pixelfont.ttf]],
	["blank"] = [[Interface\AddOns\!aSettings\media\white]],
	["texture"] = [[Interface\AddOns\!aSettings\media\gray]],
	["button"] = [[Interface\AddOns\!aSettings\media\button]],
	["highlight"] = [[Interface\AddOns\!aSettings\media\highlight]],
	["border_color"] = {0.37, 0.3, 0.3},
	["backdrop_color"] = {0, 0, 0},
}
This is where I believe I change it, but when I type I get errors.
Code [Select]:
["pixel_font"] = [[Interface\AddOns\!aSettings\media\SKURRI.ttf]],
Old 07.06.2010, 16:01   #1.5 - Disable Ads

Advertise on this site

Old 07.06.2010, 16:23   #2
Death Engine
 Assistant User Information

Death Engine's Avatar
global font change into Fonts folder

you get error bacause you havent skurri.ttf into [Interface\AddOns\!aSettings\media\]
Old 07.06.2010, 16:28   #3
Shestak
 Junior Member User Information

Shestak's Avatar
Edit this way
Code [Select]:
["pixel_font"] = [[Fonts\SKURRI.ttf]],
or
Code [Select]:
["pixel_font"] = [[path\to\your\font]],
And remember, in tekticles\tekticles.lua
Code [Select]:
f:SetScript("OnEvent", function()
	local NORMAL     = "Interface\\AddOns\\!aSettings\\media\\font.ttf"
	local BOLD       = "Interface\\AddOns\\!aSettings\\media\\font.ttf"
	local BOLDITALIC = "Interface\\AddOns\\!aSettings\\media\\font.ttf"
	local ITALIC     = "Interface\\AddOns\\!aSettings\\media\\font.ttf"
	local NUMBER     = "Interface\\AddOns\\!aSettings\\media\\font.ttf"
Say Thank:
Death Engine (07.06.2010)
Old 07.06.2010, 17:21   #4
Relic
 Elder Member User Information

Relic's Avatar
Thank you for the responses guys. Another question is how do I change the font size? Is that controlled in the tekticles.lua?
Old 07.06.2010, 17:26   #5
Death Engine
 Assistant User Information

Death Engine's Avatar
if on health bar and other then ouf_main.lua

other tektikels and asettings

where you need to change font>?

sry for my english
Old 07.06.2010, 17:30   #6
Relic
 Elder Member User Information

Relic's Avatar
Nameplates
Panels upper and lower
Recount

I think that looks to be it.
Old 07.06.2010, 17:44   #7
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by Relic61 View Post
Nameplates
Open caelNamePlates\caelNamePlates.lua and find:
Code [Select]:
newNameRegion:SetFont(aSettings["media"].pixel_font, 8 * UIParent:GetEffectiveScale(), "OUTLINEMONOCHROME")
UIParent:GetEffectiveScale() pixel-perfect for pixel font, if you not use pixel font, delete this "* UIParent:GetEffectiveScale()" and leave only "8(or your size)"
Quote:
Originally Posted by Relic61 View Post
Panels upper and lower
Open LiteStats\config.lua and change:
Code [Select]:
LPSTAT_FONT = {
	font = aSettings["media"].pixel_font, -- Path to your font.
	color = {1, 1, 1}, -- {red,green,blue} (0.0-1.0 only) or "CLASS"
	size = 8, -- Point font size.
	alpha = 1, -- Alpha transparency.
	outline = 3, -- Thin outline. 0 = no outline.
	shadow = {alpha=0, x=0, y=0}, -- shadow = 1 is the same as shadow = { color="0 0 0", alpha=1, x=1, y=-1 }
}
Quote:
Originally Posted by Relic61 View Post
Recount
Open Recount\GUI_Main.lua and change:
Code [Select]:
row.LeftText:SetFont(aSettings["media"].pixel_font, 8, "OUTLINEMONOCHROME")
Code [Select]:
row.RightText:SetFont(aSettings["media"].pixel_font, 8, "OUTLINEMONOCHROME")
Open Recount\Widgets.lua and change:
Code [Select]:
theFrame.Title:SetFont(aSettings["media"].pixel_font, 8, "OUTLINEMONOCHROME")
Old 07.06.2010, 17:55   #8
Relic
 Elder Member User Information

Relic's Avatar
Thank you so much guys. Awesome A+++ everything is good again. My old eyes could not see the pixel font lol
Old 18.07.2010, 23:10   #9
Soulcube
 Member User Information

Soulcube's Avatar
I also wanna ask something else about fonts. i wanna change the font size on unitframes. my frame, target, tarrget of target,focus,raid,party. i've searched all over and i rly miss it give me a boost when u can
also the size of my keybind skills, numbers in bag.
Old 19.07.2010, 07:26   #10
Shestak
 Junior Member User Information

Shestak's Avatar
Soulcube, read addons descriptions in "Addons List" block, then open *.lua file and search "font".
Do it.

Tags
config, font, pixel, skurri, type

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
in 2.5, How to change the size of the mana bar johnny zhou Technical Support 1 15.06.2011 21:58
How to change threat meter position in 2.9? gogol0212 Technical Support 1 06.12.2010 17:28
Cannot Change font size in chat panels joellane Technical Support 1 18.10.2010 03:50
How can I change my buffs location chj722 Technical Support 2 16.10.2010 19:29
How to change color of the Runes? souless Technical Support 2 05.07.2010 13:24


Mobile Style Русский English Deutsch Italian Chinese