Originally Posted by ZOS_ChipHilseberg
We could potentially do something like:
[Font:ZoFontGame] = "xyz.otf|32"
Where this would make a font object with the name and descriptor. Would that be sufficient?
|
So chip, it's not sufficient.
I've already ask in the other post but I'll ask once again...
There's some situation that the code is not using ZoFont*****, but "$(GAMEPAD_MEDIUM_FONT)" instead. If we cannot replace the value of GAMEPAD_MEDIUM_FONT, we cannot replace the font.
You can see the file:
esoui\esoui\common\tooltip\tooltipstyles.lua
Lua Code:
tooltip =
{
width = ZO_GAMEPAD_CONTENT_WIDTH,
paddingLeft = 0,
paddingRight = 0,
fontFace = "$(GAMEPAD_MEDIUM_FONT)",
fontColorType = INTERFACE_COLOR_TYPE_GAMEPAD_TOOLTIP,
fontColorField = GENERAL_COLOR_GREY,
fontStyle = "soft-shadow-thick",
},
Also, there's a major issue that most add-on authors are not using ZoFont***** at all, they use like '$(GAMEPAD_MEDIUM_FONT)|$(GP_61)|soft-shadow-thick', and if we want to localize those add-ons, we have to modify their codes to change to other fonts.
So we need a way to change the value of:
Lua Code:
<String name="MEDIUM_FONT" value="EsoUI/Common/Fonts/Univers57.otf" />
<String name="BOLD_FONT" value="EsoUI/Common/Fonts/Univers67.otf" />
<String name="CHAT_FONT" value="EsoUI/Common/Fonts/Univers57.otf" />
<String name="GAMEPAD_LIGHT_FONT" value="EsoUI/Common/Fonts/FTN47.otf" />
<String name="GAMEPAD_MEDIUM_FONT" value="EsoUI/Common/Fonts/FTN57.otf" />
<String name="GAMEPAD_BOLD_FONT" value="EsoUI/Common/Fonts/FTN87.otf" />
<String name="ANTIQUE_FONT" value="EsoUI/Common/Fonts/ProseAntiquePSMT.otf" />
<String name="HANDWRITTEN_FONT" value="EsoUI/Common/Fonts/Handwritten_Bold.otf" />
<String name="STONE_TABLET_FONT" value="EsoUI/Common/Fonts/TrajanPro-Regular.otf" />