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

Technical Support Ask for help or find solutions about ShestakUI.

Advertising

 
Thread Tools
Old 03.12.2010, 05:01   #1
 Elder Member User Information

Humlew's Avatar
[分享]关于中文客户端Hooge和Bitmap的整合问题Q&F

抱歉,我的英语很糟糕.
看到有人在这里提到了我在NGA发的那个关于字体的帖子很欣慰.(我是H6)
终于有人关注中文字体的outlinemonochrome视觉效果了.
在这里说明一下,那个帖子里的截图并不是outlinemonochrome效果,只是简单的矢量字体组合.
真正的bitmapZH+pixelEN我没有发出来.

调用:
1个中文字库比较全的点阵字体(bitmapfont),我用的ZPIXGBFULL
1个自己重新编辑的Hooge0655字体,直接用Hooge0655也可以.

-wow\Fonts
H6.ttf
Zpix.ttf
Download Zpix.ttf: http://www.brsbox.com/filebox/down/f...f8f16eb94c73e2
AddOns\ShestakUI\config\user_config.lua
Code [Select]:
if SettingsDB.client == "zhTW" then
	SettingsCF["media"].normal_font = "Fonts\\bLEI00D.ttf"
	SettingsCF["media"].pixel_font = "Fonts\\Zpix.ttf"
	SettingsCF["media"].pixel_font_style = "OUTLINEMONOCHORME"
	
-- Stats font
	SettingsCF["font"].stats_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].stats_font_size = 11
	SettingsCF["font"].stats_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].stats_font_shadow = false
	
-- Combat text font
	SettingsCF["font"].combat_text_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].combat_text_font_size = 16
	SettingsCF["font"].combat_text_font_style = "OUTLINE"
	SettingsCF["font"].combat_text_font_shadow = false

-- Chat font
	SettingsCF["font"].chat_font = "Fonts\\bLEI00D.ttf"
	SettingsCF["font"].chat_font_style = ""
	SettingsCF["font"].chat_font_shadow = true
	-- Chat tabs font
	SettingsCF["font"].chat_tabs_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].chat_tabs_font_size = 11
	SettingsCF["font"].chat_tabs_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].chat_tabs_font_shadow = false

-- Action bars font
	SettingsCF["font"].action_bars_font = "Fonts\\H6.ttf"
	SettingsCF["font"].action_bars_font_size = 8
	SettingsCF["font"].action_bars_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].action_bars_font_shadow = false

-- Threat meter font
	SettingsCF["font"].threat_meter_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].threat_meter_font_size = 11
	SettingsCF["font"].threat_meter_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].threat_meter_font_shadow = false

-- Raid cooldowns font
	SettingsCF["font"].raid_cooldowns_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].raid_cooldowns_font_size = 11
	SettingsCF["font"].raid_cooldowns_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].raid_cooldowns_font_shadow = false
	-- Cooldowns timer font
	SettingsCF["font"].cooldown_timers_font = "Fonts\\H6.ttf"
	SettingsCF["font"].cooldown_timers_font_size = 16
	SettingsCF["font"].cooldown_timers_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].cooldown_timers_font_shadow = false

-- Loot font
	SettingsCF["font"].loot_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].loot_font_size = 13
	SettingsCF["font"].loot_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].loot_font_shadow = false

-- Nameplates font
	SettingsCF["font"].nameplates_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].nameplates_font2 = "Fonts\\H6.ttf"
	SettingsCF["font"].nameplates_font_size = 13
	SettingsCF["font"].nameplates_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].nameplates_font_shadow = false

-- Unit frames font
	SettingsCF["font"].unit_frames_font = "Fonts\\Zpix.ttf"
	SettingsCF["font"].unit_frames_font2 = "Fonts\\H6.ttf"
	SettingsCF["font"].unit_frames_font_size = 13
	SettingsCF["font"].unit_frames_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].unit_frames_font_shadow = false

-- Auras font
	SettingsCF["font"].auras_font = "Fonts\\H6.ttf"
	SettingsCF["font"].auras_font_size = 8
	SettingsCF["font"].auras_font_style = "OUTLINE"
	SettingsCF["font"].auras_font_shadow = false

-- Filger font
	SettingsCF["font"].filger_font = "Fonts\\H6.ttf"
	SettingsCF["font"].filger_font_size = 16
	SettingsCF["font"].filger_font_style = "OUTLINEMONOCHROME"
	SettingsCF["font"].filger_font_shadow = false

-- Stylization font
	SettingsCF["font"].stylization_font = "Fonts\\bLEI00D.ttf"
	SettingsCF["font"].stylization_font_size = 11
	SettingsCF["font"].stylization_font_style = ""
	SettingsCF["font"].stylization_font_shadow = true
