Fix mac layout, improve font rendering

Skrigger [05-28-16 - 18:52]
Fix mac layout, improve font rendering
Filename
Changelog
RuEsoChat.lua
RuEsoChat.txt
RuEsoChat.xml
fonts/univers57.otf
fonts/univers57.ttf
diff --git a/Changelog b/Changelog
index c57dd3b..c1e0f25 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,7 @@
+1.6-r.7
+Fix Macintosh keymap layout.
+Recreate chat font from in-game OTF font.
+
 1.6-r.6
 Small change in windows layout setup instruction.
 Add next ZOS API number.
diff --git a/RuEsoChat.lua b/RuEsoChat.lua
index 8b4e847..af7751d 100644
--- a/RuEsoChat.lua
+++ b/RuEsoChat.lua
@@ -1,8 +1,9 @@
-ZO_ChatWindowTextEntryEditBox:SetFont("RuEsoChat/fonts/univers57.ttf|" .. GetChatFontSize() .. "|shadow");
+local ru_font = "RuEsoChat/fonts/univers57.otf";
+
+ZO_ChatWindowTextEntryEditBox:SetFont(ru_font .. "|" .. GetChatFontSize() .. "|shadow");
 if GetCVar("language.2") == "en" or GetCVar("language.2") == "ru"
 then
-  ZoFontGame:SetFont("RuEsoChat/fonts/univers57.ttf|18|shadow");
-  ZoFontEdit:SetFont("RuEsoChat/fonts/univers57.ttf|18|shadow");
+  ZoFontGame:SetFont(ru_font .. "|18|shadow");
+  ZoFontEdit:SetFont(ru_font .. "|18|shadow");
   ZoFontWinH4:SetFont("RuEsoChat/fonts/univers67.ttf|18|shadow");
 end
-
diff --git a/RuEsoChat.txt b/RuEsoChat.txt
index 04fe264..3b5ff98 100644
--- a/RuEsoChat.txt
+++ b/RuEsoChat.txt
@@ -6,7 +6,7 @@
 ## Title: RuEso Chat
 ## APIVersion: 100014 100015
 ## Author: TERAB1T, |cEFEBBESkrigger|r
-## Version: 1.6-r.5
+## Version: 1.6-r.7

 RuEsoChat.lua
 RuEsoChat.xml
diff --git a/RuEsoChat.xml b/RuEsoChat.xml
index a766d74..d3dc7e0 100644
--- a/RuEsoChat.xml
+++ b/RuEsoChat.xml
@@ -1,5 +1,5 @@
 <GuiXml>
-	<String name="RUESO_CHAT_FONT" value="RuEsoChat/fonts/univers57.ttf" />
+	<String name="RUESO_CHAT_FONT" value="RuEsoChat/fonts/univers57.otf" />
 	<String name="RUESO_CHAT_FONT_BOLD" value="RuEsoChat/fonts/univers67.ttf" />

 	<Font name="ZoFontChat" font="$(RUESO_CHAT_FONT)|18|soft-shadow-thin" />
diff --git a/fonts/univers57.otf b/fonts/univers57.otf
new file mode 100644
index 0000000..723c64b
Binary files /dev/null and b/fonts/univers57.otf differ
diff --git a/fonts/univers57.ttf b/fonts/univers57.ttf
deleted file mode 100644
index 983072d..0000000
Binary files a/fonts/univers57.ttf and /dev/null differ