ADD this code
Code [Select]:
-- UnitFrame Locales
	L_UF_GHOST = "Ghost"
	L_UF_DEAD = "Dead"
	L_UF_OFFLINE = "Offline"
	L_UF_MANA = "Low Mana"
	L_UF_TRINKET_READY = "Trinket Ready: "
	L_UF_TRINKET_USED = "Trinket Used: "
	L_UF_WOTF_USED = "WotF used: "
ShestakUI\unitframes\layout.lua
~87line,self.Health.value
self.Health.value = SettingsDB.SetFontString(self.Health, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)


~137line,self.Power.value
self.Power.value = SettingsDB.SetFontString(self.Power, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)

~160line,self.Level
self.Level = SettingsDB.SetFontString(self.Power, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)

~746line,self.Castbar.Time(Focus)
self.Castbar.Time = SettingsDB.SetFontString(self.Castbar, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)

~754line,self.Castbar.Time(Player)
self.Castbar.Time = SettingsDB.SetFontString(self.Castbar, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)

~773line,self.Castbar.Latency
self.Castbar.Latency = SettingsDB.SetFontString(self.Castbar, SettingsCF["font"].unit_frames_font2, 8, SettingsCF["font"].unit_frames_font_style)
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_113010_001416.jpg
Views:	833
Size:	702.0 KB
ID:	319  
Attached Files
File Type: zip H6.zip (7.0 KB, 73 views Who downloaded?)
Say Thank:
Shestak (03.12.2010)
Old 03.12.2010, 05:01   #1.5 - Disable Ads

Advertise on this site

Old 03.12.2010, 05:13   #2
Humlew
 Elder Member User Information

Humlew's Avatar
to Shestak:

Sorry for my bad English.
some wish:
希望您可以教会我如何单独修改一些字体的调用:
例如
谁在minimap ping..
右下角,当前Zone名称
ps.you can use English. ..
-----------------------------------求翻译帝帮助!!
Say Thank:
Shestak (03.12.2010)
Old 03.12.2010, 11:27   #3
Seveni
 Member User Information

Seveni's Avatar
Quote:
Originally Posted by Humlew View Post
to Shestak:

Sorry for my bad English.
some wish:
希望您可以教会我如何单独修改一些字体的调用:
例如
谁在minimap ping..
右下角,当前Zone名称
ps.you can use English. ..
-----------------------------------求翻译帝帮助!!
exchange to english :

to Shestak:
Sorry for my poor English.
Some wishes:
I hope you can teach me how to modify the fonts separately:
For example :
font of the minimap ping..
and font of your address or location (where you are. It always be shown at the lower right corner of Shestak UI Game Interface)
ps.you can use English. ..
-----------------------------------Request for translation!!
Say Thank:
Shestak (03.12.2010)
Old 03.12.2010, 17:57   #4
Shestak
 Junior Member User Information

Shestak's Avatar
Humlew, Pixel Chinese font that is on the screenshot, this is that in the attach(H6.zip) messages?


Ping font = SettingsCF["font"].stats_font

Добавлено через 2 минуты
Quote:
Originally Posted by Humlew View Post
Download Zpix.ttf: http://www.brsbox.com/filebox/down/f...f8f16eb94c73e2
This link does not work for me.

Добавлено через 3 минуты
Humlew, for upload Zpix.ttf use please:
http://rapidshare.com
or
http://www.mediafire.com
Old 03.12.2010, 18:47   #5
Humlew
 Elder Member User Information

Humlew's Avatar
1.
H6.ttf=Hooge0655.ttf or pixel.ttf(hooge0555)
i'm just changed a littel size...don't concern h6.zip...

the Zpix.ttf is Chinese bitmap font, in the screenshot ,these Chinesefont effects is zpix+h6...

2.
i'm only wanna change Ping_font and Your_address_font ...
----------------------------------------------请求再次翻译,感谢!
1.
H6.ttf等于Hooge0655.ttf 或者 pixel.ttf(个人喜好,看起来比Hooge0555和0655美观一些)
没什么区别,我只是改变了一点字体本身的Size,不用关心这个h6.zip

Zpix.ttf是个点阵字体,在截图中,效果是由Zpix+H6来完成的.ZPIX+Pixel也可以做出这个效果..

2.
我只想要改变Ping_font和Zone_Font
为了更好的ChineseFont效果,我需要您的帮助,当完成时,给你看截图,和我笨拙的修改方法.

感谢Seveni的翻译和Shestak的耐心..

Download Zpix.ttf:
http://rapidshare.com/files/434692353/Zpix.ttf
Attached Thumbnails
Click image for larger version

Name:	TM截图未命名.png
Views:	295
Size:	316.8 KB
ID:	322  
Old 03.12.2010, 18:52   #6
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by Humlew View Post
Your_address_font ...
Coordinates and location?
Quote:
Originally Posted by Humlew View Post
Download Zpix.ttf:
http://rapidshare.com/files/434692353/Zpix.ttf
Thanks for the font. I liked it.
Old 03.12.2010, 19:01   #7
Humlew
 Elder Member User Information

Humlew's Avatar
yes,Coordinates and location!

only need change location font now
Old 03.12.2010, 19:20   #8
Shestak
 Junior Member User Information

Shestak's Avatar
If the LiteStats you want to change the font for only one module(coord example), you need to find in the file:
ShestakUI\libs\LiteStats\LiteStats.lua(~623 line)
find:
Code [Select]:
--  Location
if location.enabled then
	Inject("Location", { -- height = 13, width = 113,
change:
Code [Select]:
--  Location
if location.enabled then
	Inject("Location", { -- height = 13, width = 113,
		text = { font = SettingsCF["font"].stats_font, size = SettingsCF["font"].stats_font_size, shadow = 0, outline = 3, },
Old 04.12.2010, 06:54   #9
Humlew
 Elder Member User Information

Humlew's Avatar
Thanks !

Now ,look these font..

we need change User_config.lua, and these code:
1.
Interface\AddOns\ShestakUI\libs\LiteStats\locales\zhTW.lua
find:
Code [Select]:
["ON"] = "啟用",
change:
Code [Select]:
["ON"] = "ON",
2.
ShestakUI\libs\LiteStats\LiteStats.lua
find all
Code [Select]:
strupper(OFF)
change to
Code [Select]:
"OFF"
and (~623 line)
find:
Code [Select]:
--  Location
if location.enabled then
	Inject("Location", { -- height = 13, width = 113,
change:
Code [Select]:
--  Location
if location.enabled then
	Inject("Location", { -- height = 13, width = 113,
		text = { font = SettingsCF["font"].stats_font2, size = 8, shadow = 0, outline = 3, },
(~690 line)
find:
Code [Select]:
--  Ping
if ping.enabled then

	Inject("Ping", {
change:
Code [Select]:
--  Ping

if ping.enabled then

	Inject("Ping", {
		text = { font = SettingsCF["font"].stats_font2, size = 8, shadow = 0, outline = 3, },
3.
ShestakUI\scripts\minimap.lua
(~250 line)
find:
Code [Select]:
MinimapTrackingText:SetFont(SettingsCF["media"].pixel_font, SettingsCF["media"].pixel_font_size, SettingsCF["media"].pixel_font_style)
change:
Code [Select]:
MinimapTrackingText:SetFont(SettingsCF["media"].pixel_font, 11, SettingsCF["media"].pixel_font_style)
ps:"OUTLINEMONOCHORME" is not work for "MinimapTrackingText",but it not matter..

4.
ShestakUI\libs\LitePanels\layout.lua
(~118 line)
find
Code [Select]:
{	string = L_PANELS_AFK, anchor_to = "TOP", y_off = -10,
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font, size = SettingsCF["font"].stats_font_size,
change
Code [Select]:
{	string = L_PANELS_AFK, anchor_to = "TOP", y_off = -5,
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font2, size = 11,
(~129 line)
find
Code [Select]:
anchor_to = "CENTER", color = "1 0.1 0.1"
change
Code [Select]:
anchor_to = "CENTER", y_off = 4, color = "1 0.1 0.1"
(~131 line)
find
Code [Select]:
{	string = L_PANELS_AFK_RCLICK, anchor_to = "BOTTOM", y_off = 12,
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font, size = SettingsCF["font"].stats_font_size,
change
Code [Select]:
{	string = L_PANELS_AFK_RCLICK, anchor_to = "BOTTOM", y_off = 18,
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font2, size = 11,
(~135 line)
find
Code [Select]:
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font, size = SettingsCF["font"].stats_font_size,
change
Code [Select]:
shadow = 0, outline = 3, font = SettingsCF["font"].stats_font2, size = 11,
----------------------
note:
in the User_config.lua,
if SettingsDB.client == "zhTW"
my "SettingsCF["media"].pixel_font"="Fonts\\Zpix.ttf"!!
(must look my User_config.lua!)
Attached Files
File Type: lua user_config.lua (10.6 KB, 30 views Who downloaded?)
Say Thank:
Shestak (04.12.2010)
Old 04.12.2010, 07:49   #10
Humlew
 Elder Member User Information

Humlew's Avatar
I hope the above can be modified to complete the User_config.lua.

can do it?
Say Thank:
tat2dawn (02.08.2011)

Thread Tools



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